pressure6 2.0.0.0
pressure6.h File Reference

This file contains API for Pressure 6 Click driver. More...

#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"

Go to the source code of this file.

Data Structures

struct  pressure6_t
 Click ctx object definition. More...
 
struct  pressure6_cfg_t
 Click configuration structure definition. More...
 

Macros

#define PRESSURE6_MAP_MIKROBUS(cfg, mikrobus)
 
#define PRESSURE6_RETVAL   uint8_t
 
#define PRESSURE6_OK   0x00
 
#define PRESSURE6_INIT_ERROR   0xFF
 
#define PRESSURE6_MC_AVE_NUM_SINGLE   0x00
 
#define PRESSURE6_MC_AVE_NUM_2_TIMES   0x20
 
#define PRESSURE6_MC_AVE_NUM_4_TIMES   0x40
 
#define PRESSURE6_MC_AVE_NUM_8_TIMES   0x60
 
#define PRESSURE6_MC_AVE_NUM_16_TIMES   0x80
 
#define PRESSURE6_MC_AVE_NUM_32_TIMES   0xA0
 
#define PRESSURE6_MC_AVE_NUM_64_TIMES   0xC0
 
#define PRESSURE6_MC_AVE_NUM_PROHIBITED   0xE0
 
#define PRESSURE6_MC_DATA_READY_ENABLED   0x10
 
#define PRESSURE6_MC_DATA_READY_DISABLED   0x00
 
#define PRESSURE6_MC_FULL_DATA_ENABLED   0x08
 
#define PRESSURE6_MC_FULL_DATA_DISABLED   0x00
 
#define PRESSURE6_MC_WATER_MARK_ENABLED   0x04
 
#define PRESSURE6_MC_WATER_MARK_DISABLED   0x00
 
#define PRESSURE6_MC_MODE_STAND_BY   0x00
 
#define PRESSURE6_MC_MODE_ONE_SHOT   0x01
 
#define PRESSURE6_MC_MODE_CONTINUOUS   0x02
 
#define PRESSURE6_REG_MODE_CONTROL   0x14
 

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

This file contains API for Pressure 6 Click driver.