altitude4 2.0.0.0
|
This file contains API for Altitude 4 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 | altitude4_sensor_t |
Sensor object definition. More... | |
struct | altitude4_t |
Click ctx object definition. More... | |
struct | altitude4_cfg_t |
Click configuration structure definition. More... | |
union | both |
Floating point union definition. More... | |
struct | both::flt |
Macros | |
#define | ALTITUDE4_MAP_MIKROBUS(cfg, mikrobus) |
#define | ALTITUDE4_RETVAL uint8_t |
#define | ALTITUDE4_OK 0x00 |
#define | ALTITUDE4_INIT_ERROR 0xFF |
#define | ALTITUDE4_SLAVE_ADDRESS 0x27 |
#define | ALTITUDE4_START_CMD_MODE 0xA9 |
#define | ALTITUDE4_EXIT_CMD_MODE 0xA8 |
#define | ALTITUDE4_INC_MEM_PAGE_CNT 0x5E |
#define | ALTITUDE4_CREATE_MEM_PAGE_CHECKSUM 0xAA |
#define | ALTITUDE4_SENS_DATA 0xAC |
#define | FRNDINT(x) ( ( double ) ( long ) ( x ) ) |
Functions | |
void | altitude4_cfg_setup (altitude4_cfg_t *cfg) |
Config Object Initialization function. | |
ALTITUDE4_RETVAL | altitude4_init (altitude4_t *ctx, altitude4_cfg_t *cfg) |
Initialization function. | |
void | altitude4_generic_read (altitude4_t *ctx, uint8_t reg, uint8_t *r_buf, uint8_t len) |
Generic read function. | |
void | altitude4_generic_write (altitude4_t *ctx, uint8_t reg, uint8_t *w_buf, uint8_t len) |
Generic write function. | |
uint8_t | altitude4_read_sensor (altitude4_t *ctx, altitude4_sensor_t *sens_data) |
Read sensor function. | |
This file contains API for Altitude 4 Click driver.