lightranger8 2.0.0.0
|
This file contains API for LightRanger 8 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 | lightranger8_t |
LightRanger 8 Click context object. More... | |
struct | lightranger8_cfg_t |
LightRanger 8 Click configuration object. More... | |
Functions | |
void | lightranger8_cfg_setup (lightranger8_cfg_t *cfg) |
LightRanger 8 configuration object setup function. | |
err_t | lightranger8_init (lightranger8_t *ctx, lightranger8_cfg_t *cfg) |
LightRanger 8 initialization function. | |
err_t | lightranger8_default_cfg (lightranger8_t *ctx) |
LightRanger 8 default configuration function. | |
err_t | lightranger8_generic_write (lightranger8_t *ctx, uint16_t reg, uint8_t *tx_buf, uint8_t tx_len) |
LightRanger 8 I2C writing function. | |
err_t | lightranger8_generic_read (lightranger8_t *ctx, uint16_t reg, uint8_t *rx_buf, uint8_t rx_len) |
LightRanger 8 I2C reading function. | |
void | lightranger8_software_reset (lightranger8_t *ctx) |
LightRanger 8 software reset function. | |
void | lightranger8_system_interrupt_clear (lightranger8_t *ctx) |
LightRanger 8 system interrupt clear function. | |
void | lightranger8_start_ranging_cmd (lightranger8_t *ctx, uint8_t ranging_mode) |
LightRanger 8 start ranging function. | |
void | lightranger8_start_measurement (lightranger8_t *ctx, uint32_t period_ms) |
LightRanger 8 start measurement function. | |
void | lightranger8_stop_measurement (lightranger8_t *ctx) |
LightRanger 8 stop measurement function. | |
uint8_t | lightranger8_new_data_ready (lightranger8_t *ctx) |
LightRanger 8 data ready function. | |
uint16_t | lightranger8_get_distance (lightranger8_t *ctx) |
LightRanger 8 get distance function. | |
uint16_t | lightranger8_get_signal_rate (lightranger8_t *ctx) |
LightRanger 8 get signal rate function. | |
uint8_t | lightranger8_set_distance_mode (lightranger8_t *ctx, uint8_t mode) |
LightRanger 8 set distance mode function. | |
uint8_t | lightranger8_get_range_status (lightranger8_t *ctx) |
LightRanger 8 get range status function. | |
uint8_t | lightranger8_get_roi_center (lightranger8_t *ctx) |
LightRanger 8 get roi center function. | |
void | lightranger8_set_roi_center (lightranger8_t *ctx, uint8_t roi_center) |
LightRanger 8 set roi center function. | |
void | lightranger8_set_roi (lightranger8_t *ctx, uint16_t x, uint16_t y) |
LightRanger 8 set roi function. | |
void | lightranger8_get_roi (lightranger8_t *ctx, uint16_t *roi_x, uint16_t *roi_y) |
LightRanger 8 get roi function. | |
void | lightranger8_set_offset (lightranger8_t *ctx, int16_t offset_value) |
LightRanger 8 set offset function. | |
void | lightranger8_calibrate_offset (lightranger8_t *ctx, uint16_t target_distance_mm, uint32_t period_ms, int16_t *offset) |
LightRanger 8 calibrate offset function. | |
err_t | lightranger8_set_measurement_timing_budget (lightranger8_t *ctx, uint32_t budget_us) |
LightRanger 8 set measurement timing budget function. | |
uint8_t | lightranger8_get_interrupt_state (lightranger8_t *ctx) |
LightRanger 8 get int pin state function. | |
void | lightranger8_set_xshut_pin (lightranger8_t *ctx, uint8_t state) |
LightRanger 8 set xshut pin function. | |
void | lightranger8_power_on (lightranger8_t *ctx) |
LightRanger 8 power on function. | |
uint32_t | lightranger8_get_timing_budget (lightranger8_t *ctx) |
LightRanger 8 get timing budget function. | |
uint16_t | lightranger8_get_measurement_period (lightranger8_t *ctx) |
LightRanger 8 get intermeasurement period function. | |
This file contains API for LightRanger 8 Click Driver.