Personal fork of the library

Dependencies:   X_NUCLEO_COMMON

Fork of X_NUCLEO_IHM01A1 by Arkadi Rafalovich

Embed: (wiki syntax)

« Back to documentation index

Component Class Reference

Component Class Reference

An abstract class for Generic components. More...

#include <Component_class.h>

Inherited by StepperMotor.

Public Member Functions

virtual int Init (void *init)=0
 Initializing the component.
virtual int ReadID (uint8_t *id)=0
 Getting the ID of the component.

Detailed Description

An abstract class for Generic components.

Definition at line 55 of file Component_class.h.


Member Function Documentation

virtual int Init ( void *  init ) [pure virtual]

Initializing the component.

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

Implemented in L6474.

virtual int ReadID ( uint8_t *  id ) [pure virtual]

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 L6474.