manometer 2.0.0.0
|
Functions | |
void | manometer_cfg_setup (manometer_cfg_t *cfg) |
Config Object Initialization function. | |
MANOMETER_RETVAL | manometer_init (manometer_t *ctx, manometer_cfg_t *cfg) |
Initialization function. | |
void | manometer_default_cfg (manometer_t *ctx) |
Click Default Configuration function. | |
void | manometer_generic_write (manometer_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | manometer_generic_read (manometer_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
float | manometer_get_pressure (manometer_t *ctx) |
Function read 16-bit data and convert to pressure in mbar. | |
float | manometer_get_temperature (manometer_t *ctx) |
Function read 11-bit data and convert to temperature in degrees Celsius [ �C ]. | |
void manometer_cfg_setup | ( | manometer_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void manometer_default_cfg | ( | manometer_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for Manometer click.
void manometer_generic_read | ( | manometer_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic read function.
ctx | Click object. |
reg | Register address. |
data_buf | Output data buf |
len | Number of the bytes to be read |
@description This function reads data from the desired register.
void manometer_generic_write | ( | manometer_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic write 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 writes data to the desired register.
float manometer_get_pressure | ( | manometer_t * | ctx | ) |
Function read 16-bit data and convert to pressure in mbar.
ctx | Click object. |
@description This function read pressure value.
float manometer_get_temperature | ( | manometer_t * | ctx | ) |
Function read 11-bit data and convert to temperature in degrees Celsius [ �C ].
ctx | Click object. |
@description This function read temperature value.
MANOMETER_RETVAL manometer_init | ( | manometer_t * | ctx, |
manometer_cfg_t * | cfg ) |
Initialization function.
manometer | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.