pressure11 2.0.0.0
|
Functions | |
void | pressure11_cfg_setup (pressure11_cfg_t *cfg) |
Config Object Initialization function. | |
PRESSURE11_RETVAL | pressure11_init (pressure11_t *ctx, pressure11_cfg_t *cfg) |
Initialization function. | |
void | pressure11_generic_write (pressure11_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | pressure11_generic_read (pressure11_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
uint8_t | pressure11_check_id (pressure11_t *ctx) |
Functions for cheking commuincation with the chip and checking its ID. | |
float | pressure11_get_temperature (pressure11_t *ctx) |
Functions for temperature reading. | |
float | pressure11_get_pressure (pressure11_t *ctx) |
Functions for pressure reading. | |
uint8_t | pressure11_get_interrupt (pressure11_t *ctx) |
Functions for read int pin. | |
void pressure11_cfg_setup | ( | pressure11_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint8_t pressure11_check_id | ( | pressure11_t * | ctx | ) |
Functions for cheking commuincation with the chip and checking its ID.
ctx | Click object. |
@description This function is information whether the chip is successfully read or not.
void pressure11_generic_read | ( | pressure11_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic read function.
ctx | Click object. |
reg | Register address. |
data_buf | Data buf to be written. |
len | Number of the bytes in data buf. |
@description This function reads data from the desired register.
void pressure11_generic_write | ( | pressure11_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic write function.
ctx | Click object. |
reg | Register address. |
data_buf | Output data buf |
len | Number of the bytes to be read |
@description This function writes data to the desired register.
uint8_t pressure11_get_interrupt | ( | pressure11_t * | ctx | ) |
Functions for read int pin.
ctx | Click object. |
@description This function is interrupt pin state.
float pressure11_get_pressure | ( | pressure11_t * | ctx | ) |
Functions for pressure reading.
ctx | Click object. |
@description This function is Pressure data in hPa (mBar).
float pressure11_get_temperature | ( | pressure11_t * | ctx | ) |
Functions for temperature reading.
ctx | Click object. |
@description This function is temperature data in Celsius.
PRESSURE11_RETVAL pressure11_init | ( | pressure11_t * | ctx, |
pressure11_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.