μHAL
|
#include <spi.h>
Public Member Functions | |
Controller (struct pcie_bars &) | |
void | set_defaults () |
bool | write_read_data (const unsigned char *, size_t, unsigned char *, size_t, Channel={0}) |
![]() | |
void | set_devinfo (const struct sdb_device_info &devinfo) override |
virtual void | encode_params () override |
void | write_general (const char *name, decoders::data_type value) |
void | write_channel (const char *name, unsigned pos, decoders::data_type value) |
![]() | |
void | set_devinfo (const struct sdb_device_info &) override |
virtual void | write_params () |
![]() | |
void | check_devinfo_is_set () const |
virtual void | set_devinfo (const struct sdb_device_info &) |
Private Member Functions | |
void | set_devinfo_callback () override |
Static Private Member Functions | |
static int32_t | get_divider (int32_t, int32_t) |
Private Attributes | |
std::unique_ptr< struct spi > | regs_storage |
struct spi & | regs |
Core | dec |
Additional Inherited Members | |
![]() | |
const device_match_fn | match_devinfo_lambda |
![]() | |
RegisterDecoderController (struct pcie_bars &bars, const struct sdb_device_info &devinfo, RegisterDecoder *pdec) | |
![]() | |
RegisterController (struct pcie_bars &bars, const struct sdb_device_info &) | |
virtual void | set_devinfo_callback () |
virtual void | encode_params ()=0 |
virtual void | unset_commands () |
![]() | |
void | set_read_dest (auto &dest) |
RegisterDecoderBase (struct pcie_bars &, const struct sdb_device_info &) | |
virtual void | read () |
![]() | |
size_t | read_size |
void * | read_dest |
struct pcie_bars & | bars |
struct sdb_device_info | devinfo |
size_t | addr |
Even though the decoder supports the bidirectional registers, this implementation does not support them whatsoever.
|
overrideprivatevirtual |
Child classes can implement this function to capture one-time values from hardware and perform any other necessary initialization
Reimplemented from RegisterController.