pressure6 2.0.0.0
Public function

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.
 

Detailed Description

Function Documentation

◆ pressure6_cfg_setup()

void pressure6_cfg_setup ( pressure6_cfg_t * cfg)

Config Object Initialization function.

Parameters
cfgClick configuration structure.

@description This function initializes click configuration structure to init state.

Note
All used pins will be set to unconnected state.

◆ pressure6_default_cfg()

void pressure6_default_cfg ( pressure6_t * ctx)

Click Default Configuration function.

Parameters
ctxClick object.

@description This function executes default configuration for Pressure6 click.

Note
Powers on the module
Sets the default configuration registers values.

◆ pressure6_get_interrupt()

uint8_t pressure6_get_interrupt ( pressure6_t * ctx)

Interupt.

Parameters
ctxClick object.
Returns
Pin state.

@description This function interupts the program.

◆ pressure6_get_pressure()

uint16_t pressure6_get_pressure ( pressure6_t * ctx)

Pressure value.

Parameters
ctxClick object.
Returns
Pressure value.

@description This function finds pressure value.

◆ pressure6_get_status()

uint8_t pressure6_get_status ( pressure6_t * ctx)

Status.

Parameters
ctxClick object.
Returns
Status.

@description This function finds status of the register.

◆ pressure6_get_temperature()

uint8_t pressure6_get_temperature ( pressure6_t * ctx)

Temperature value.

Parameters
ctxClick object.
Returns
Temperature value.

@description This function finds temperature value.

◆ pressure6_init()

PRESSURE6_RETVAL pressure6_init ( pressure6_t * ctx,
pressure6_cfg_t * cfg )

Initialization function.

Parameters
ctxClick object.
cfgClick configuration structure.

@description This function initializes all necessary pins and peripherals used for this click.

◆ pressure6_power_off()

void pressure6_power_off ( pressure6_t * ctx)

Power OFF.

Parameters
ctxClick object.

@description This function turns off the power.

◆ pressure6_power_on()

void pressure6_power_on ( pressure6_t * ctx)

Power ON.

Parameters
ctxClick object.

@description This function turns on the power.

◆ pressure6_read_byte()

uint8_t pressure6_read_byte ( pressure6_t * ctx,
uint8_t reg )

Byte read function.

Parameters
ctxClick object.
regRegister address.
Returns
Data from the register.

@description This function reads data from the desired register.

◆ pressure6_waiting_for_new_data()

void pressure6_waiting_for_new_data ( pressure6_t * ctx)

Waits for new data.

Parameters
ctxClick object.

@description This function delays the time of getting new data.

◆ pressure6_write_byte()

void pressure6_write_byte ( pressure6_t * ctx,
uint8_t reg,
uint8_t data_in )

Byte write function.

Parameters
ctxClick object.
regRegister address.
data_inData to be written.

@description This function writes data to the desired register.