#include <registers.h>
Public Member Functions | |
Accessor (Registers *registers, uint8_t register_index, uint8_t array_length=0, double scale_factor=1.0) | |
RegT | get (uint8_t field) const |
double | get_scaled (uint16_t field) const |
void | set (uint8_t field, RegT value) const |
void | set_scaled (uint16_t field, double value) const |
Private Attributes | |
const double | scale_ |
Definition at line 123 of file registers.h.
um7::Accessor< RegT >::Accessor | ( | Registers * | registers, |
uint8_t | register_index, | ||
uint8_t | array_length = 0 , |
||
double | scale_factor = 1.0 |
||
) | [inline] |
Definition at line 126 of file registers.h.
RegT um7::Accessor< RegT >::get | ( | uint8_t | field | ) | const [inline] |
Definition at line 130 of file registers.h.
double um7::Accessor< RegT >::get_scaled | ( | uint16_t | field | ) | const [inline] |
Definition at line 138 of file registers.h.
void um7::Accessor< RegT >::set | ( | uint8_t | field, |
RegT | value | ||
) | const [inline] |
Definition at line 143 of file registers.h.
void um7::Accessor< RegT >::set_scaled | ( | uint16_t | field, |
double | value | ||
) | const [inline] |
Definition at line 149 of file registers.h.
const double um7::Accessor< RegT >::scale_ [private] |
Definition at line 155 of file registers.h.