lightranger 2.0.0.0
|
This file contains API for LightRanger 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 | lightranger_t |
Click ctx object definition. More... | |
struct | lightranger_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | lightranger_cfg_setup (lightranger_cfg_t *cfg) |
Config Object Initialization function. | |
LIGHTRANGER_RETVAL | lightranger_init (lightranger_t *ctx, lightranger_cfg_t *cfg) |
Initialization function. | |
void | lightranger_default_cfg (lightranger_t *ctx) |
Click Default Configuration function. | |
void | lightranger_interrupts_clear (lightranger_t *ctx) |
Clear Interrupts. | |
void | lightranger_poll_range (lightranger_t *ctx) |
Poll range. | |
uint8_t | lightranger_get_distance (lightranger_t *ctx) |
Get Distance. | |
float | lightranger_get_ambiant_light (lightranger_t *ctx, uint8_t als_gain_check) |
Get ambiant light. | |
void | lightranger_start_single_shot_range_mode (lightranger_t *ctx) |
Function Start Single Mode. | |
uint16_t | lightranger_read_data (lightranger_t *ctx, uint16_t reg_addr) |
Generic read data function. | |
void | lightranger_write_data (lightranger_t *ctx, uint16_t reg_addr, uint16_t write_command) |
Generic write data function. | |
uint8_t | lightranger_read_byte (lightranger_t *ctx, uint16_t reg_addr) |
Generic read byte function. | |
void | lightranger_write_byte (lightranger_t *ctx, uint16_t reg_addr, uint8_t write_command) |
Generic write byte function. | |
This file contains API for LightRanger Click driver.