User Manual

Table Of Contents
EK-5209-5 Evaluation Kit User’s Guide A-19
iBeanAPI_IO.h
This retrieves the value of the specified ADC channel, measured in volts. Note that this is
computed by normalizing the raw reading relative to the battery voltage, and this calculation
influences the precision of the result.
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.
adc_value: (output)
Result of the ADC reading in volts.
Return Value:
An ibApi_RESULT_SUCCESSFUL if successful, or an error code (<0) if not.
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) New 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_GetDIOConfig (
ibApi_APIHANDLE api_hdl,
ibApi_DEVICEID device_id,
ibApi_UINT8 channel_index
);