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

InstrumentationAmp Class Reference

InstrumentationAmp Class Reference

An abstract class for InstrumentationAmp components. More...

#include <InstrumentationAmp.h>

Inherits Component.

Inherited by TSZ124.

Public Member Functions

virtual unsigned int get_voltage (void)=0
 abstract method to obtain the amplified differential voltage in instrumentation Amplifier configuration
virtual unsigned int get_current (void)=0
 abstract method to obtain the current consumed by the application in Current sensing configuration
virtual ~InstrumentationAmp ()
 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 InstrumentationAmp components.

Definition at line 67 of file InstrumentationAmp.h.


Constructor & Destructor Documentation

virtual ~InstrumentationAmp (  ) [virtual]

Destructor.

Definition at line 97 of file InstrumentationAmp.h.


Member Function Documentation

virtual unsigned int get_current ( void   ) [pure virtual]

abstract method to obtain the current consumed by the application in Current sensing configuration

Return values:
currentconsumed by the application in Current sensing configuration

Implemented in TSZ124.

virtual unsigned int get_voltage ( void   ) [pure virtual]

abstract method to obtain the amplified differential voltage in instrumentation Amplifier configuration

Return values:
amplifieddifferential voltage in instrumentation Amplifier configuration

Implemented in TSZ124.

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.