REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
|
The abstract metadata memory class allows to represent different EEPROM sizes, for instance does the 25AA02E64 hold 256 bytes while 25AA02E32 holds only 128 bytes. More...
#include <metadata.h>


Public Member Functions | |
MetadataMemory (const unsigned short address, const SPISettings &spi_settings) | |
virtual size_t | read_from_hardware (size_t byte_offset, size_t length, uint8_t *buffer) const =0 |
size_t | read_from_hardware () |
template<class Layout_ > | |
const Layout_ & | as () const |
![]() | |
DataFunction (bus::addr_t address, const SPISettings &spiSettings) | |
void | begin_communication () const |
void | end_communication () const |
![]() | |
Function (bus::addr_t address) | |
Additional Inherited Members | |
![]() | |
const SPISettings & | spi_settings |
![]() | |
const bus::addr_t | address |
![]() | |
void | transfer (const void *mosi_buf, void *miso_buf, size_t count) const |
uint8_t | transfer8 (uint8_t data_in) const |
uint16_t | transfer16 (uint16_t data_in) const |
uint32_t | transfer32 (uint32_t data_in) const |
![]() | |
static SPIClass & | get_raw_spi () |
Detailed Description
class metadata::MetadataMemory< dataSize >
The abstract metadata memory class allows to represent different EEPROM sizes, for instance does the 25AA02E64 hold 256 bytes while 25AA02E32 holds only 128 bytes.
However, the extension rather looks into bigger then smaller EEPROMs.
Definition at line 20 of file metadata.h.
Constructor & Destructor Documentation
◆ MetadataMemory()
|
inlineexplicit |
Definition at line 25 of file metadata.h.
Member Function Documentation
◆ as()
|
inline |
Definition at line 32 of file metadata.h.
◆ read_from_hardware() [1/2]
|
inline |
Definition at line 30 of file metadata.h.
References metadata::MetadataMemory< dataSize >::read_from_hardware().
Referenced by metadata::MetadataMemory< dataSize >::read_from_hardware().
◆ read_from_hardware() [2/2]
|
pure virtual |
Implemented in MetadataMemory74LVC138AD.
The documentation for this class was generated from the following file:
- lib/hardware/src/metadata/metadata.h