mbed library for STMicroelectronics' X-NUCLEO-IKA01A1 expansion board.

Dependents:   HelloWorld_IKA01A1

Fork of X_NUCLEO_IKA01A1 by ST Expansion SW Team

Embed: (wiki syntax)

« Back to documentation index

LedDriver Class Reference

LedDriver Class Reference

An abstract class for LedDriver components. More...

#include <LedDriver.h>

Inherits Component.

Inherited by TSV734.

Public Member Functions

virtual double set_duty_cycle (double dc)=0
 abstract method for setting the duty cycle of LED in LED driver configuration
virtual ~LedDriver ()
 Destructor.
virtual int init (void *init)=0
 Initializing the component.
virtual int read_id (uint8_t *id)=0
 Getting the ID of the component.

Detailed Description

An abstract class for LedDriver components.

Definition at line 67 of file LedDriver.h.


Constructor & Destructor Documentation

virtual ~LedDriver (  ) [virtual]

Destructor.

Definition at line 92 of file LedDriver.h.


Member Function Documentation

virtual int init ( void *  init ) [pure virtual, inherited]

Initializing the component.

Parameters:
[in]initpointer to device specific initalization structure.
Return values:
0in case of success, an error code otherwise.

Implemented in TSU104, TSV734, and TSZ124.

virtual int read_id ( uint8_t *  id ) [pure virtual, inherited]

Getting the ID of the component.

Parameters:
[out]idpointer to an allocated variable to store the ID into.
Return values:
0in case of success, an error code otherwise.

Implemented in TSU104, TSV734, and TSZ124.

virtual double set_duty_cycle ( double  dc ) [pure virtual]

abstract method for setting the duty cycle of LED in LED driver configuration

Parameters:
dcduty cycle to set
Return values:
dutycycle in LED driver configuration

Implemented in TSV734.