|
pressure7 2.2.0
|
Functions | |
| void | pressure7_cfg_setup (pressure7_cfg_t *cfg) |
| Config Object Initialization function. | |
| PRESSURE7_RETVAL | pressure7_init (pressure7_t *ctx, pressure7_cfg_t *cfg) |
| Initialization function. | |
| void | pressure7_default_cfg (pressure7_t *ctx) |
| Click Default Configuration function. | |
| void | pressure7_generic_read (pressure7_t *ctx, uint8_t reg_addr, uint8_t *data_buf, uint8_t len) |
| Generic read function. | |
| void | pressure7_send_command (pressure7_t *ctx, uint8_t cmd) |
| Send command to Click. | |
| void | pressure7_reset (pressure7_t *ctx) |
| Start reset sequence. | |
| uint8_t | pressure7_read_prom (pressure7_t *ctx) |
| Read calibration data from PROM. | |
| void | pressure7_start_measurement (pressure7_t *ctx) |
| Start measurement and calculation data. | |
| void | pressure7_get_sensor_data (pressure7_t *ctx, float *Temperature, float *Pressure) |
| Read Pressure and Temperature data. | |
| void | pressure7_set_over_sampling_ratio (uint8_t osr_d1, uint8_t osr_d2) |
| Set OSR(Over sampling ratio) for Pressure(D1) and Temperature(D2) data. | |
| void pressure7_cfg_setup | ( | pressure7_cfg_t * | cfg | ) |
Config Object Initialization function.
| cfg | Click configuration structure. |
@description This function initializes Click configuration structure to init state.
| void pressure7_default_cfg | ( | pressure7_t * | ctx | ) |
Click Default Configuration function.
| ctx | Click object. |
@description This function executes default configuration for Pressure7 Click.
| void pressure7_generic_read | ( | pressure7_t * | ctx, |
| uint8_t | reg_addr, | ||
| uint8_t * | data_buf, | ||
| uint8_t | len ) |
Generic read function.
| ctx | Click object. |
| reg_addr | Register address. |
| data_buf | Output data buf |
| len | Number of the bytes to be read |
@description This function reads data from the desired register.
Generic read function.
| ctx | Click object. |
| reg_addr | 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 pressure7_get_sensor_data | ( | pressure7_t * | ctx, |
| float * | Temperature, | ||
| float * | Pressure ) |
Read Pressure and Temperature data.
| ctx | Click object. |
| Temperature | Output Temperature data in C |
| Pressure | Output Pressure data in mBar |
@description This function reads pressure and temperature data.
| PRESSURE7_RETVAL pressure7_init | ( | pressure7_t * | ctx, |
| pressure7_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.
| uint8_t pressure7_read_prom | ( | pressure7_t * | ctx | ) |
Read calibration data from PROM.
| ctx | Click object. |
@description This function must be performed at the beginning of the program in order to read the calibrated data from the PROM required to calculate the Pressure and Temperature measurement.
| void pressure7_reset | ( | pressure7_t * | ctx | ) |
Start reset sequence.
| ctx | Click object. |
@description This function starts reset sequence of Click object ctx.
| void pressure7_send_command | ( | pressure7_t * | ctx, |
| uint8_t | cmd ) |
Send command to Click.
| ctx | Click object. |
| cmd | Action to be commited. |
@description This function sends command cmd to Click object ctx.
| void pressure7_set_over_sampling_ratio | ( | uint8_t | osr_d1, |
| uint8_t | osr_d2 ) |
Set OSR(Over sampling ratio) for Pressure(D1) and Temperature(D2) data.
| ctx | Click object. |
| osr_d1 | OSR for Pressure data |
| osr_d2 | OSR for Temperature data |
@description This function sets OSR(Over sampling ratio) for Pressure(D1) and Temperature(D2) data.
| void pressure7_start_measurement | ( | pressure7_t * | ctx | ) |
Start measurement and calculation data.
| ctx | Click object. |
@description This function starts measurement and calculation data.