iCub-main
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
strain::amplifier::PGA308::Registers Class Reference

#include <strain.h>

+ Inheritance diagram for strain::amplifier::PGA308::Registers:

Public Member Functions

 Registers ()
 
 Registers (void *data, size_t size)
 
virtual bool load (const void *data, const size_t size)
 
virtual bool fill (void *data, size_t &size)
 
virtual std::uint8_t size ()
 
- Public Member Functions inherited from strain::amplifier::IFregs
virtual ~IFregs ()
 

Public Attributes

std::uint16_t GD
 
std::uint8_t GI: 4
 
std::uint8_t S: 1
 
std::uint8_t GO: 3
 
std::uint8_t Voffsetcoarse
 
std::uint16_t Vzerodac
 

Static Public Attributes

static const std::uint8_t sizeofregisters = 6
 
static const std::uint8_t defval [sizeofregisters] = {0x00, 0x40, 0x46, 0x1f, 0xb1, 0x7f}
 

Detailed Description

Definition at line 183 of file strain.h.

Constructor & Destructor Documentation

◆ Registers() [1/2]

strain::amplifier::PGA308::Registers::Registers ( )
inline

Definition at line 197 of file strain.h.

◆ Registers() [2/2]

strain::amplifier::PGA308::Registers::Registers ( void *  data,
size_t  size 
)
inline

Definition at line 198 of file strain.h.

Member Function Documentation

◆ fill()

bool strain::amplifier::PGA308::Registers::fill ( void *  data,
size_t &  size 
)
virtual

Implements strain::amplifier::IFregs.

Definition at line 735 of file strain.cpp.

◆ load()

bool strain::amplifier::PGA308::Registers::load ( const void *  data,
const size_t  size 
)
virtual

Implements strain::amplifier::IFregs.

Definition at line 718 of file strain.cpp.

◆ size()

virtual std::uint8_t strain::amplifier::PGA308::Registers::size ( )
inlinevirtual

Implements strain::amplifier::IFregs.

Definition at line 201 of file strain.h.

Member Data Documentation

◆ defval

const std::uint8_t strain::amplifier::PGA308::Registers::defval = {0x00, 0x40, 0x46, 0x1f, 0xb1, 0x7f}
static

Definition at line 195 of file strain.h.

◆ GD

std::uint16_t strain::amplifier::PGA308::Registers::GD

Definition at line 186 of file strain.h.

◆ GI

std::uint8_t strain::amplifier::PGA308::Registers::GI

Definition at line 187 of file strain.h.

◆ GO

std::uint8_t strain::amplifier::PGA308::Registers::GO

Definition at line 189 of file strain.h.

◆ S

std::uint8_t strain::amplifier::PGA308::Registers::S

Definition at line 188 of file strain.h.

◆ sizeofregisters

const std:: uint8_t strain::amplifier::PGA308::Registers::sizeofregisters = 6
static

Definition at line 193 of file strain.h.

◆ Voffsetcoarse

std::uint8_t strain::amplifier::PGA308::Registers::Voffsetcoarse

Definition at line 190 of file strain.h.

◆ Vzerodac

std::uint16_t strain::amplifier::PGA308::Registers::Vzerodac

Definition at line 191 of file strain.h.


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