pac1921 2.0.0.0
|
This file contains API for PAC1921 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 | aux_vars_t |
Auxiliary variables structure. More... | |
struct | aux_cfg_t |
Auxiliary variables default cfg. More... | |
struct | pac1921_t |
Click ctx object definition. More... | |
struct | pac1921_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | pac1921_cfg_setup (pac1921_cfg_t *cfg) |
Config Object Initialization function. | |
PAC1921_RETVAL | pac1921_init (pac1921_t *ctx, pac1921_cfg_t *cfg) |
Initialization function. | |
void | pac1921_default_cfg (pac1921_t *ctx) |
Click Default Configuration function. | |
void | pac1921_generic_write (pac1921_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | pac1921_generic_read (pac1921_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | pac1921_write_to_reg (pac1921_t *ctx, uint8_t reg_addr, uint8_t *write_data, uint8_t len) |
Register write function. | |
float | pac1921_get_measured_data (pac1921_t *ctx, uint8_t measurement_mode, uint8_t sample_num) |
Measured data read function. | |
void | pac1921_set_int_pin (pac1921_t *ctx, uint8_t output) |
INT pin set output function. | |
uint8_t | pac1921_get_an_pin (pac1921_t *ctx) |
AN pin get input function. | |
This file contains API for PAC1921 Click driver.