Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: LedDimming_LED61A1_mbedOS HelloWorld_LED61A1_mbedOS LedDimming_LED61A1 HelloWorld_LED61A1 ... more
Fork of X_NUCLEO_LED61A1 by
Led6001 Class Reference
Class representing a LED6001 component. More...
#include <Led6001.h>
Inherits Led.
Public Member Functions | |
| Led6001 (PinName xfault_irq, PinName current, PinName pwm, PinName analog) | |
| Constructor. | |
| virtual | ~Led6001 (void) |
| Destructor. | |
| virtual int | init (void *init=NULL) |
| Initializing the component. | |
| virtual int | read_id (uint8_t *id=NULL) |
| Getting the ID of the component. | |
| virtual float | get_current (void) |
| Getting the current flowing through the LED. | |
| virtual void | set_pwm_dimming (float dimming) |
| Setting PWM dimming value. | |
| virtual void | set_analog_dimming (float dimming) |
| Setting Analog dimming value. | |
| virtual void | power_on (void) |
| Powering ON at maximum light intensity. | |
| virtual void | power_off (void) |
| Powering OFF. | |
| virtual void | start_up (void) |
| Starting-up the component. | |
| void | attach_xfault_irq (void(*fptr)(void)) |
| Attaching an interrupt handler to the XFAULT interrupt. | |
| void | enable_xfault_irq (void) |
| Enabling the XFAULT interrupt handling. | |
| void | disable_xfault_irq (void) |
| Disabling the XFAULT interrupt handling. | |
Detailed Description
Class representing a LED6001 component.
Definition at line 101 of file Led6001.h.
Constructor & Destructor Documentation
| Led6001 | ( | PinName | xfault_irq, |
| PinName | current, | ||
| PinName | pwm, | ||
| PinName | analog | ||
| ) |
Constructor.
- Parameters:
-
xfault_irq pin name of the XFAULT pin of the component. current pin name of the ADC pin of the component responsible for sensing the current flowing through the LED. pwm pin name of the PWM pin of the component. analog pin name of the Analog pin of the component.
Member Function Documentation
| void attach_xfault_irq | ( | void(*)(void) | fptr ) |
| void disable_xfault_irq | ( | void | ) |
| void enable_xfault_irq | ( | void | ) |
| virtual float get_current | ( | void | ) | [virtual] |
| virtual int init | ( | void * | init = NULL ) |
[virtual] |
| virtual void power_off | ( | void | ) | [virtual] |
| virtual void power_on | ( | void | ) | [virtual] |
| virtual int read_id | ( | uint8_t * | id = NULL ) |
[virtual] |
| virtual void set_analog_dimming | ( | float | dimming ) | [virtual] |
| virtual void set_pwm_dimming | ( | float | dimming ) | [virtual] |
Generated on Mon Jul 18 2022 02:55:00 by
1.7.2

X-NUCLEO-LED61A1 LED Driver