ledflash2 2.0.0.0
|
This file contains API for Led Flash 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 | ledflash2_t |
Click ctx object definition. More... | |
struct | ledflash2_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | LEDFLASH2_MAP_MIKROBUS(cfg, mikrobus) |
#define | LEDFLASH2_RETVAL uint8_t |
#define | LEDFLASH2_OK 0x00 |
#define | LEDFLASH2_INIT_ERROR 0xFF |
#define | LEDFLASH2_MODE_OFF 0x00 |
#define | LEDFLASH2_MODE_FLASH 0x01 |
#define | LEDFLASH2_MODE_TORCH 0x02 |
#define | LEDFLASH2_CUR_100 0x00 |
#define | LEDFLASH2_CUR_90 0x01 |
#define | LEDFLASH2_CUR_80 0x02 |
#define | LEDFLASH2_CUR_70 0x03 |
#define | LEDFLASH2_CUR_63 0x04 |
#define | LEDFLASH2_CUR_56 0x05 |
#define | LEDFLASH2_CUR_50 0x06 |
#define | LEDFLASH2_CUR_44 0x07 |
#define | LEDFLASH2_CUR_39 0x08 |
#define | LEDFLASH2_CUR_35 0x09 |
#define | LEDFLASH2_CUR_31 0x0A |
#define | LEDFLASH2_CUR_28 0x0B |
#define | LEDFLASH2_CUR_25 0x0C |
#define | LEDFLASH2_CUR_22 0x0D |
#define | LEDFLASH2_CUR_20 0x0E |
#define | LEDFLASH2_CUR_18 0x0F |
#define | LEDFLASH2_FTMR_1250 0xE0 |
#define | LEDFLASH2_FTMR_1093 0xC0 |
#define | LEDFLASH2_FTMR_937 0xA0 |
#define | LEDFLASH2_FTMR_781 0x80 |
#define | LEDFLASH2_FTMR_625 0x60 |
#define | LEDFLASH2_FTMR_468 0x40 |
#define | LEDFLASH2_FTMR_312 0x20 |
#define | LEDFLASH2_FTMR_156 0x00 |
Functions | |
void | ledflash2_cfg_setup (ledflash2_cfg_t *cfg) |
Config Object Initialization function. | |
LEDFLASH2_RETVAL | ledflash2_init (ledflash2_t *ctx, ledflash2_cfg_t *cfg) |
Initialization function. | |
void | ledflash2_generic_write (ledflash2_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | ledflash2_generic_read (ledflash2_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
uint8_t | ledflash2_read_register (ledflash2_t *ctx, uint8_t reg_address) |
Read register function. | |
void | ledflash2_write_register (ledflash2_t *ctx, uint8_t reg_address, uint8_t reg_data) |
Write register function. | |
void | ledflash2_set_mode (ledflash2_t *ctx, uint8_t mode, uint8_t intensity, uint8_t flash_duration) |
Set mode function. | |
void | ledflash2_toggle_flash_inhibit (ledflash2_t *ctx, uint8_t pin_state) |
Toggle flash inhibit function. | |
This file contains API for Led Flash 2 Click driver.