pressure10 2.0.0.0
|
Functions | |
void | pressure10_cfg_setup (pressure10_cfg_t *cfg) |
Config Object Initialization function. | |
PRESSURE10_RETVAL | pressure10_init (pressure10_t *ctx, pressure10_cfg_t *cfg) |
Initialization function. | |
void | pressure10_default_cfg (pressure10_t *ctx) |
Click Default Configuration function. | |
void | pressure10_generic_write (pressure10_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | pressure10_generic_read (pressure10_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | pressure10_send_cmd (pressure10_t *ctx, uint8_t cmd) |
Send command. | |
uint8_t | pressure10_check_communication (pressure10_t *ctx) |
Check communication. | |
void | pressure10_get_status (pressure10_t *ctx, pressure10_status_t *status_obj) |
Get status function. | |
float | pressure10_get_temperature (pressure10_t *ctx) |
Get Temperature data in C. | |
float | pressure10_get_pressure (pressure10_t *ctx) |
Get Pressure data in mBar. | |
void | pressure10_control_cfg (pressure10_t *ctx, uint8_t ctrl_reg, uint8_t wr_data) |
Set the configuration in the control registers. | |
uint8_t | pressure10_get_drdy_pin (pressure10_t *ctx) |
Get DRDY pin state. | |
void pressure10_cfg_setup | ( | pressure10_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint8_t pressure10_check_communication | ( | pressure10_t * | ctx | ) |
Check communication.
ctx | Click object. |
void pressure10_control_cfg | ( | pressure10_t * | ctx, |
uint8_t | ctrl_reg, | ||
uint8_t | wr_data ) |
Set the configuration in the control registers.
ctx | Click object. |
ctrl_reg | Control register address |
wr_data | Configuration data |
void pressure10_default_cfg | ( | pressure10_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for Pressure 10 click.
void pressure10_generic_read | ( | pressure10_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 pressure10_generic_write | ( | pressure10_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 pressure10_get_drdy_pin | ( | pressure10_t * | ctx | ) |
Get DRDY pin state.
ctx | Click object. |
float pressure10_get_pressure | ( | pressure10_t * | ctx | ) |
Get Pressure data in mBar.
ctx | Click object. |
void pressure10_get_status | ( | pressure10_t * | ctx, |
pressure10_status_t * | status_obj ) |
Get status function.
ctx | Click object. |
status_obj | Status structure to be filled |
float pressure10_get_temperature | ( | pressure10_t * | ctx | ) |
Get Temperature data in C.
ctx | Click object. |
PRESSURE10_RETVAL pressure10_init | ( | pressure10_t * | ctx, |
pressure10_cfg_t * | cfg ) |
Initialization function.
pressure10 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void pressure10_send_cmd | ( | pressure10_t * | ctx, |
uint8_t | cmd ) |
Send command.
cmd | Command |