libneoradio2
|
Go to the source code of this file.
Functions | |
LIBNEORADIO2_API void | neoradio2_set_blocking (int blocking, long long ms_timeout) |
LIBNEORADIO2_API int | neoradio2_find (Neoradio2DeviceInfo *devices, unsigned int *device_count) |
LIBNEORADIO2_API int | neoradio2_is_blocking () |
LIBNEORADIO2_API int | neoradio2_open (neoradio2_handle *handle, Neoradio2DeviceInfo *device) |
LIBNEORADIO2_API int | neoradio2_is_opened (neoradio2_handle *handle, int *is_opened) |
LIBNEORADIO2_API int | neoradio2_close (neoradio2_handle *handle) |
LIBNEORADIO2_API int | neoradio2_is_closed (neoradio2_handle *handle, int *is_closed) |
LIBNEORADIO2_API int | neoradio2_chain_is_identified (neoradio2_handle *handle, int *is_identified) |
LIBNEORADIO2_API int | neoradio2_chain_identify (neoradio2_handle *handle) |
LIBNEORADIO2_API int | neoradio2_app_is_started (neoradio2_handle *handle, int device, int bank, int *is_started) |
LIBNEORADIO2_API int | neoradio2_app_start (neoradio2_handle *handle, int device, int bank) |
LIBNEORADIO2_API int | neoradio2_enter_bootloader (neoradio2_handle *handle, int device, int bank) |
LIBNEORADIO2_API int | neoradio2_get_serial_number (neoradio2_handle *handle, int device, int bank, unsigned int *serial_number) |
LIBNEORADIO2_API int | neoradio2_get_manufacturer_date (neoradio2_handle *handle, int device, int bank, int *year, int *month, int *day) |
LIBNEORADIO2_API int | neoradio2_get_firmware_version (neoradio2_handle *handle, int device, int bank, int *major, int *minor) |
LIBNEORADIO2_API int | neoradio2_get_hardware_revision (neoradio2_handle *handle, int device, int bank, int *major, int *minor) |
LIBNEORADIO2_API int | neoradio2_get_device_type (neoradio2_handle *handle, int device, int bank, unsigned int *device_type) |
LIBNEORADIO2_API int | neoradio2_request_pcbsn (neoradio2_handle *handle, int device, int bank) |
LIBNEORADIO2_API int | neoradio2_get_pcbsn (neoradio2_handle *handle, int device, int bank, char *pcb_sn) |
LIBNEORADIO2_API int | neoradio2_request_sensor_data (neoradio2_handle *handle, int device, int bank, int enable_cal) |
LIBNEORADIO2_API int | neoradio2_read_sensor_float (neoradio2_handle *handle, int device, int bank, float *value) |
LIBNEORADIO2_API int | neoradio2_read_sensor_array (neoradio2_handle *handle, int device, int bank, int *arr, int *arr_size) |
LIBNEORADIO2_API int | neoradio2_write_sensor (neoradio2_handle *handle, int device, int bank, int mask, int value) |
LIBNEORADIO2_API int | neoradio2_write_sensor_successful (neoradio2_handle *handle, int device, int bank) |
LIBNEORADIO2_API int | neoradio2_request_settings (neoradio2_handle *handle, int device, int bank) |
LIBNEORADIO2_API int | neoradio2_read_settings (neoradio2_handle *handle, int device, int bank, neoRADIO2_settings *settings) |
LIBNEORADIO2_API int | neoradio2_write_settings (neoradio2_handle *handle, int device, int bank, neoRADIO2_settings *settings) |
LIBNEORADIO2_API int | neoradio2_write_settings_successful (neoradio2_handle *handle, int device, int bank) |
LIBNEORADIO2_API int | neoradio2_get_chain_count (neoradio2_handle *handle, int *count, int identify) |
LIBNEORADIO2_API int | neoradio2_request_calibration (neoradio2_handle *handle, int device, int bank, neoRADIO2frame_calHeader *header) |
LIBNEORADIO2_API int | neoradio2_read_calibration_array (neoradio2_handle *handle, int device, int bank, neoRADIO2frame_calHeader *header, float *arr, int *arr_size) |
LIBNEORADIO2_API int | neoradio2_request_calibration_points (neoradio2_handle *handle, int device, int bank, neoRADIO2frame_calHeader *header) |
LIBNEORADIO2_API int | neoradio2_read_calibration_points_array (neoradio2_handle *handle, int device, int bank, neoRADIO2frame_calHeader *header, float *arr, int *arr_size) |
LIBNEORADIO2_API int | neoradio2_write_calibration (neoradio2_handle *handle, int device, int bank, neoRADIO2frame_calHeader *header, float *arr, int arr_size) |
LIBNEORADIO2_API int | neoradio2_write_calibration_successful (neoradio2_handle *handle, int device, int bank) |
LIBNEORADIO2_API int | neoradio2_write_calibration_points (neoradio2_handle *handle, int device, int bank, neoRADIO2frame_calHeader *header, float *arr, int arr_size) |
LIBNEORADIO2_API int | neoradio2_write_calibration_points_successful (neoradio2_handle *handle, int device, int bank) |
LIBNEORADIO2_API int | neoradio2_store_calibration (neoradio2_handle *handle, int device, int bank) |
LIBNEORADIO2_API int | neoradio2_is_calibration_stored (neoradio2_handle *handle, int device, int bank, int *stored) |
LIBNEORADIO2_API int | neoradio2_get_calibration_is_valid (neoradio2_handle *handle, int device, int bank, int *is_valid) |
LIBNEORADIO2_API int | neoradio2_request_calibration_info (neoradio2_handle *handle, int device, int bank) |
LIBNEORADIO2_API int | neoradio2_read_calibration_info (neoradio2_handle *handle, int device, int bank, neoRADIO2frame_calHeader *header) |
LIBNEORADIO2_API int | neoradio2_toggle_led (neoradio2_handle *handle, int device, int bank, int ms) |
LIBNEORADIO2_API int | neoradio2_toggle_led_successful (neoradio2_handle *handle, int device, int bank) |
LIBNEORADIO2_API int | neoradio2_get_status (neoradio2_handle *handle, int device, int bank, int bitfield, StatusType type, CommandStatus *status) |
LIBNEORADIO2_API int neoradio2_app_is_started | ( | neoradio2_handle * | handle, |
int | device, | ||
int | bank, | ||
int * | is_started | ||
) |
Determines if the neoRAD-IO-2 Application code is started. This should be called on first connect to make sure we aren't in bootloader still. Chain needs to be identified first.
neoradio2_handle | pointer to a neoradio2_handle. |
device | device number in the chain to communicate with. First device is 0. |
bank | bank of the device to communicate with. This is a bitmask (0b00001001 - 0x09 = Bank 1 and 4). |
is_started | 0 = false, 1 = true |
LIBNEORADIO2_API int neoradio2_app_start | ( | neoradio2_handle * | handle, |
int | device, | ||
int | bank | ||
) |
Tells the neoRAD-IO-2 bootloader to start Application code. This should be called on first connect to make sure we aren't in bootloader still. Chain needs to be identified first.
neoradio2_handle | pointer to a neoradio2_handle. |
device | device number in the chain to communicate with. First device is 0. |
bank | bank of the device to communicate with. This is a bitmask (0b00001001 - 0x09 = Bank 1 and 4). |
LIBNEORADIO2_API int neoradio2_chain_identify | ( | neoradio2_handle * | handle | ) |
Identifies the neoRAD-IO-2 chain.
neoradio2_handle | pointer to a neoradio2_handle. |
LIBNEORADIO2_API int neoradio2_chain_is_identified | ( | neoradio2_handle * | handle, |
int * | is_identified | ||
) |
Determines if the neoRAD-IO-2 Chain is identified.
neoradio2_handle | pointer to a neoradio2_handle. |
is_identified | 0 = false, 1 = true |
LIBNEORADIO2_API int neoradio2_close | ( | neoradio2_handle * | handle | ) |
Determines if a neoRAD-IO2 Device is open.
neoradio2_handle | pointer to a valid neoradio2_handle. |
is_opened | 0 = false, 1 = true |
LIBNEORADIO2_API int neoradio2_enter_bootloader | ( | neoradio2_handle * | handle, |
int | device, | ||
int | bank | ||
) |
Tells the neoRAD-IO-2 to enter bootloader. This is typically not needed. Chain needs to be identified first.
neoradio2_handle | pointer to a neoradio2_handle. |
device | device number in the chain to communicate with. First device is 0. |
bank | bank of the device to communicate with. This is a bitmask (0b00001001 - 0x09 = Bank 1 and 4). |
LIBNEORADIO2_API int neoradio2_find | ( | Neoradio2DeviceInfo * | devices, |
unsigned int * | device_count | ||
) |
Finds all neoRAD-IO2 Devices.
devices | Array of Neoradio2DeviceInfo |
device_count | Size of devices array, gets updated to device_count found. |
LIBNEORADIO2_API int neoradio2_get_calibration_is_valid | ( | neoradio2_handle * | handle, |
int | device, | ||
int | bank, | ||
int * | is_valid | ||
) |
LIBNEORADIO2_API int neoradio2_get_chain_count | ( | neoradio2_handle * | handle, |
int * | count, | ||
int | identify | ||
) |
LIBNEORADIO2_API int neoradio2_get_device_type | ( | neoradio2_handle * | handle, |
int | device, | ||
int | bank, | ||
unsigned int * | device_type | ||
) |
Get the device type of the selected devices and banks. Chain needs to be identified first.
neoradio2_handle | pointer to a neoradio2_handle. |
device | device number in the chain to communicate with. First device is 0. |
bank | bank of the device to communicate with. This is a bitmask (0b00001001 - 0x09 = Bank 1 and 4). |
LIBNEORADIO2_API int neoradio2_get_firmware_version | ( | neoradio2_handle * | handle, |
int | device, | ||
int | bank, | ||
int * | major, | ||
int * | minor | ||
) |
Get the firmware version of the selected devices and banks. Chain needs to be identified first.
neoradio2_handle | pointer to a neoradio2_handle. |
device | device number in the chain to communicate with. First device is 0. |
bank | bank of the device to communicate with. This is a bitmask (0b00001001 - 0x09 = Bank 1 and 4). |
LIBNEORADIO2_API int neoradio2_get_hardware_revision | ( | neoradio2_handle * | handle, |
int | device, | ||
int | bank, | ||
int * | major, | ||
int * | minor | ||
) |
Get the hardware revision of the selected devices and banks. Chain needs to be identified first.
neoradio2_handle | pointer to a neoradio2_handle. |
device | device number in the chain to communicate with. First device is 0. |
bank | bank of the device to communicate with. This is a bitmask (0b00001001 - 0x09 = Bank 1 and 4). |
LIBNEORADIO2_API int neoradio2_get_manufacturer_date | ( | neoradio2_handle * | handle, |
int | device, | ||
int | bank, | ||
int * | year, | ||
int * | month, | ||
int * | day | ||
) |
Get the manufacturing date of the selected devices and banks. Chain needs to be identified first.
neoradio2_handle | pointer to a neoradio2_handle. |
device | device number in the chain to communicate with. First device is 0. |
bank | bank of the device to communicate with. This is a bitmask (0b00001001 - 0x09 = Bank 1 and 4). |
LIBNEORADIO2_API int neoradio2_get_pcbsn | ( | neoradio2_handle * | handle, |
int | device, | ||
int | bank, | ||
char * | pcb_sn | ||
) |
LIBNEORADIO2_API int neoradio2_get_serial_number | ( | neoradio2_handle * | handle, |
int | device, | ||
int | bank, | ||
unsigned int * | serial_number | ||
) |
Gets the serial number (base10) on the selected devices and banks. Chain needs to be identified first. The serial number is generally displayed in base36.
neoradio2_handle | pointer to a neoradio2_handle. |
device | device number in the chain to communicate with. First device is 0. |
bank | bank of the device to communicate with. This is a bitmask (0b00001001 - 0x09 = Bank 1 and 4). |
serial_number | serial number in base10. |
LIBNEORADIO2_API int neoradio2_get_status | ( | neoradio2_handle * | handle, |
int | device, | ||
int | bank, | ||
int | bitfield, | ||
StatusType | type, | ||
CommandStatus * | status | ||
) |
LIBNEORADIO2_API int neoradio2_is_blocking | ( | ) |
Determine if the API is setup in blocking mode
devices | Array of Neoradio2DeviceInfo |
device_count | Size of devices array, gets updated to device_count found. |
LIBNEORADIO2_API int neoradio2_is_calibration_stored | ( | neoradio2_handle * | handle, |
int | device, | ||
int | bank, | ||
int * | stored | ||
) |
LIBNEORADIO2_API int neoradio2_is_closed | ( | neoradio2_handle * | handle, |
int * | is_closed | ||
) |
Determines if a neoRAD-IO2 Device is closed.
neoradio2_handle | pointer to a valid neoradio2_handle. |
is_closed | 0 = false, 1 = true |
LIBNEORADIO2_API int neoradio2_is_opened | ( | neoradio2_handle * | handle, |
int * | is_opened | ||
) |
Determines if a neoRAD-IO2 Device is open.
neoradio2_handle | pointer to a valid neoradio2_handle. |
is_opened | 0 = false, 1 = true |
LIBNEORADIO2_API int neoradio2_open | ( | neoradio2_handle * | handle, |
Neoradio2DeviceInfo * | device | ||
) |
Open a neoRAD-IO2 Device.
neoradio2_handle | pointer to a neoradio2_handle. Needs to be allocated beforehand. |
Neoradio2DeviceInfo | pointer to a Neoradio2DeviceInfo structure. |
LIBNEORADIO2_API int neoradio2_read_calibration_array | ( | neoradio2_handle * | handle, |
int | device, | ||
int | bank, | ||
neoRADIO2frame_calHeader * | header, | ||
float * | arr, | ||
int * | arr_size | ||
) |
LIBNEORADIO2_API int neoradio2_read_calibration_info | ( | neoradio2_handle * | handle, |
int | device, | ||
int | bank, | ||
neoRADIO2frame_calHeader * | header | ||
) |
LIBNEORADIO2_API int neoradio2_read_calibration_points_array | ( | neoradio2_handle * | handle, |
int | device, | ||
int | bank, | ||
neoRADIO2frame_calHeader * | header, | ||
float * | arr, | ||
int * | arr_size | ||
) |
LIBNEORADIO2_API int neoradio2_read_sensor_array | ( | neoradio2_handle * | handle, |
int | device, | ||
int | bank, | ||
int * | arr, | ||
int * | arr_size | ||
) |
LIBNEORADIO2_API int neoradio2_read_sensor_float | ( | neoradio2_handle * | handle, |
int | device, | ||
int | bank, | ||
float * | value | ||
) |
LIBNEORADIO2_API int neoradio2_read_settings | ( | neoradio2_handle * | handle, |
int | device, | ||
int | bank, | ||
neoRADIO2_settings * | settings | ||
) |
LIBNEORADIO2_API int neoradio2_request_calibration | ( | neoradio2_handle * | handle, |
int | device, | ||
int | bank, | ||
neoRADIO2frame_calHeader * | header | ||
) |
LIBNEORADIO2_API int neoradio2_request_calibration_info | ( | neoradio2_handle * | handle, |
int | device, | ||
int | bank | ||
) |
LIBNEORADIO2_API int neoradio2_request_calibration_points | ( | neoradio2_handle * | handle, |
int | device, | ||
int | bank, | ||
neoRADIO2frame_calHeader * | header | ||
) |
LIBNEORADIO2_API int neoradio2_request_pcbsn | ( | neoradio2_handle * | handle, |
int | device, | ||
int | bank | ||
) |
LIBNEORADIO2_API int neoradio2_request_sensor_data | ( | neoradio2_handle * | handle, |
int | device, | ||
int | bank, | ||
int | enable_cal | ||
) |
LIBNEORADIO2_API int neoradio2_request_settings | ( | neoradio2_handle * | handle, |
int | device, | ||
int | bank | ||
) |
LIBNEORADIO2_API void neoradio2_set_blocking | ( | int | blocking, |
long long | ms_timeout | ||
) |
Sets the API to blocking or non-blocking mode.
blocking | 1 = blocking, 0 = non-blocking |
ms_timeout | timeout in milliseconds. Only matters in blocking mode. |
LIBNEORADIO2_API int neoradio2_store_calibration | ( | neoradio2_handle * | handle, |
int | device, | ||
int | bank | ||
) |
LIBNEORADIO2_API int neoradio2_toggle_led | ( | neoradio2_handle * | handle, |
int | device, | ||
int | bank, | ||
int | ms | ||
) |
LIBNEORADIO2_API int neoradio2_toggle_led_successful | ( | neoradio2_handle * | handle, |
int | device, | ||
int | bank | ||
) |
LIBNEORADIO2_API int neoradio2_write_calibration | ( | neoradio2_handle * | handle, |
int | device, | ||
int | bank, | ||
neoRADIO2frame_calHeader * | header, | ||
float * | arr, | ||
int | arr_size | ||
) |
LIBNEORADIO2_API int neoradio2_write_calibration_points | ( | neoradio2_handle * | handle, |
int | device, | ||
int | bank, | ||
neoRADIO2frame_calHeader * | header, | ||
float * | arr, | ||
int | arr_size | ||
) |
LIBNEORADIO2_API int neoradio2_write_calibration_points_successful | ( | neoradio2_handle * | handle, |
int | device, | ||
int | bank | ||
) |
LIBNEORADIO2_API int neoradio2_write_calibration_successful | ( | neoradio2_handle * | handle, |
int | device, | ||
int | bank | ||
) |
LIBNEORADIO2_API int neoradio2_write_sensor | ( | neoradio2_handle * | handle, |
int | device, | ||
int | bank, | ||
int | mask, | ||
int | value | ||
) |
LIBNEORADIO2_API int neoradio2_write_sensor_successful | ( | neoradio2_handle * | handle, |
int | device, | ||
int | bank | ||
) |
LIBNEORADIO2_API int neoradio2_write_settings | ( | neoradio2_handle * | handle, |
int | device, | ||
int | bank, | ||
neoRADIO2_settings * | settings | ||
) |
LIBNEORADIO2_API int neoradio2_write_settings_successful | ( | neoradio2_handle * | handle, |
int | device, | ||
int | bank | ||
) |