ledflash4
2.1.0.0
|
This file contains API for LED Flash 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 | ledflash4_t |
LED Flash 4 Click context object. More... | |
struct | ledflash4_cfg_t |
LED Flash 4 Click configuration object. More... | |
Enumerations | |
enum | ledflash4_return_value_t { LEDFLASH4_OK = 0, LEDFLASH4_ERROR = -1 } |
LED Flash 4 Click return value data. More... | |
Functions | |
void | ledflash4_cfg_setup (ledflash4_cfg_t *cfg) |
LED Flash 4 configuration object setup function. More... | |
err_t | ledflash4_init (ledflash4_t *ctx, ledflash4_cfg_t *cfg) |
LED Flash 4 initialization function. More... | |
err_t | ledflash4_default_cfg (ledflash4_t *ctx) |
LED Flash 4 default configuration function. More... | |
err_t | ledflash4_generic_write (ledflash4_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
LED Flash 4 I2C writing function. More... | |
err_t | ledflash4_generic_read (ledflash4_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
LED Flash 4 I2C reading function. More... | |
err_t | ledflash4_write_reg (ledflash4_t *ctx, uint8_t reg, uint8_t data_in) |
LED Flash 4 write reg function. More... | |
err_t | ledflash4_read_reg (ledflash4_t *ctx, uint8_t reg, uint8_t *data_out) |
LED Flash 4 read reg function. More... | |
void | ledflash4_set_stb_pin (ledflash4_t *ctx, uint8_t state) |
LED Flash 4 set STB pin function. More... | |
err_t | ledflash4_check_communication (ledflash4_t *ctx) |
LED Flash 4 check communication function. More... | |
err_t | ledflash4_set_led1_current (ledflash4_t *ctx, uint16_t led_current) |
LED Flash 4 set LED1 current function. More... | |
err_t | ledflash4_set_led2_current (ledflash4_t *ctx, uint16_t led_current) |
LED Flash 4 set LED2 current function. More... | |
This file contains API for LED Flash 4 Click Driver.