Creating a project about VL6180XA1 for TT_Mxx

Embed: (wiki syntax)

« Back to documentation index

ComponentObject Class Reference

ComponentObject Class Reference

An abstract class for Generic components. More...

#include <ComponentObject.h>

Inherited by LightSensor, and RangeSensor.

Public Member Functions

virtual int Init ()=0
 Initializing the component.
virtual int ReadID ()=0
 Getting the ID of the component.

Detailed Description

An abstract class for Generic components.

Definition at line 55 of file ComponentObject.h.


Member Function Documentation

virtual int Init (  ) [pure virtual]

Initializing the component.

Parameters:
[in]initpointer to device specific initalization structure.
Return values:
0in case of success, an error code otherwise.
virtual int ReadID (  ) [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.