User Manual

Table Of Contents
4-24 Millennial Net
Using the MeshScape API
3. ibApi_IO_DEVICECAPS
struct ibApi_IO_DEVICECAPS_s {
ibApi_UINT16 struct_size;
ibApi_UINT8 num_dio_channels;
ibApi_UINT8 num_adc_channels;
ibApi_UINT8 adc_resolution_bits;
ibApi_UINT8 serial_input_buffer_depth:
ibApi_UINT8 serial_output_buffer_depth
};
typedef struct ibApi_IO_DEVICECAPS_s ibApi_IO_DEVICECAPS;
This structure is used by ibApi_IO_GetDeviceCaps() to return various static device
attributes that are predetermined at manufacturing time.
Structure Fields:
struct_size The value size of (ibApi_IO_DEVICECAPS) should be assigned to
this field prior to calling ibApi_IO_GetDeviceCaps(). This allows future versions of the
API to extend the struct without breaking binary compatibility.
num_dio_channels This is the number of DIO channels (i.e., the channel index passed to
ibApi_IO_ReadDIO() must be less than this).
num_adc_channels This is the number of DIO channels (i.e., the channel index passed to
ibApi_IO_ReadADC() must be less than this).
adc_resolution_bits This is the number of bits of resolution supported by the A/D
converter, i.e. the maximum value for the raw data will be (1<<adc_rsolution_bits)-1.
serial_input_buffer_depthThis is the number of input data packets slots for which packets
can be pending to be read by the API-based application.
serial_output_buffer_depthThis is the number of output data packet slots for which packets
can be pending to be send by the monitor.