modm API documentation
modm::ad7928< SpiMaster, Cs >::Data Struct Reference

Public Member Functions

uint16_t value () const
 
InputChannel channel () const
 

Public Attributes

uint8_t data [2]
 

Member Function Documentation

template<typename SpiMaster , typename Cs >
InputChannel modm::ad7928< SpiMaster, Cs >::Data::channel ( ) const
inline
Returns
adc input channel
template<typename SpiMaster , typename Cs >
uint16_t modm::ad7928< SpiMaster, Cs >::Data::value ( ) const
inline
Returns
12 bit result, for AD7918 and AD7908, respectively, 4 or 2 LSB are 0

The documentation for this struct was generated from the following file: