Public Member Functions | Private Attributes
um6::Accessor< RegT > Class Template Reference

#include <registers.h>

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

List of all members.

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_

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 Jun 6 2019 19:02:20