leddriver12 2.0.0.0
|
This file contains API for LED Driver 12 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 | leddriver12_t |
LED Driver 12 Click context object. More... | |
struct | leddriver12_cfg_t |
LED Driver 12 Click configuration object. More... | |
Enumerations | |
enum | leddriver12_return_value_t { LEDDRIVER12_OK = 0 , LEDDRIVER12_ERROR = -1 } |
LED Driver 12 Click return value data. More... | |
Functions | |
void | leddriver12_cfg_setup (leddriver12_cfg_t *cfg) |
LED Driver 12 configuration object setup function. | |
err_t | leddriver12_init (leddriver12_t *ctx, leddriver12_cfg_t *cfg) |
LED Driver 12 initialization function. | |
err_t | leddriver12_default_cfg (leddriver12_t *ctx) |
LED Driver 12 default configuration function. | |
err_t | leddriver12_generic_write (leddriver12_t *ctx, uint8_t reg, uint8_t *tx_buf, uint8_t tx_len) |
LED Driver 12 I2C writing function. | |
err_t | leddriver12_generic_read (leddriver12_t *ctx, uint8_t reg, uint8_t *rx_buf, uint8_t rx_len) |
LED Driver 12 I2C reading function. | |
err_t | leddriver12_write_register (leddriver12_t *ctx, uint8_t reg, uint8_t data_in) |
LED Driver 12 write register function. | |
err_t | leddriver12_read_register (leddriver12_t *ctx, uint8_t reg, uint8_t *data_out) |
LED Driver 12 read register function. | |
void | leddriver12_set_rst_pin (leddriver12_t *ctx, uint8_t state) |
LED Driver 12 set rst pin function. | |
err_t | leddriver12_set_led_config (leddriver12_t *ctx, uint8_t led_number, uint8_t led_cfg) |
LED Driver 12 set led config function. | |
err_t | leddriver12_set_led_port_config (leddriver12_t *ctx, uint8_t led_port_number, uint8_t led_cfg) |
LED Driver 12 set led port config function. | |
err_t | leddriver12_read_input_0 (leddriver12_t *ctx, uint8_t *data_out) |
LED Driver 12 read input 0 function. | |
err_t | leddriver12_read_input_1 (leddriver12_t *ctx, uint8_t *data_out) |
LED Driver 12 read input 1 function. | |
err_t | leddriver12_set_blink_period_pwm_0 (leddriver12_t *ctx, float blink_period) |
LED Driver 12 set blink period pwm 0 function. | |
err_t | leddriver12_set_blink_period_pwm_1 (leddriver12_t *ctx, float blink_period) |
LED Driver 12 set blink period pwm 1 function. | |
err_t | leddriver12_set_duty_cycle_pwm_0 (leddriver12_t *ctx, uint8_t duty_cycle) |
LED Driver 12 set duty cycle pwm 0 function. | |
err_t | leddriver12_set_duty_cycle_pwm_1 (leddriver12_t *ctx, uint8_t duty_cycle) |
LED Driver 12 set duty cycle pwm 1 function. | |
This file contains API for LED Driver 12 Click Driver.