temphum16 2.0.0.0
|
This file contains API for Temp&Hum 16 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
#include "drv_spi_master.h"
Go to the source code of this file.
Data Structures | |
struct | temphum16_s |
Temp&Hum 16 Click context object. More... | |
struct | temphum16_cfg_t |
Temp&Hum 16 Click configuration object. More... | |
Typedefs | |
typedef err_t(* | temphum16_master_io_t) (struct temphum16_s *, uint8_t, uint8_t *, uint8_t) |
Temp&Hum 16 Click driver interface. | |
typedef struct temphum16_s | temphum16_t |
Temp&Hum 16 Click context object. | |
Enumerations | |
enum | temphum16_drv_t { TEMPHUM16_DRV_SEL_SPI , TEMPHUM16_DRV_SEL_I2C } |
Temp&Hum 16 Click driver selector. More... | |
enum | temphum16_return_value_t { TEMPHUM16_OK = 0 , TEMPHUM16_ERROR = -1 } |
Temp&Hum 16 Click return value data. More... | |
Functions | |
void | temphum16_cfg_setup (temphum16_cfg_t *cfg) |
Temp&Hum 16 configuration object setup function. | |
void | temphum16_drv_interface_selection (temphum16_cfg_t *cfg, temphum16_drv_t drv_sel) |
Temp&Hum 16 driver interface setup function. | |
err_t | temphum16_init (temphum16_t *ctx, temphum16_cfg_t *cfg) |
Temp&Hum 16 initialization function. | |
err_t | temphum16_default_cfg (temphum16_t *ctx) |
Temp&Hum 16 default configuration function. | |
err_t | temphum16_generic_write (temphum16_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Temp&Hum 16 data writing function. | |
err_t | temphum16_generic_read (temphum16_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Temp&Hum 16 data reading function. | |
err_t | temphum16_get_device_id (temphum16_t *ctx, uint8_t *device_id) |
Temp&Hum 16 get device ID function. | |
err_t | temphum16_power_mode (temphum16_t *ctx, uint8_t pwr_mode) |
Temp&Hum 16 set power mode function. | |
err_t | temphum16_bdu_mode (temphum16_t *ctx, uint8_t bdu_mode) |
Temp&Hum 16 set block data update mode function. | |
err_t | temphum16_set_odr (temphum16_t *ctx, uint8_t odr) |
Temp&Hum 16 set output data rate function. | |
err_t | temphum16_heater (temphum16_t *ctx, uint8_t heater_mode) |
Temp&Hum 16 heater function. | |
err_t | temphum16_enable_data_ready_interrupt (temphum16_t *ctx) |
Temp&Hum 16 enable data ready interrupt function. | |
err_t | temphum16_get_status (temphum16_t *ctx, uint8_t *status) |
Temp&Hum 16 get status function. | |
uint8_t | temphum16_check_ready (temphum16_t *ctx) |
Temp&Hum 16 check ready function. | |
err_t | temphum16_get_humidity (temphum16_t *ctx, float *humidity) |
Temp&Hum 16 get humidity function. | |
err_t | temphum16_get_temperature (temphum16_t *ctx, float *temperature) |
Temp&Hum 16 get temperature function. | |
This file contains API for Temp&Hum 16 Click Driver.
typedef err_t(* temphum16_master_io_t) (struct temphum16_s *, uint8_t, uint8_t *, uint8_t) |
Temp&Hum 16 Click driver interface.
Definition of driver interface of Temp&Hum 16 Click driver. Driver serial interface.
typedef struct temphum16_s temphum16_t |
Temp&Hum 16 Click context object.
Context object definition of Temp&Hum 16 Click driver.
enum temphum16_drv_t |