weather 2.0.0.0
|
This file contains API for Weather 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 | weather_digital_data_t |
struct | weather_raw_data_t |
struct | weather_s |
Click ctx object definition. More... | |
struct | weather_cfg_t |
Click configuration structure definition. More... | |
struct | weather_data_t |
Weather data structure definition. More... | |
struct | weather_measurement_cfg_t |
Measurement configuration structure definition. More... | |
Typedefs | |
typedef err_t(* | weather_master_io_t) (struct weather_s *, uint8_t, uint8_t *, uint8_t) |
Master Input/Output type. | |
typedef struct weather_s | weather_t |
Click ctx object definition. | |
Functions | |
void | weather_cfg_setup (weather_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | weather_init (weather_t *ctx, weather_cfg_t *cfg) |
Initialization function. | |
err_t | weather_default_cfg (weather_t *ctx) |
Click Default Configuration function. | |
err_t | weather_generic_write (weather_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
err_t | weather_generic_read (weather_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
err_t | weather_get_device_id (weather_t *ctx, uint8_t *device_id) |
Device ID. | |
err_t | weather_software_reset (weather_t *ctx) |
Software reset function. | |
err_t | weather_get_ambient_data (weather_t *ctx, weather_data_t *weather_data) |
Weather data. | |
err_t | weather_measurement_cfg (weather_t *ctx, weather_measurement_cfg_t *cfg) |
Measurement config. | |
This file contains API for Weather Click driver.