User Manual

Table Of Contents
RK-5409-5 Reference Kit User’s Guide 4-27
iBeanAPI_IO.h
5. ibApi_IO_SetDIOConfig()
ibApi_FUNC ibApi_IO_SetDIOConfig (
ibApi_APIHANDLE api_hdl,
ibApi_DEVICEID device_id,
ibApi_UINT8 channel_index,
ibApi_IOMODE io_mode
);
This sets whether the specified DIO channel is configured for input or output, which governs
the interpretation of ibApi_IO_ReadDIO() and ibApi_IO_WriteDIO().
Parameters:
api_hdl: (input) API handle returned from ibApi_Open().
device_id: (input) ID of the device to be accessed.
channel_index: (input) Channel index to access.
io_mode: (input) Input/output mode.
Return Value:
An ibApi_RESULT_SUCCESSFUL if successful, or an error code (<0) if not.
6. ibApi_IO_GetDIOConfig()
ibApi_FUNC ibApi_IO_SetDIOConfig(
ibApi_APIHANDLE api_hdl,
ibApi_DEVICEID device_id,
ibApi_UINT8 channel_index,
);
This queries whether the specified DIO channel is configured for input or output, which
governs the interpretation of ibApi_IO_ReadDIO().
* and ibApi_IO_WriteDIO()
Parameters:
api_hdl: (input) API handle returned from ibApi_Open().
device_id: (input) ID of the device to be accessed.
channel_index: (input) Channel index to access.
io_mode: (input) the new input/output mode
Return Value:
An ibApi_IOMODE value if successful, or an error code (<0) if not.