Expose register read functions.

This commit is contained in:
Jared Boone 2015-12-13 13:18:05 -08:00
parent 74aa2112f4
commit 041e211841
2 changed files with 2 additions and 2 deletions

View File

@ -881,6 +881,7 @@ public:
reg_t temp_sense(); reg_t temp_sense();
RegisterMap registers(); RegisterMap registers();
reg_t read(const address_t reg_num);
private: private:
spi::arbiter::Target& _target; spi::arbiter::Target& _target;
@ -891,7 +892,6 @@ private:
void flush_one(const Register reg); void flush_one(const Register reg);
void write(const address_t reg_num, const reg_t value); void write(const address_t reg_num, const reg_t value);
reg_t read(const address_t reg_num);
void write(const Register reg, const reg_t value); void write(const Register reg, const reg_t value);
reg_t read(const Register reg); reg_t read(const Register reg);

View File

@ -810,6 +810,7 @@ public:
void set_frequency(const rf::Frequency lo_frequency); void set_frequency(const rf::Frequency lo_frequency);
RegisterMap registers(); RegisterMap registers();
reg_t read(const address_t reg_num);
private: private:
spi::SPI _bus; spi::SPI _bus;
@ -818,7 +819,6 @@ private:
DirtyRegisters<Register, reg_count> _dirty; DirtyRegisters<Register, reg_count> _dirty;
void write(const address_t reg_num, const reg_t value); void write(const address_t reg_num, const reg_t value);
reg_t read(const address_t reg_num);
void write(const Register reg, const reg_t value); void write(const Register reg, const reg_t value);
reg_t read(const Register reg); reg_t read(const Register reg);