alcohol2 2.0.0.0
|
This file contains API for Alcohol 2 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 | alcohol2_t |
Click ctx object definition. More... | |
struct | alcohol2_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | alcohol2_cfg_setup (alcohol2_cfg_t *cfg) |
Config Object Initialization function. | |
ALCOHOL2_RETVAL | alcohol2_init (alcohol2_t *ctx, alcohol2_cfg_t *cfg) |
Initialization function. | |
void | alcohol2_default_cfg (alcohol2_t *ctx) |
Click Default Configuration function. | |
void | alcohol2_generic_write (alcohol2_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | alcohol2_generic_read (alcohol2_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | alcohol2_write_byte (alcohol2_t *ctx, uint8_t reg, uint8_t w_data) |
Function writes one byte to the register. | |
uint8_t | alcohol2_read_byte (alcohol2_t *ctx, uint8_t reg) |
Function reads one byte from the register. | |
void | alcohol2_enable (alcohol2_t *ctx, uint8_t state) |
Device Enable function. | |
uint16_t | alcohol2_read_alcohol (alcohol2_t *ctx) |
Function for read Alcohol data. | |
void | alcohol2_wait_ready (alcohol2_t *ctx) |
Function waits until I2C is ready for the next command. | |
This file contains API for Alcohol 2 Click driver.