lightranger10 2.0.0.0
|
This file contains API for LightRanger 10 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 | lightranger10_t |
LightRanger 10 Click context object. More... | |
struct | lightranger10_cfg_t |
LightRanger 10 Click configuration object. More... | |
Enumerations | |
enum | lightranger10_return_value_t { LIGHTRANGER10_OK = 0 , LIGHTRANGER10_ERROR = -1 } |
LightRanger 10 Click return value data. More... | |
Functions | |
void | lightranger10_cfg_setup (lightranger10_cfg_t *cfg) |
LightRanger 10 configuration object setup function. | |
err_t | lightranger10_init (lightranger10_t *ctx, lightranger10_cfg_t *cfg) |
LightRanger 10 initialization function. | |
err_t | lightranger10_default_cfg (lightranger10_t *ctx) |
LightRanger 10 default configuration function. | |
err_t | lightranger10_generic_write (lightranger10_t *ctx, uint16_t reg, uint8_t *data_in, uint8_t len) |
LightRanger 10 I2C writing function. | |
err_t | lightranger10_generic_read (lightranger10_t *ctx, uint16_t reg, uint8_t *data_out, uint8_t len) |
LightRanger 10 I2C reading function. | |
err_t | lightranger10_write_byte (lightranger10_t *ctx, uint16_t reg, uint8_t data_in) |
LightRanger 10 write byte function. | |
err_t | lightranger10_read_byte (lightranger10_t *ctx, uint16_t reg, uint8_t *data_out) |
LightRanger 10 read byte function. | |
err_t | lightranger10_write_word (lightranger10_t *ctx, uint16_t reg, uint16_t data_in) |
LightRanger 10 write word function. | |
err_t | lightranger10_read_word (lightranger10_t *ctx, uint16_t reg, uint16_t *data_out) |
LightRanger 10 read word function. | |
err_t | lightranger10_write_dword (lightranger10_t *ctx, uint16_t reg, uint32_t data_in) |
LightRanger 10 write dword function. | |
err_t | lightranger10_read_dword (lightranger10_t *ctx, uint16_t reg, uint16_t *data_out) |
LightRanger 10 read dword function. | |
err_t | lightranger10_check_communication (lightranger10_t *ctx) |
LightRanger 10 check communication function. | |
uint8_t | lightranger10_get_int_pin (lightranger10_t *ctx) |
LightRanger 10 get int pin function. | |
void | lightranger10_enable_device (lightranger10_t *ctx) |
LightRanger 10 enable device function. | |
void | lightranger10_disable_device (lightranger10_t *ctx) |
LightRanger 10 disable device function. | |
void | lightranger10_reset_device (lightranger10_t *ctx) |
LightRanger 10 reset device function. | |
err_t | lightranger10_soft_reset (lightranger10_t *ctx) |
LightRanger 10 soft reset function. | |
err_t | lightranger10_clear_interrupts (lightranger10_t *ctx) |
LightRanger 10 clear interrupts function. | |
err_t | lightranger10_set_inter_measurement_period_ms (lightranger10_t *ctx, uint32_t period_ms) |
LightRanger 10 set inter measurement period ms function. | |
err_t | lightranger10_set_distance_offset (lightranger10_t *ctx, int16_t offset_mm) |
LightRanger 10 set distance offset function. | |
err_t | lightranger10_calibrate_distance (lightranger10_t *ctx, uint16_t target_distance_mm) |
LightRanger 10 calibrate distance function. | |
err_t | lightranger10_set_distance_mode (lightranger10_t *ctx, uint8_t distance_mode) |
LightRanger 10 set distance mode function. | |
err_t | lightranger10_start_measurement (lightranger10_t *ctx) |
LightRanger 10 start measurement function. | |
err_t | lightranger10_stop_measurement (lightranger10_t *ctx) |
LightRanger 10 stop measurement function. | |
err_t | lightranger10_get_distance (lightranger10_t *ctx, uint16_t *distance_mm) |
LightRanger 10 get distance function. | |
This file contains API for LightRanger 10 Click Driver.