|
| void | smartsens_cfg_setup (smartsens_cfg_t *cfg) |
| | Smart Sens configuration object setup function.
|
| void | smartsens_drv_interface_selection (smartsens_cfg_t *cfg, smartsens_drv_t drv_sel) |
| | Smart Sens driver interface setup function.
|
| err_t | smartsens_init (smartsens_t *ctx, smartsens_cfg_t *cfg) |
| | Smart Sens initialization function.
|
| err_t | smartsens_default_cfg (smartsens_t *ctx) |
| | Smart Sens default configuration function.
|
| err_t | smartsens_generic_write (smartsens_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
| | Smart Sens data writing function.
|
| err_t | smartsens_generic_read (smartsens_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
| | Smart Sens data reading function.
|
| err_t | smartsens_byte_write (smartsens_t *ctx, uint8_t reg, uint8_t data_in) |
| | Byte writing function.
|
| err_t | smartsens_byte_read (smartsens_t *ctx, uint8_t reg, uint8_t *data_out) |
| | Byte reading function.
|
| uint8_t | smartsens_get_interrupt (smartsens_t *ctx) |
| | Get interrupt.
|
| err_t | smartsens_cmd_write (smartsens_t *ctx, uint16_t cmd, uint8_t *cmd_buf, uint16_t cmd_len) |
| | Send command.
|
| err_t | smartsens_status_read (smartsens_t *ctx, uint16_t *cmd, uint8_t *cmd_buf, uint16_t *cmd_len) |
| | Read Status and Debug FIFO.
|
| err_t | smartsens_get_parameter (smartsens_t *ctx, uint16_t parameter, uint8_t *parameter_buf, uint16_t *parameter_len) |
| | Get command parameters response.
|
| void | smartsens_reset (smartsens_t *ctx) |
| | Reset device.
|
| err_t | smartsens_sw_reset (smartsens_t *ctx) |
| | SW Reset device.
|
| err_t | smartsens_update_firmware (smartsens_t *ctx) |
| | Upload firmware image to the device.
|
| err_t | smartsens_boot_firmware (smartsens_t *ctx) |
| | Boot firmware image.
|
| err_t | smartsens_power_on_device (smartsens_t *ctx) |
| | Power on device boot/upload firmware to device.
|
| err_t | smartsens_update_virtual_sensor_list (smartsens_t *ctx) |
| | Update the callback table's information.
|
| err_t | smartsens_get_virt_sensor_list (smartsens_t *ctx, uint8_t *sensor_list) |
| | Get the virtual sensor list.
|
| err_t | smartsens_set_virt_sensor_cfg (smartsens_t *ctx, uint8_t sensor_id, float sample_rate, uint32_t latency) |
| | Set configuration fro virtual sensor.
|
| err_t | smartsens_get_and_process_fifo (smartsens_t *ctx, uint8_t *work_buffer, uint32_t buffer_size) |
| | Get and process the FIFO.
|
| err_t | smartsens_register_fifo_parse_callback (smartsens_t *ctx, uint8_t sensor_id, smartsens_fifo_parse_callback_t callback, void *callback_ref) |
| | Link a callback to virtual sensor.
|
This file contains API for Smart Sens Click Driver.