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