Library to handle the X-NUCLEO-PLC01A1 Programmable Logic Controller Expansion Board based on the VNI8200XP (solid state relay) and CLT01-38SQ7 (octal digital termination array) components.

Dependents:   HelloWorld_PLC01A1

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 PLCInput, and PLCOutput.

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.

Detailed Description

An abstract class for Generic components.

Definition at line 56 of file Component.h.


Constructor & Destructor Documentation

virtual ~Component (  ) [virtual]

Destructor.

Definition at line 76 of file 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 CLT01_38S, and VNI8200XP.

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 CLT01_38S, and VNI8200XP.