pac1954 2.0.0.0
|
This file contains API for PAC1954 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 | pac1954_t |
PAC1954 Click context object. More... | |
struct | pac1954_cfg_t |
PAC1954 Click configuration object. More... | |
Enumerations | |
enum | pac1954_return_value_t { PAC1954_OK = 0 , PAC1954_ERROR = -1 } |
PAC1954 Click return value data. More... | |
Functions | |
void | pac1954_cfg_setup (pac1954_cfg_t *cfg) |
PAC1954 configuration object setup function. | |
err_t | pac1954_init (pac1954_t *ctx, pac1954_cfg_t *cfg) |
PAC1954 initialization function. | |
err_t | pac1954_default_cfg (pac1954_t *ctx) |
PAC1954 default configuration function. | |
err_t | pac1954_generic_write (pac1954_t *ctx, uint8_t reg, uint8_t *tx_buf, uint8_t tx_len) |
PAC1954 I2C writing function. | |
err_t | pac1954_generic_read (pac1954_t *ctx, uint8_t reg, uint8_t *rx_buf, uint8_t rx_len) |
PAC1954 I2C reading function. | |
err_t | pac1954_single_write (pac1954_t *ctx, uint8_t reg, uint8_t data_in) |
PAC1954 Single Byte Write Function. | |
err_t | pac1954_single_read (pac1954_t *ctx, uint8_t reg, uint8_t *data_out) |
PAC1954 Single Byte Read Function. | |
err_t | pac1954_set_address_pointer (pac1954_t *ctx, uint8_t reg) |
PAC1954 Set Address Pointer Function. | |
err_t | pac1954_read_last_access_reg (pac1954_t *ctx, uint8_t *data_out) |
PAC1954 Last Accessed Register Read Function. | |
err_t | pac1954_refresh_cmd (pac1954_t *ctx) |
PAC1954 Refresh Command. | |
err_t | pac1954_vol_refresh_cmd (pac1954_t *ctx) |
PAC1954 Volatile Refresh Command. | |
err_t | pac1954_get_measurement (pac1954_t *ctx, uint8_t meas_sel, uint8_t ch_sel, uint8_t avg_sel, uint32_t *data_out) |
PAC1954 Get Measurement Function. | |
err_t | pac1954_get_acc_count (pac1954_t *ctx, uint32_t *data_out) |
PAC1954 Get Accumulator Count Function. | |
err_t | pac1954_get_acc_output (pac1954_t *ctx, uint8_t ch_sel, uint8_t *data_out) |
PAC1954 Get Accumulator Output Function. | |
err_t | pac1954_get_calc_measurement (pac1954_t *ctx, uint8_t meas_sel, uint8_t ch_sel, uint8_t avg_sel, uint8_t meas_mode, float *data_out) |
PAC1954 Get Calculated Measurement Function. | |
void | pac1954_set_ch_8_sps (pac1954_t *ctx, uint8_t state) |
PAC1954 Slow Down Sampling Freq Of All Channels Function. | |
void | pac1954_enable (pac1954_t *ctx, uint8_t state) |
PAC1954 Power Control Function. | |
uint8_t | pac1954_get_alert2_status (pac1954_t *ctx) |
PAC1954 Get INT Pin State Function. | |
This file contains API for PAC1954 Click Driver.