pressure6 2.0.0.0
|
Functions | |
void | pressure6_cfg_setup (pressure6_cfg_t *cfg) |
Config Object Initialization function. | |
PRESSURE6_RETVAL | pressure6_init (pressure6_t *ctx, pressure6_cfg_t *cfg) |
Initialization function. | |
void | pressure6_default_cfg (pressure6_t *ctx) |
Click Default Configuration function. | |
void | pressure6_write_byte (pressure6_t *ctx, uint8_t reg, uint8_t data_in) |
Byte write function. | |
uint8_t | pressure6_read_byte (pressure6_t *ctx, uint8_t reg) |
Byte read function. | |
uint16_t | pressure6_get_pressure (pressure6_t *ctx) |
Pressure value. | |
uint8_t | pressure6_get_temperature (pressure6_t *ctx) |
Temperature value. | |
uint8_t | pressure6_get_interrupt (pressure6_t *ctx) |
Interupt. | |
uint8_t | pressure6_get_status (pressure6_t *ctx) |
Status. | |
void | pressure6_power_on (pressure6_t *ctx) |
Power ON. | |
void | pressure6_power_off (pressure6_t *ctx) |
Power OFF. | |
void | pressure6_waiting_for_new_data (pressure6_t *ctx) |
Waits for new data. | |
void pressure6_cfg_setup | ( | pressure6_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void pressure6_default_cfg | ( | pressure6_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for Pressure6 click.
Powers on the module Sets the default configuration registers values.
uint8_t pressure6_get_interrupt | ( | pressure6_t * | ctx | ) |
Interupt.
ctx | Click object. |
@description This function interupts the program.
uint16_t pressure6_get_pressure | ( | pressure6_t * | ctx | ) |
Pressure value.
ctx | Click object. |
@description This function finds pressure value.
uint8_t pressure6_get_status | ( | pressure6_t * | ctx | ) |
Status.
ctx | Click object. |
@description This function finds status of the register.
uint8_t pressure6_get_temperature | ( | pressure6_t * | ctx | ) |
Temperature value.
ctx | Click object. |
@description This function finds temperature value.
PRESSURE6_RETVAL pressure6_init | ( | pressure6_t * | ctx, |
pressure6_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 pressure6_power_off | ( | pressure6_t * | ctx | ) |
Power OFF.
ctx | Click object. |
@description This function turns off the power.
void pressure6_power_on | ( | pressure6_t * | ctx | ) |
Power ON.
ctx | Click object. |
@description This function turns on the power.
uint8_t pressure6_read_byte | ( | pressure6_t * | ctx, |
uint8_t | reg ) |
Byte read function.
ctx | Click object. |
reg | Register address. |
@description This function reads data from the desired register.
void pressure6_waiting_for_new_data | ( | pressure6_t * | ctx | ) |
Waits for new data.
ctx | Click object. |
@description This function delays the time of getting new data.
void pressure6_write_byte | ( | pressure6_t * | ctx, |
uint8_t | reg, | ||
uint8_t | data_in ) |
Byte write function.
ctx | Click object. |
reg | Register address. |
data_in | Data to be written. |
@description This function writes data to the desired register.