|
| void | smartsens2_cfg_setup (smartsens2_cfg_t *cfg) |
| | Smart Sens 2 configuration object setup function.
|
| void | smartsens2_drv_interface_selection (smartsens2_cfg_t *cfg, smartsens2_drv_t drv_sel) |
| | Smart Sens 2 driver interface setup function.
|
| err_t | smartsens2_init (smartsens2_t *ctx, smartsens2_cfg_t *cfg) |
| | Smart Sens 2 initialization function.
|
| err_t | smartsens2_default_cfg (smartsens2_t *ctx) |
| | Smart Sens 2 default configuration function.
|
| err_t | smartsens2_generic_write (smartsens2_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
| | Smart Sens 2 data writing function.
|
| err_t | smartsens2_generic_read (smartsens2_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
| | Smart Sens 2 data reading function.
|
| err_t | smartsens2_byte_write (smartsens2_t *ctx, uint8_t reg, uint8_t data_in) |
| | Byte writing function.
|
| err_t | smartsens2_byte_read (smartsens2_t *ctx, uint8_t reg, uint8_t *data_out) |
| | Byte reading function.
|
| uint8_t | smartsens2_get_interrupt (smartsens2_t *ctx) |
| | Get interrupt.
|
| err_t | smartsens2_cmd_write (smartsens2_t *ctx, uint16_t cmd, uint8_t *cmd_buf, uint16_t cmd_len) |
| | Send command.
|
| err_t | smartsens2_status_read (smartsens2_t *ctx, uint16_t *cmd, uint8_t *cmd_buf, uint16_t *cmd_len) |
| | Read Status and Debug FIFO.
|
| err_t | smartsens2_get_parameter (smartsens2_t *ctx, uint16_t parameter, uint8_t *parameter_buf, uint16_t *parameter_len) |
| | Get command parameters response.
|
| void | smartsens2_reset (smartsens2_t *ctx) |
| | Reset device.
|
| err_t | smartsens2_sw_reset (smartsens2_t *ctx) |
| | SW Reset device.
|
| err_t | smartsens2_update_firmware (smartsens2_t *ctx) |
| | Upload firmware image to the device.
|
| err_t | smartsens2_boot_firmware (smartsens2_t *ctx) |
| | Boot firmware image.
|
| err_t | smartsens2_power_on_device (smartsens2_t *ctx) |
| | Power on device boot/upload firmware to device.
|
| err_t | smartsens2_update_virtual_sensor_list (smartsens2_t *ctx) |
| | Update the callback table's information.
|
| err_t | smartsens2_get_virt_sensor_list (smartsens2_t *ctx, uint8_t *sensor_list) |
| | Get the virtual sensor list.
|
| err_t | smartsens2_set_virt_sensor_cfg (smartsens2_t *ctx, uint8_t sensor_id, float sample_rate, uint32_t latency) |
| | Set configuration fro virtual sensor.
|
| err_t | smartsens2_get_and_process_fifo (smartsens2_t *ctx, uint8_t *work_buffer, uint32_t buffer_size) |
| | Get and process the FIFO.
|
| err_t | smartsens2_register_fifo_parse_callback (smartsens2_t *ctx, uint8_t sensor_id, smartsens2_fifo_parse_callback_t callback, void *callback_ref) |
| | Link a callback to virtual sensor.
|
This file contains API for Smart Sens 2 Click Driver.