leddriver8 2.0.0.0
|
This file contains API for LED Driver 8 Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"
Go to the source code of this file.
Data Structures | |
struct | leddriver8_t |
Click ctx object definition. More... | |
struct | leddriver8_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | leddriver8_cfg_setup (leddriver8_cfg_t *cfg) |
Config Object Initialization function. | |
LEDDRIVER8_RETVAL | leddriver8_init (leddriver8_t *ctx, leddriver8_cfg_t *cfg) |
Initialization function. | |
void | leddriver8_write_data (leddriver8_t *ctx, uint8_t reg, uint8_t data_byte) |
Functions for write one byte in the register. | |
uint8_t | leddriver8_read_data (leddriver8_t *ctx, uint8_t reg) |
Functions for read byte from register. | |
void | leddriver8_output_enable_pin (leddriver8_t *ctx, uint8_t state) |
Functions for enable led output. | |
void | leddriver8_reset (leddriver8_t *ctx) |
Device reset function. | |
void | leddriver8_set_brightness (leddriver8_t *ctx, uint8_t num_led, uint8_t value) |
Function for set Brightness. | |
void | leddriver8_set_output_gain (leddriver8_t *ctx, uint8_t num_led, uint8_t value) |
Function for set output gain. | |
void | leddriver8_set_mode_register (leddriver8_t *ctx, uint8_t mode_1, uint8_t mode_2) |
Function for set mode registers. | |
This file contains API for LED Driver 8 Click driver.