lightranger3 2.0.0.0
|
This file contains API for Light Ranger 3 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 | lightranger3_t |
Click ctx object definition. More... | |
struct | lightranger3_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | lightranger3_cfg_setup (lightranger3_cfg_t *cfg) |
Config Object Initialization function. | |
LIGHTRANGER3_RETVAL | lightranger3_init (lightranger3_t *ctx, lightranger3_cfg_t *cfg) |
Initialization function. | |
void | lightranger3_generic_write (lightranger3_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | lightranger3_generic_read (lightranger3_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | lightranger3_write_byte (lightranger3_t *ctx, uint8_t reg, uint8_t w_data) |
Functions for write one byte in register. | |
void | lightranger3_write_data (lightranger3_t *ctx, uint8_t reg, uint16_t w_data) |
Functions for write data in register. | |
uint8_t | lightranger3_read_byte (lightranger3_t *ctx, uint8_t reg) |
Functions for read one byte from register. | |
uint16_t | lightranger3_read_data (lightranger3_t *ctx, uint8_t reg) |
Functions for read data from register. | |
uint8_t | lightranger3_set_standby_mode (lightranger3_t *ctx) |
Functions for go to standby mode. | |
uint8_t | lightranger3_set_off_mode (lightranger3_t *ctx) |
Functions for go to OFF mode. | |
uint8_t | lightranger3_set_on_mode (lightranger3_t *ctx) |
Functions for go to ON mode. | |
uint8_t | lightranger3_set_measurement_mode (lightranger3_t *ctx) |
Functions for go to measurement mode. | |
uint8_t | lightranger3_take_single_measurement (lightranger3_t *ctx) |
Functions for measurement. | |
uint16_t | lightranger3_get_distance (lightranger3_t *ctx) |
Functions for reads distance. | |
uint16_t | lightranger3_get_confidence_value (lightranger3_t *ctx) |
Functions for reads confidence value. | |
uint16_t | lightranger3_get_device_id (lightranger3_t *ctx) |
Functions for reads device ID. | |
void | lightranger3_soft_reset (lightranger3_t *ctx) |
Functions for soft reset. | |
uint8_t | lightranger3_get_interrupt (lightranger3_t *ctx) |
Functions for reads interrupt pin. | |
uint8_t | lightranger3_device_init (lightranger3_t *ctx) |
Functions for initializes chip. | |
This file contains API for Light Ranger 3 Click driver.