lightranger11 2.1.0.0
|
This file contains API for LightRanger 11 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 | lightranger11_t |
LightRanger 11 Click context object. More... | |
struct | lightranger11_cfg_t |
LightRanger 11 Click configuration object. More... | |
struct | lightranger11_results_data_t |
LightRanger 11 Click block header union data definition. More... | |
union | lightranger11_block_header_t |
LightRanger 11 Click block header union data definition. More... | |
Enumerations | |
enum | lightranger11_return_value_t { LIGHTRANGER11_OK = 0 , LIGHTRANGER11_ERROR = -1 } |
LightRanger 11 Click return value data. More... | |
Functions | |
void | lightranger11_cfg_setup (lightranger11_cfg_t *cfg) |
LightRanger 11 configuration object setup function. | |
err_t | lightranger11_init (lightranger11_t *ctx, lightranger11_cfg_t *cfg) |
LightRanger 11 initialization function. | |
err_t | lightranger11_default_cfg (lightranger11_t *ctx) |
LightRanger 11 default configuration function. | |
err_t | lightranger11_write_multi (lightranger11_t *ctx, uint16_t reg, uint8_t *data_in, uint8_t len) |
LightRanger 11 write multi function. | |
err_t | lightranger11_read_multi (lightranger11_t *ctx, uint16_t reg, uint8_t *data_out, uint16_t len) |
LightRanger 11 read multi function. | |
err_t | lightranger11_write_byte (lightranger11_t *ctx, uint16_t reg, uint8_t data_in) |
LightRanger 11 write byte function. | |
err_t | lightranger11_read_byte (lightranger11_t *ctx, uint16_t reg, uint8_t *data_out) |
LightRanger 11 read byte function. | |
err_t | lightranger11_write_data (lightranger11_t *ctx, uint8_t *data_in, uint16_t len) |
LightRanger 11 write data function. | |
err_t | lightranger11_check_comm (lightranger11_t *ctx) |
LightRanger 11 check communication function. | |
uint8_t | lightranger11_get_int_pin (lightranger11_t *ctx) |
LightRanger 11 get int pin function. | |
void | lightranger11_set_i2c_rst_pin (lightranger11_t *ctx, uint8_t state) |
LightRanger 11 set i2c rst function. | |
void | lightranger11_set_lpn_pin (lightranger11_t *ctx, uint8_t state) |
LightRanger 11 set lpn function. | |
void | lightranger11_reset_i2c (lightranger11_t *ctx) |
LightRanger 11 reset i2c function. | |
err_t | lightranger11_sensor_init (lightranger11_t *ctx) |
LightRanger 11 sensor init function. | |
err_t | lightranger11_dci_write_data (lightranger11_t *ctx, uint16_t index, uint8_t *data_in, uint16_t data_size) |
LightRanger 11 dci write data function. | |
err_t | lightranger11_dci_read_data (lightranger11_t *ctx, uint16_t index, uint8_t *data_out, uint16_t data_size) |
LightRanger 11 dci read data function. | |
err_t | lightranger11_dci_replace_data (lightranger11_t *ctx, uint16_t index, uint8_t *data_in, uint16_t data_size, uint8_t *new_data, uint16_t new_data_size, uint16_t new_data_pos) |
LightRanger 11 dci replace data function. | |
err_t | lightranger11_set_resolution (lightranger11_t *ctx, uint8_t resolution) |
LightRanger 11 set resolution function. | |
err_t | lightranger11_get_resolution (lightranger11_t *ctx, uint8_t *resolution) |
LightRanger 11 get resolution function. | |
err_t | lightranger11_set_rang_freq_hz (lightranger11_t *ctx, uint8_t frequency_hz) |
LightRanger 11 set ranging frequency hz function. | |
err_t | lightranger11_get_rang_freq_hz (lightranger11_t *ctx, uint8_t *frequency_hz) |
LightRanger 11 get ranging frequency hz function. | |
err_t | lightranger11_set_integ_time_ms (lightranger11_t *ctx, uint32_t integration_time_ms) |
LightRanger 11 set integration time ms function. | |
err_t | lightranger11_get_integ_time_ms (lightranger11_t *ctx, uint32_t *integration_time_ms) |
LightRanger 11 get integration time ms function. | |
err_t | lightranger11_set_ranging_mode (lightranger11_t *ctx, uint8_t ranging_mode) |
LightRanger 11 set ranging mode function. | |
err_t | lightranger11_get_ranging_mode (lightranger11_t *ctx, uint8_t *ranging_mode) |
LightRanger 11 get ranging mode function. | |
err_t | lightranger11_start_ranging (lightranger11_t *ctx) |
LightRanger 11 start ranging function. | |
err_t | lightranger11_stop_ranging (lightranger11_t *ctx) |
LightRanger 11 stop ranging function. | |
err_t | lightranger11_get_ranging_data (lightranger11_t *ctx, lightranger11_results_data_t *results) |
LightRanger 11 get ranging data function. | |
This file contains API for LightRanger 11 Click Driver.