lightranger9 2.0.0.0
|
This file contains API for LightRanger 9 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 | lightranger9_t |
LightRanger 9 Click context object. More... | |
struct | lightranger9_cfg_t |
LightRanger 9 Click configuration object. More... | |
struct | lightranger9_meas_result_t |
LightRanger 9 measurement result data object. More... | |
struct | lightranger9_capture_t |
LightRanger 9 capture data object. More... | |
Enumerations | |
enum | lightranger9_return_value_t { LIGHTRANGER9_OK = 0 , LIGHTRANGER9_ERROR = -1 } |
LightRanger 9 Click return value data. More... | |
Functions | |
void | lightranger9_cfg_setup (lightranger9_cfg_t *cfg) |
LightRanger 9 configuration object setup function. | |
err_t | lightranger9_init (lightranger9_t *ctx, lightranger9_cfg_t *cfg) |
LightRanger 9 initialization function. | |
err_t | lightranger9_default_cfg (lightranger9_t *ctx) |
LightRanger 9 default configuration function. | |
err_t | lightranger9_generic_write (lightranger9_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
LightRanger 9 I2C writing function. | |
err_t | lightranger9_generic_read (lightranger9_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
LightRanger 9 I2C reading function. | |
err_t | lightranger9_write_register (lightranger9_t *ctx, uint8_t reg, uint8_t data_in) |
LightRanger 9 write register function. | |
err_t | lightranger9_read_register (lightranger9_t *ctx, uint8_t reg, uint8_t *data_out) |
LightRanger 9 read register function. | |
err_t | lightranger9_write_bl_cmd (lightranger9_t *ctx, uint8_t cmd, uint8_t *data_in, uint8_t len) |
LightRanger 9 write bl cmd function. | |
err_t | lightranger9_read_bl_cmd_status (lightranger9_t *ctx, uint8_t *status) |
LightRanger 9 read bl cmd status function. | |
err_t | lightranger9_check_communication (lightranger9_t *ctx) |
LightRanger 9 check communication function. | |
void | lightranger9_set_gpio0_pin (lightranger9_t *ctx, uint8_t state) |
LightRanger 9 set gpio0 pin function. | |
void | lightranger9_set_gpio1_pin (lightranger9_t *ctx, uint8_t state) |
LightRanger 9 set gpio1 pin function. | |
void | lightranger9_enable_device (lightranger9_t *ctx) |
LightRanger 9 enable device function. | |
void | lightranger9_disable_device (lightranger9_t *ctx) |
LightRanger 9 disable device function. | |
uint8_t | lightranger9_get_int_pin (lightranger9_t *ctx) |
LightRanger 9 get int pin function. | |
err_t | lightranger9_download_fw_bin (lightranger9_t *ctx) |
LightRanger 9 download fw bin function. | |
err_t | lightranger9_clear_interrupts (lightranger9_t *ctx) |
LightRanger 9 clear interrupts function. | |
err_t | lightranger9_get_capture (lightranger9_t *ctx, lightranger9_capture_t *capture) |
LightRanger 9 get capture function. | |
This file contains API for LightRanger 9 Click Driver.