pac1944 2.0.0.0
|
This file contains API for PAC1944 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 | pac1944_t |
PAC1944 Click context object. More... | |
struct | pac1944_cfg_t |
PAC1944 Click configuration object. More... | |
struct | pac1944_setup_t |
PAC1944 Configuration setup structure. More... | |
Functions | |
void | pac1944_cfg_setup (pac1944_cfg_t *cfg) |
PAC1944 configuration object setup function. | |
err_t | pac1944_init (pac1944_t *ctx, pac1944_cfg_t *cfg) |
PAC1944 initialization function. | |
void | pac1944_default_cfg (pac1944_t *ctx) |
PAC1944 default configuration function. | |
void | pac1944_set_slow_state (pac1944_t *ctx, uint8_t state) |
PAC1944 set slow state function. | |
void | pac1944_device_state (pac1944_t *ctx, uint8_t state) |
PAC1944 set device state function. | |
uint8_t | pac1944_get_alert_state (pac1944_t *ctx) |
PAC1944 get alert state function. | |
err_t | pac1944_generic_write (pac1944_t *ctx, uint8_t reg, uint8_t *tx_buf, uint8_t tx_len) |
PAC1944 I2C writing function. | |
err_t | pac1944_generic_read (pac1944_t *ctx, uint8_t reg, uint8_t *rx_buf, uint8_t rx_len) |
PAC1944 I2C reading function. | |
void | pac1944_setup_config (pac1944_t *ctx, pac1944_setup_t cfg_data) |
PAC1944 setup config function. | |
void | pac1944_set_address_pointer (pac1944_t *ctx, uint8_t reg_addr) |
PAC1944 set address pointer function. | |
uint8_t | pac1944_read_last_accessed_register (pac1944_t *ctx) |
PAC1944 last accessed register read function. | |
void | pac1944_general_refresh_cmd (pac1944_t *ctx) |
PAC1944 general refresh command. | |
void | pac1944_refresh_cmd (pac1944_t *ctx) |
PAC1944 refresh command. | |
void | pac1944_volatile_refresh_cmd (pac1944_t *ctx) |
PAC1944 volatile refresh command. | |
uint32_t | pac1944_get_accumulator_count (pac1944_t *ctx) |
PAC1944 accumulator count function. | |
void | pac1944_get_accumulator_output (pac1944_t *ctx, uint8_t ch_sel, uint8_t *acc_out) |
PAC1944 get accumulator output function. | |
uint32_t | pac1944_get_measurement (pac1944_t *ctx, uint8_t meas_sel, uint8_t ch_sel, uint8_t avg_sel) |
PAC1944 get measurement function. | |
float | pac1944_get_calc_measurement (pac1944_t *ctx, uint8_t meas_sel, uint8_t ch_sel, uint8_t avg_sel, uint8_t meas_mode) |
PAC1944 get calculated measurement function. | |
This file contains API for PAC1944 Click Driver.