Benoit Marchand / iGreenhouse_Node2_gcc_arm_nucleo_l073rz

Dependencies:   mbed Sht31

Embed: (wiki syntax)

« Back to documentation index

Component Class Reference

Component Class Reference

An abstract class for Generic components. More...

#include <Component.h>

Inherited by BDCMotor, BDCMotor, BDCMotor, BDCMotor, GyroSensor, GyroSensor, GyroSensor, GyroSensor, HumiditySensor, HumiditySensor, HumiditySensor, HumiditySensor, LightSensor, LightSensor, LightSensor, LightSensor, MagneticSensor, MagneticSensor, MagneticSensor, MagneticSensor, MotionSensor, MotionSensor, MotionSensor, MotionSensor, Nfc, Nfc, Nfc, Nfc, PressureSensor, PressureSensor, PressureSensor, PressureSensor, RangeSensor, RangeSensor, RangeSensor, RangeSensor, StepperMotor, StepperMotor, StepperMotor, StepperMotor, TempSensor, TempSensor, TempSensor, and TempSensor.

Public Member Functions

virtual int init (void *init)=0
 Initializing the component.
virtual int read_id (uint8_t *id)=0
 Getting the ID of the component.
virtual ~Component ()
 Destructor.
virtual int init (void *init)=0
 Initializing the component.
virtual int read_id (uint8_t *id)=0
 Getting the ID of the component.
virtual ~Component ()
 Destructor.
virtual int init (void *init)=0
 Initializing the component.
virtual int read_id (uint8_t *id)=0
 Getting the ID of the component.
virtual ~Component ()
 Destructor.
virtual int init (void *init)=0
 Initializing the component.
virtual int read_id (uint8_t *id)=0
 Getting the ID of the component.
virtual ~Component ()
 Destructor.

Detailed Description

An abstract class for Generic components.

Definition at line 56 of file HTS221/ST_INTERFACES/Common/Component.h.


Constructor & Destructor Documentation

virtual ~Component (  ) [virtual]

Destructor.

Definition at line 76 of file HTS221/ST_INTERFACES/Common/Component.h.

virtual ~Component (  ) [virtual]

Destructor.

Definition at line 76 of file LPS22HB/ST_INTERFACES/Common/Component.h.

virtual ~Component (  ) [virtual]

Destructor.

Definition at line 76 of file LSM303AGR/ST_INTERFACES/Common/Component.h.

virtual ~Component (  ) [virtual]

Destructor.

Definition at line 76 of file LSM6DSL/ST_INTERFACES/Common/Component.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 HTS221Sensor, LPS22HBSensor, LSM303AGRAccSensor, LSM303AGRMagSensor, and LSM6DSLSensor.

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 HTS221Sensor, LPS22HBSensor, LSM303AGRAccSensor, LSM303AGRMagSensor, and LSM6DSLSensor.

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 HTS221Sensor, LPS22HBSensor, LSM303AGRAccSensor, LSM303AGRMagSensor, and LSM6DSLSensor.

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 HTS221Sensor, LPS22HBSensor, LSM303AGRAccSensor, LSM303AGRMagSensor, and LSM6DSLSensor.

virtual int read_id ( 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 HTS221Sensor, LPS22HBSensor, LSM303AGRAccSensor, LSM303AGRMagSensor, and LSM6DSLSensor.

virtual int read_id ( 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 HTS221Sensor, LPS22HBSensor, LSM303AGRAccSensor, LSM303AGRMagSensor, and LSM6DSLSensor.

virtual int read_id ( 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 HTS221Sensor, LPS22HBSensor, LSM303AGRAccSensor, LSM303AGRMagSensor, and LSM6DSLSensor.

virtual int read_id ( 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 HTS221Sensor, LPS22HBSensor, LSM303AGRAccSensor, LSM303AGRMagSensor, and LSM6DSLSensor.