lsm6dsl 2.0.0.0
|
This file contains API for LSM6DSL Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"
Go to the source code of this file.
Data Structures | |
struct | lsm6dsl_accel_t |
Accel object definition. More... | |
struct | lsm6dsl_gyro_t |
Gyro object definition. More... | |
struct | lsm6dsl_t |
Click ctx object definition. More... | |
struct | lsm6dsl_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | lsm6dsl_cfg_setup (lsm6dsl_cfg_t *cfg) |
Config Object Initialization function. | |
LSM6DSL_RETVAL | lsm6dsl_init (lsm6dsl_t *ctx, lsm6dsl_cfg_t *cfg) |
Initialization function. | |
void | lsm6dsl_default_cfg (lsm6dsl_t *ctx) |
Click Default Configuration function. | |
void | lsm6dsl_generic_transfer (lsm6dsl_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. | |
uint8_t | lsm6dsl_read_byte (lsm6dsl_t *ctx, uint8_t reg_address) |
Read byte of data function. | |
void | lsm6dsl_write_byte (lsm6dsl_t *ctx, uint8_t reg_address, uint8_t write_data) |
Write byte of data function. | |
uint8_t | lsm6dsl_check_id (lsm6dsl_t *ctx) |
Function check LSM6DSL ID. | |
void | lsm6dsl_set_accel_config (lsm6dsl_t *ctx, uint8_t odr_sel, uint8_t full_scale) |
Set accel configuration function. | |
void | lsm6dsl_set_gyro_config (lsm6dsl_t *ctx, uint8_t odr_sel, uint8_t full_scale) |
Set gyro configuration function. | |
void | lsm6dsl_soft_reset (lsm6dsl_t *ctx) |
Set soft reset function. | |
void | lsm6dsl_sleep_gyro (lsm6dsl_t *ctx) |
Set gyroscope sleep mode function. | |
void | lsm6dsl_wake_up_gyro (lsm6dsl_t *ctx) |
Set gyroscope wake up mode function. | |
void | lsm6dsl_circular_burst_mode (lsm6dsl_t *ctx, uint8_t burst_mode) |
Set circular burst mode function. | |
void | lsm6dsl_set_self_test_mode (lsm6dsl_t *ctx, uint8_t gyro_self_test, uint8_t accel_self_test) |
Set self-test mode function. | |
uint8_t | lsm6dsl_get_status_reg (lsm6dsl_t *ctx) |
Get status function. | |
uint16_t | lsm6dsl_get_axis (lsm6dsl_t *ctx, uint8_t reg_address_low) |
Get axis value function. | |
float | lsm6dsl_get_temperature (lsm6dsl_t *ctx) |
void | lsm6dsl_get_accel (lsm6dsl_t *ctx, lsm6dsl_accel_t *accel, uint8_t full_scale) |
Get acceleration function. | |
void | lsm6dsl_get_gyro (lsm6dsl_t *ctx, lsm6dsl_gyro_t *gyro, uint8_t full_scale) |
Get gyroscope function. | |
This file contains API for LSM6DSL Click driver.