inclinometer 2.0.0.0
|
This file contains API for Inclinometer 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 | inclinometer_t |
Inclinometer Click context object. More... | |
struct | inclinometer_cfg_t |
Inclinometer Click configuration object. More... | |
struct | inclinometer_accel_t |
Inclinometer Click axis/angle data object. More... | |
Enumerations | |
enum | inclinometer_return_value_t { INCLINOMETER_OK = 0 , INCLINOMETER_ERROR = -1 , INCLINOMETER_CRC_ERROR = -2 } |
Inclinometer Click return value data. More... | |
Functions | |
void | inclinometer_cfg_setup (inclinometer_cfg_t *cfg) |
Inclinometer configuration object setup function. | |
err_t | inclinometer_init (inclinometer_t *ctx, inclinometer_cfg_t *cfg) |
Inclinometer initialization function. | |
err_t | inclinometer_default_cfg (inclinometer_t *ctx) |
Inclinometer default configuration function. | |
err_t | inclinometer_generic_write (inclinometer_t *ctx, uint8_t reg, uint16_t data_in) |
Data writing function. | |
err_t | inclinometer_generic_read (inclinometer_t *ctx, uint8_t reg, uint16_t *data_out) |
Data reading function. | |
err_t | inclinometer_cmd_write (inclinometer_t *ctx, uint32_t cmd) |
CMD writing function. | |
err_t | inclinometer_cmd_read (inclinometer_t *ctx, uint32_t cmd, uint16_t *cmd_data) |
CMD reading function. | |
err_t | inclinometer_get_temperature (inclinometer_t *ctx, float *temperature) |
Temperature reading. | |
err_t | inclinometer_get_axes (inclinometer_t *ctx, inclinometer_accel_t *axes_data) |
Axes reading. | |
err_t | inclinometer_get_angle (inclinometer_t *ctx, inclinometer_accel_t *angle_data) |
Angle reading. | |
This file contains API for Inclinometer Click Driver.