leddriver10
2.0.0.0
|
API for configuring and manipulating LED Driver 10 Click driver. More...
Modules | |
LED Driver 10 Registers List | |
List of registers of LED Driver 10 Click driver. | |
LED Driver 10 Registers Settings | |
LED Driver 10 description register. | |
LED Driver 10 MikroBUS Map | |
MikroBUS pin mapping of LED Driver 10 Click driver. | |
Functions | |
void | leddriver10_cfg_setup (leddriver10_cfg_t *cfg) |
LED Driver 10 configuration object setup function. More... | |
err_t | leddriver10_init (leddriver10_t *ctx, leddriver10_cfg_t *cfg) |
LED Driver 10 initialization function. More... | |
err_t | leddriver10_set_channels (leddriver10_t *ctx, uint16_t ch_mask) |
LED Driver 10 set channels function. More... | |
err_t | leddriver10_read_channels (leddriver10_t *ctx, uint16_t *ch_mask) |
LED Driver 10 read channels function. More... | |
err_t | leddriver10_set_duty_cycle (leddriver10_t *ctx, float duty_cycle) |
LED Driver 10 sets PWM duty cycle. More... | |
err_t | leddriver10_pwm_stop (leddriver10_t *ctx) |
LED Driver 10 stop PWM module. More... | |
err_t | leddriver10_pwm_start (leddriver10_t *ctx) |
LED Driver 10 start PWM module. More... | |
API for configuring and manipulating LED Driver 10 Click driver.
void leddriver10_cfg_setup | ( | leddriver10_cfg_t * | cfg | ) |
LED Driver 10 configuration object setup function.
This function initializes click configuration structure to initial values.
[out] | cfg | : Click configuration structure. See leddriver10_cfg_t object definition for detailed explanation. |
err_t leddriver10_init | ( | leddriver10_t * | ctx, |
leddriver10_cfg_t * | cfg | ||
) |
LED Driver 10 initialization function.
This function initializes all necessary pins and peripherals used for this click board.
[out] | ctx | : Click context object. See leddriver10_t object definition for detailed explanation. |
[in] | cfg | : Click configuration structure. See leddriver10_cfg_t object definition for detailed explanation. |
0
- Success, -1
- Error.err_t leddriver10_pwm_start | ( | leddriver10_t * | ctx | ) |
LED Driver 10 start PWM module.
This function starts the PWM module output.
[out] | ctx | : Click context object. See leddriver10_t object definition for detailed explanation. |
0
- Success, -1
- Error.err_t leddriver10_pwm_stop | ( | leddriver10_t * | ctx | ) |
LED Driver 10 stop PWM module.
This function stops the PWM module output.
[out] | ctx | : Click context object. See leddriver10_t object definition for detailed explanation. |
0
- Success, -1
- Error.err_t leddriver10_read_channels | ( | leddriver10_t * | ctx, |
uint16_t * | ch_mask | ||
) |
LED Driver 10 read channels function.
This function reads the current state of all channels by using SPI serial interface.
[in] | ctx | : Click context object. See leddriver10_t object definition for detailed explanation. |
[out] | ch_mask | : Output read data. |
0
- Success, -1
- Error.err_t leddriver10_set_channels | ( | leddriver10_t * | ctx, |
uint16_t | ch_mask | ||
) |
LED Driver 10 set channels function.
This function sets all channels to desired value by using SPI serial interface.
[in] | ctx | : Click context object. See leddriver10_t object definition for detailed explanation. |
[in] | ch_mask | : Channel mask. |
0
- Success, -1
- Error.err_t leddriver10_set_duty_cycle | ( | leddriver10_t * | ctx, |
float | duty_cycle | ||
) |
LED Driver 10 sets PWM duty cycle.
This function sets the PWM duty cycle in percentages ( Range[ 0..1 ] ).
[out] | ctx | : Click context object. See leddriver10_t object definition for detailed explanation. |
[in] | duty_cycle | : PWM duty_cycle. |
0
- Success, -1
- Error.