User Manual

Table Of Contents
RK-5409-5 Reference Kit User’s Guide 4-29
iBeanAPI_IO.h
9. ibApi_IO_SetSerialConfig()
ibApi_FUNC ibApi_IO_SetSerialConfig (
ibApi_APIHANDLE api_hdl,
ibApi_DEVICEID device_id,
ibApi_IO_SERIALCONFIG *serial_config
);
This configures the serial “user data” interface. If these pins are shared with the DIO pins,
the DIO will be disabled.
Parameters:
api_hdl: (input) API handle returned from ibApi_Open().
device_id: (input) ID of the device to be accessed.
serial_config: (input) New configuration.
Return Value:
An ibApi_RESULT_SUCCESS if successful, or an error code (<0) if not.
10. ibApi_IO_GetSerialConfig()
ibApi_FUNC ibApi_IO_GetSerialConfig (
ibApi_APIHANDLE api_hdl,
ibApi_DEVICEID device_id,
ibApi_IO_SERIALCONFIG *serial_config
);
This retrieves the configuration for the serial “user data” interface.
Parameters:
api_hdl: (input) API handle returned from ibApi_Open().
device_id: (input) ID of the device to be accessed.
serial_config: (output) Variable to store the result.
Return Value:
An ibApi_RESULT_SUCCESS if successful, or an error code (<0) if not.