lightranger5 2.0.0.0
|
This file contains API for LightRanger 5 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 | lightranger5_t |
LightRanger 5 Click context object. More... | |
struct | lightranger5_cfg_t |
LightRanger 5 Click configuration object. More... | |
Enumerations | |
enum | lightranger5_return_value_t { LIGHTRANGER5_OK = 0 , LIGHTRANGER5_ERROR = -1 } |
LightRanger 5 Click return value data. More... | |
enum | lightranger5_return_data_ready_t { LIGHTRANGER5_DATA_NOT_READY = 0 , LIGHTRANGER5_DATA_IS_READY = 1 } |
LightRanger 5 Click return data ready. More... | |
Functions | |
void | lightranger5_cfg_setup (lightranger5_cfg_t *cfg) |
LightRanger 5 configuration object setup function. | |
err_t | lightranger5_init (lightranger5_t *ctx, lightranger5_cfg_t *cfg) |
LightRanger 5 initialization function. | |
err_t | lightranger5_default_cfg (lightranger5_t *ctx) |
LightRanger 5 default configuration function. | |
err_t | lightranger5_generic_write (lightranger5_t *ctx, uint8_t reg, uint8_t *tx_buf, uint8_t tx_len) |
LightRanger 5 I2C writing function. | |
err_t | lightranger5_generic_read (lightranger5_t *ctx, uint8_t reg, uint8_t *rx_buf, uint8_t rx_len) |
LightRanger 5 I2C reading function. | |
err_t | lightranger5_enable_device (lightranger5_t *ctx) |
LightRanger 5 enable device function. | |
err_t | lightranger5_disable_device (lightranger5_t *ctx) |
LightRanger 5 disable device function. | |
err_t | lightranger5_set_pin_state_io0 (lightranger5_t *ctx, uint8_t io0_state) |
LightRanger 5 set IO0 pin state function. | |
err_t | lightranger5_set_pin_state_io1 (lightranger5_t *ctx, uint8_t io1_state) |
LightRanger 5 set IO1 pin state function. | |
err_t | lightranger5_device_reset (lightranger5_t *ctx) |
LightRanger 5 device reset function. | |
err_t | lightranger5_load_app (lightranger5_t *ctx) |
LightRanger 5 load app function. | |
err_t | lightranger5_start_calib_cmd (lightranger5_t *ctx) |
LightRanger 5 start calibration function. | |
err_t | lightranger5_check_factory_calibration (lightranger5_t *ctx) |
LightRanger 5 check factory calibration function. | |
err_t | lightranger5_get_status (lightranger5_t *ctx, uint8_t *status) |
LightRanger 5 get status function. | |
err_t | lightranger5_set_command (lightranger5_t *ctx, uint8_t cmd) |
LightRanger 5 set command function. | |
err_t | lightranger5_set_factory_calib_data (lightranger5_t *ctx, uint8_t *factory_calib_data) |
LightRanger 5 set factory calib data function. | |
err_t | lightranger5_get_factory_calib_data (lightranger5_t *ctx, uint8_t *factory_calib_data) |
LightRanger 5 get factory calib data function. | |
err_t | lightranger5_set_algorithm_state_data (lightranger5_t *ctx, uint8_t *alg_state_data) |
LightRanger 5 set algorithm state data function. | |
err_t | lightranger5_set_command_data (lightranger5_t *ctx, uint8_t *cmd_data) |
LightRanger 5 set command data function. | |
err_t | lightranger5_check_previous_command (lightranger5_t *ctx, uint8_t *previous_cmd) |
LightRanger 5 check previous command function. | |
err_t | lightranger5_get_currently_run_app (lightranger5_t *ctx, uint8_t *appid_data) |
LightRanger 5 get currently running application function. | |
lightranger5_return_data_ready_t | lightranger5_check_data_ready (lightranger5_t *ctx) |
LightRanger 5 check data ready function. | |
uint16_t | lightranger5_measure_distance (lightranger5_t *ctx) |
LightRanger 5 measure distance function. | |
uint8_t | lightranger5_check_int (lightranger5_t *ctx) |
LightRanger 5 check interrupt state function. | |
This file contains API for LightRanger 5 Click Driver.