manometer2 2.0.0.0
|
Functions | |
void | manometer2_cfg_setup (manometer2_cfg_t *cfg) |
Config Object Initialization function. | |
MANOMETER2_RETVAL | manometer2_init (manometer2_t *ctx, manometer2_cfg_t *cfg) |
Initialization function. | |
void | manometer2_default_cfg (manometer2_t *ctx) |
Click Default Configuration function. | |
void | manometer2_write_data (manometer2_t *ctx, uint8_t reg_address, uint8_t write_command) |
Generic write data function. | |
uint16_t | manometer2_read_data (manometer2_t *ctx, uint8_t reg_address) |
Generic read data function. | |
uint32_t | manometer2_read_command (manometer2_t *ctx, uint8_t reg_address) |
Generic read data function. | |
void | manometer2_reset (manometer2_t *ctx) |
Reset. | |
void | manometer2_read_coef (manometer2_t *ctx) |
Function read coeffitient. | |
float | manometer2_get_temperature (manometer2_t *ctx, uint8_t oversampling_ratio) |
Get temperature data function. | |
float | manometer2_get_pressure (manometer2_t *ctx, uint8_t oversampling_ratio) |
Get pressure data function. | |
void manometer2_cfg_setup | ( | manometer2_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void manometer2_default_cfg | ( | manometer2_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for Manometer 2 click.
float manometer2_get_pressure | ( | manometer2_t * | ctx, |
uint8_t | oversampling_ratio ) |
Get pressure data function.
ctx | Click object. |
oversampling_ratio | Oversampling ratio |
@description Function read pressure data
float manometer2_get_temperature | ( | manometer2_t * | ctx, |
uint8_t | oversampling_ratio ) |
Get temperature data function.
ctx | Click object. |
oversampling_ratio | Oversampling ratio |
@description Function read temperature data
MANOMETER2_RETVAL manometer2_init | ( | manometer2_t * | ctx, |
manometer2_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.
void manometer2_read_coef | ( | manometer2_t * | ctx | ) |
Function read coeffitient.
ctx | Click object. |
@description Function resets communication with the register and read coeffitient value
uint32_t manometer2_read_command | ( | manometer2_t * | ctx, |
uint8_t | reg_address ) |
Generic read data function.
ctx | Click object. |
reg_address | Register address |
@description Generic read 24-bit data function
uint16_t manometer2_read_data | ( | manometer2_t * | ctx, |
uint8_t | reg_address ) |
Generic read data function.
ctx | Click object. |
reg_address | Register address |
@description Generic read 16-bit data function
void manometer2_reset | ( | manometer2_t * | ctx | ) |
Reset.
ctx | Click object. |
@description Function command reset
void manometer2_write_data | ( | manometer2_t * | ctx, |
uint8_t | reg_address, | ||
uint8_t | write_command ) |
Generic write data function.
ctx | Click object. |
reg_address | Register address |
write_command | Command to write |
@description Function write byte of data