|
lightranger13 2.2.0
|
This file contains API for LightRanger 13 Click Driver. More...
#include "drv_digital_out.h"#include "drv_digital_in.h"#include "drv_i2c_master.h"Go to the source code of this file.
Data Structures | |
| struct | lightranger13_info_t |
| LightRanger 13 Click device information object. More... | |
| struct | lightranger13_meas_cfg_t |
| LightRanger 13 Click device measurement config object. More... | |
| struct | lightranger13_meas_result_t |
| LightRanger 13 Click device measurement results object. More... | |
| struct | lightranger13_t |
| LightRanger 13 Click context object. More... | |
| struct | lightranger13_cfg_t |
| LightRanger 13 Click configuration object. More... | |
Enumerations | |
| enum | lightranger13_return_value_t { LIGHTRANGER13_OK = 0 , LIGHTRANGER13_ERROR = -1 } |
| LightRanger 13 Click return value data. More... | |
Functions | |
| void | lightranger13_cfg_setup (lightranger13_cfg_t *cfg) |
| LightRanger 13 configuration object setup function. | |
| err_t | lightranger13_init (lightranger13_t *ctx, lightranger13_cfg_t *cfg) |
| LightRanger 13 initialization function. | |
| err_t | lightranger13_default_cfg (lightranger13_t *ctx) |
| LightRanger 13 default configuration function. | |
| err_t | lightranger13_write_regs (lightranger13_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
| LightRanger 13 write regs function. | |
| err_t | lightranger13_read_regs (lightranger13_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
| LightRanger 13 read regs function. | |
| err_t | lightranger13_write_reg (lightranger13_t *ctx, uint8_t reg, uint8_t data_in) |
| LightRanger 13 write reg function. | |
| err_t | lightranger13_read_reg (lightranger13_t *ctx, uint8_t reg, uint8_t *data_out) |
| LightRanger 13 read reg function. | |
| err_t | lightranger13_send_cmd (lightranger13_t *ctx, uint8_t cmd, uint8_t *payload, uint8_t payload_len, uint16_t timeout_ms) |
| LightRanger 13 send cmd function. | |
| err_t | lightranger13_wait_reg_state (lightranger13_t *ctx, uint8_t reg, uint8_t mask, uint8_t state, uint16_t timeout_ms) |
| LightRanger 13 wait reg state function. | |
| void | lightranger13_enable_device (lightranger13_t *ctx) |
| LightRanger 13 enable device function. | |
| void | lightranger13_disable_device (lightranger13_t *ctx) |
| LightRanger 13 disable device function. | |
| uint8_t | lightranger13_get_int_pin (lightranger13_t *ctx) |
| LightRanger 13 get int pin function. | |
| err_t | lightranger13_power_up (lightranger13_t *ctx) |
| LightRanger 13 power up function. | |
| err_t | lightranger13_read_info (lightranger13_t *ctx) |
| LightRanger 13 read info function. | |
| err_t | lightranger13_clear_interrupts (lightranger13_t *ctx) |
| LightRanger 13 clear interrupts function. | |
| err_t | lightranger13_factory_calib (lightranger13_t *ctx) |
| LightRanger 13 factory calib function. | |
| err_t | lightranger13_set_threshold (lightranger13_t *ctx, uint16_t t_low, uint16_t t_high, uint8_t persistance) |
| LightRanger 13 set threshold function. | |
| err_t | lightranger13_start_measurement (lightranger13_t *ctx) |
| LightRanger 13 start measurement function. | |
| err_t | lightranger13_stop_measurement (lightranger13_t *ctx) |
| LightRanger 13 stop measurement function. | |
| err_t | lightranger13_read_result (lightranger13_t *ctx, lightranger13_meas_result_t *result) |
| LightRanger 13 read result function. | |
This file contains API for LightRanger 13 Click Driver.