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

#include <registers.h>

Inheritance diagram for um7::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 um7::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 um7::Accessor_
const uint8_t index
 
const uint16_t length
 
const uint8_t width
 

Detailed Description

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

Definition at line 123 of file registers.h.

Constructor & Destructor Documentation

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

Member Function Documentation

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

Definition at line 130 of file registers.h.

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

Definition at line 138 of file registers.h.

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

Definition at line 143 of file registers.h.

template<typename RegT>
void um7::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 um7::Accessor< RegT >::scale_
private

Definition at line 155 of file registers.h.


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


um7
Author(s): Mike Purvis , Alex Brown
autogenerated on Tue Feb 11 2020 03:26:50