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