leddriver13 2.0.0.0
|
API for configuring and manipulating LED Driver 13 Click driver. More...
Topics | |
LED Driver 13 PWM Settings | |
Settings for configuration of LED Driver 13 Click driver. | |
LED Driver 13 MikroBUS Map | |
MikroBUS pin mapping of LED Driver 13 Click driver. | |
Leddriver13_cfg | |
Functions | |
void | leddriver13_cfg_setup (leddriver13_cfg_t *cfg) |
LED Driver 13 configuration object setup function. | |
err_t | leddriver13_init (leddriver13_t *ctx, leddriver13_cfg_t *cfg) |
LED Driver 13 initialization function. | |
err_t | leddriver13_default_cfg (leddriver13_t *ctx) |
LED Driver 13 default configuration function. | |
err_t | leddriver13_set_duty_cycle (leddriver13_t *ctx, float duty_cycle) |
LED Driver 13 sets PWM duty cycle. | |
err_t | leddriver13_pwm_stop (leddriver13_t *ctx) |
LED Driver 13 stop PWM module. | |
err_t | leddriver13_pwm_start (leddriver13_t *ctx) |
LED Driver 13 start PWM module. | |
err_t | leddriver13_set_enable (leddriver13_t *ctx) |
LED Driver 13 set enable function. | |
err_t | leddriver13_set_disable (leddriver13_t *ctx) |
LED Driver 13 set disable function. | |
uint8_t | leddriver13_get_fault (leddriver13_t *ctx) |
LED Driver 13 get fault function. | |
API for configuring and manipulating LED Driver 13 Click driver.
Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.
void leddriver13_cfg_setup | ( | leddriver13_cfg_t * | cfg | ) |
LED Driver 13 configuration object setup function.
This function initializes click configuration structure to initial values.
[out] | cfg | : Click configuration structure. See leddriver13_cfg_t object definition for detailed explanation. |
err_t leddriver13_default_cfg | ( | leddriver13_t * | ctx | ) |
LED Driver 13 default configuration function.
This function executes a default configuration of LED Driver 13 click board.
[in] | ctx | : Click context object. See leddriver13_t object definition for detailed explanation. |
0
- Success, -1
- Error.uint8_t leddriver13_get_fault | ( | leddriver13_t * | ctx | ) |
LED Driver 13 get fault function.
This function get fault state of the A80604 High Power LED Driver with Pre-Emptive Boost for Ultra-High Dimming Ratio and Low Output Ripple on the LED Driver 13 boardâ„¢.
[out] | ctx | : Click context object. See leddriver13_t object definition for detailed explanation. |
0
( LEDDRIVER13_FAULT_OCCURS ) - Fault occurs, 1
( LEDDRIVER13_CONDITION_OK ) - Condition OK, No Fault.err_t leddriver13_init | ( | leddriver13_t * | ctx, |
leddriver13_cfg_t * | cfg ) |
LED Driver 13 initialization function.
This function initializes all necessary pins and peripherals used for this click board.
[out] | ctx | : Click context object. See leddriver13_t object definition for detailed explanation. |
[in] | cfg | : Click configuration structure. See leddriver13_cfg_t object definition for detailed explanation. |
0
- Success, -1
- Error.err_t leddriver13_pwm_start | ( | leddriver13_t * | ctx | ) |
LED Driver 13 start PWM module.
This function starts the PWM module output.
[in] | ctx | : Click context object. See leddriver13_t object definition for detailed explanation. |
0
- Success, -1
- Error.err_t leddriver13_pwm_stop | ( | leddriver13_t * | ctx | ) |
LED Driver 13 stop PWM module.
This function stops the PWM module output.
[in] | ctx | : Click context object. See leddriver13_t object definition for detailed explanation. |
0
- Success, -1
- Error.err_t leddriver13_set_disable | ( | leddriver13_t * | ctx | ) |
LED Driver 13 set disable function.
This function disable the A80604 High Power LED Driver with Pre-Emptive Boost for Ultra-High Dimming Ratio and Low Output Ripple on the LED Driver 13 boardâ„¢.
[out] | ctx | : Click context object. See leddriver13_t object definition for detailed explanation. |
0
- Success,err_t leddriver13_set_duty_cycle | ( | leddriver13_t * | ctx, |
float | duty_cycle ) |
LED Driver 13 sets PWM duty cycle.
This function sets the PWM duty cycle in percentages ( Range[ 0..1 ] ).
[in] | ctx | : Click context object. See leddriver13_t object definition for detailed explanation. |
[in] | duty_cycle | : PWM duty cycle. |
0
- Success, -1
- Error.err_t leddriver13_set_enable | ( | leddriver13_t * | ctx | ) |
LED Driver 13 set enable function.
This function enable the A80604 High Power LED Driver with Pre-Emptive Boost for Ultra-High Dimming Ratio and Low Output Ripple on the LED Driver 13 boardâ„¢.
[out] | ctx | : Click context object. See leddriver13_t object definition for detailed explanation. |
0
- Success,