Public Member Functions | Private Attributes | List of all members
um6::Accessor< RegT > Class Template Reference

#include <registers.h>

Inheritance diagram for um6::Accessor< RegT >:
Inheritance graph
[legend]

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
 
- Public Member Functions inherited from um6::Accessor_
 Accessor_ (Registers *registers, uint8_t register_index, uint8_t register_width, uint8_t array_length)
 
void * raw () const
 

Private Attributes

const double scale_
 

Additional Inherited Members

- Public Attributes inherited from um6::Accessor_
const uint8_t index
 
const uint16_t length
 
const uint8_t width
 

Detailed Description

template<typename RegT>
class um6::Accessor< RegT >

Definition at line 123 of file registers.h.

Constructor & Destructor Documentation

template<typename RegT>
um6::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.

Member Function Documentation

template<typename RegT>
RegT um6::Accessor< RegT >::get ( uint8_t  field) const
inline

Definition at line 130 of file registers.h.

template<typename RegT>
double um6::Accessor< RegT >::get_scaled ( uint16_t  field) const
inline

Definition at line 138 of file registers.h.

template<typename RegT>
void um6::Accessor< RegT >::set ( uint8_t  field,
RegT  value 
) const
inline

Definition at line 143 of file registers.h.

template<typename RegT>
void um6::Accessor< RegT >::set_scaled ( uint16_t  field,
double  value 
) const
inline

Definition at line 149 of file registers.h.

Member Data Documentation

template<typename RegT>
const double um6::Accessor< RegT >::scale_
private

Definition at line 155 of file registers.h.


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


um6
Author(s): Mike Purvis
autogenerated on Thu Sep 26 2019 03:18:02