ambient4 2.0.0.0
|
This file contains API for Ambient 4 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 | ambient4_t |
Click ctx object definition. More... | |
struct | ambient4_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | AMBIENT4_MAP_MIKROBUS(cfg, mikrobus) |
#define | AMBIENT4_RETVAL uint8_t |
#define | AMBIENT4_OK 0x00 |
#define | AMBIENT4_INIT_ERROR 0xFF |
#define | AMBIENT4_CMD_POWER_DOWN 0x00 |
#define | AMBIENT4_CMD_POWER_ON 0x01 |
#define | AMBIENT4_CMD_AUTO_RESOLUTION_MODE 0x10 |
#define | AMBIENT4_CMD_HIGH_RESOLUTION_MODE 0x12 |
#define | AMBIENT4_CMD_LOW_RESOLUTION_MODE 0x13 |
Functions | |
void | ambient4_cfg_setup (ambient4_cfg_t *cfg) |
Config Object Initialization function. | |
AMBIENT4_RETVAL | ambient4_init (ambient4_t *ctx, ambient4_cfg_t *cfg) |
Initialization function. | |
void | ambient4_default_cfg (ambient4_t *ctx) |
Click Default Configuration function. | |
void | ambient4_generic_write (ambient4_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | ambient4_generic_read (ambient4_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | ambient4_send_command (ambient4_t *ctx, uint8_t cmd) |
Function for send command. | |
uint16_t | ambient4_read_data (ambient4_t *ctx) |
Function for read 16bit data. | |
void | ambient4_device_reset (ambient4_t *ctx) |
Function for device reset. | |
This file contains API for Ambient 4 Click driver.