iCub-main
Loading...
Searching...
No Matches
strain::amplifier::PGA308::Impl::TransferFunctionConfig Struct Reference

Public Types

enum class  Parameter {
  GD = 0 ,
  GI = 1 ,
  muxsign = 2 ,
  GO = 3 ,
  Vcoarseoffset = 4 ,
  Vzerodac = 5
}

Public Member Functions

 TransferFunctionConfig ()
void load (const Registers &regs)
void get (Registers &regs)
void setDefault ()
void obtain (CFG0register &cfg0, ZDACregister &zdac, GDACregister &gdac) const
void assign (const CFG0register &cfg0, const ZDACregister &zdac, const GDACregister &gdac)
void load (const CFG0register &cfg0)
void load (const ZDACregister &zdac)
void load (const GDACregister &gdac)
float valueOfGI ()
float valueOfGO ()
float valueOfGD ()
float valueOfGD (std::uint16_t x)
float valueOfCOR ()
float regvco2value (std::uint8_t co)
std::uint8_t value2regvco (float v)
float valueOfCoarseOffset ()
float valueOfFineOffset ()
float alpha ()
float alpha (std::uint16_t x)
float beta ()
void computeOffsetParams (const std::uint16_t vout, float &a, float &b, float &c)
bool alignVOUT (const std::uint16_t vout, const std::uint16_t target, std::uint8_t &Y, std::uint16_t &Z)
bool setalpha (float a)
bool setbeta (float b)

Public Attributes

std::uint16_t GD
std::uint8_t GI: 4
std::uint8_t muxsign: 1
std::uint8_t GO: 3
std::uint8_t Vcoarseoffset
std::uint16_t Vzerodac

Static Public Attributes

static const std::uint16_t VREF = 8192

Detailed Description

Definition at line 231 of file strain.cpp.

Member Enumeration Documentation

◆ Parameter

Enumerator
GD 
GI 
muxsign 
GO 
Vcoarseoffset 
Vzerodac 

Definition at line 243 of file strain.cpp.

Constructor & Destructor Documentation

◆ TransferFunctionConfig()

strain::amplifier::PGA308::Impl::TransferFunctionConfig::TransferFunctionConfig ( )
inline

Definition at line 267 of file strain.cpp.

Member Function Documentation

◆ alignVOUT()

bool strain::amplifier::PGA308::Impl::TransferFunctionConfig::alignVOUT ( const std::uint16_t vout,
const std::uint16_t target,
std::uint8_t & Y,
std::uint16_t & Z )
inline

Definition at line 437 of file strain.cpp.

◆ alpha() [1/2]

float strain::amplifier::PGA308::Impl::TransferFunctionConfig::alpha ( )
inline

Definition at line 408 of file strain.cpp.

◆ alpha() [2/2]

float strain::amplifier::PGA308::Impl::TransferFunctionConfig::alpha ( std::uint16_t x)
inline

Definition at line 415 of file strain.cpp.

◆ assign()

void strain::amplifier::PGA308::Impl::TransferFunctionConfig::assign ( const CFG0register & cfg0,
const ZDACregister & zdac,
const GDACregister & gdac )
inline

Definition at line 308 of file strain.cpp.

◆ beta()

float strain::amplifier::PGA308::Impl::TransferFunctionConfig::beta ( )
inline

Definition at line 421 of file strain.cpp.

◆ computeOffsetParams()

void strain::amplifier::PGA308::Impl::TransferFunctionConfig::computeOffsetParams ( const std::uint16_t vout,
float & a,
float & b,
float & c )
inline

Definition at line 427 of file strain.cpp.

◆ get()

void strain::amplifier::PGA308::Impl::TransferFunctionConfig::get ( Registers & regs)
inline

Definition at line 279 of file strain.cpp.

◆ load() [1/4]

void strain::amplifier::PGA308::Impl::TransferFunctionConfig::load ( const CFG0register & cfg0)
inline

Definition at line 318 of file strain.cpp.

◆ load() [2/4]

void strain::amplifier::PGA308::Impl::TransferFunctionConfig::load ( const GDACregister & gdac)
inline

Definition at line 331 of file strain.cpp.

◆ load() [3/4]

void strain::amplifier::PGA308::Impl::TransferFunctionConfig::load ( const Registers & regs)
inline

Definition at line 269 of file strain.cpp.

◆ load() [4/4]

void strain::amplifier::PGA308::Impl::TransferFunctionConfig::load ( const ZDACregister & zdac)
inline

Definition at line 326 of file strain.cpp.

◆ obtain()

void strain::amplifier::PGA308::Impl::TransferFunctionConfig::obtain ( CFG0register & cfg0,
ZDACregister & zdac,
GDACregister & gdac ) const
inline

Definition at line 300 of file strain.cpp.

◆ regvco2value()

float strain::amplifier::PGA308::Impl::TransferFunctionConfig::regvco2value ( std::uint8_t co)
inline

Definition at line 369 of file strain.cpp.

◆ setalpha()

bool strain::amplifier::PGA308::Impl::TransferFunctionConfig::setalpha ( float a)
inline

Definition at line 461 of file strain.cpp.

◆ setbeta()

bool strain::amplifier::PGA308::Impl::TransferFunctionConfig::setbeta ( float b)
inline

Definition at line 473 of file strain.cpp.

◆ setDefault()

void strain::amplifier::PGA308::Impl::TransferFunctionConfig::setDefault ( )
inline

Definition at line 289 of file strain.cpp.

◆ value2regvco()

std::uint8_t strain::amplifier::PGA308::Impl::TransferFunctionConfig::value2regvco ( float v)
inline

Definition at line 377 of file strain.cpp.

◆ valueOfCoarseOffset()

float strain::amplifier::PGA308::Impl::TransferFunctionConfig::valueOfCoarseOffset ( )
inline

Definition at line 397 of file strain.cpp.

◆ valueOfCOR()

float strain::amplifier::PGA308::Impl::TransferFunctionConfig::valueOfCOR ( )
inline

Definition at line 361 of file strain.cpp.

◆ valueOfFineOffset()

float strain::amplifier::PGA308::Impl::TransferFunctionConfig::valueOfFineOffset ( )
inline

Definition at line 402 of file strain.cpp.

◆ valueOfGD() [1/2]

float strain::amplifier::PGA308::Impl::TransferFunctionConfig::valueOfGD ( )
inline

Definition at line 348 of file strain.cpp.

◆ valueOfGD() [2/2]

float strain::amplifier::PGA308::Impl::TransferFunctionConfig::valueOfGD ( std::uint16_t x)
inline

Definition at line 355 of file strain.cpp.

◆ valueOfGI()

float strain::amplifier::PGA308::Impl::TransferFunctionConfig::valueOfGI ( )
inline

Definition at line 336 of file strain.cpp.

◆ valueOfGO()

float strain::amplifier::PGA308::Impl::TransferFunctionConfig::valueOfGO ( )
inline

Definition at line 342 of file strain.cpp.

Member Data Documentation

◆ GD

std::uint16_t strain::amplifier::PGA308::Impl::TransferFunctionConfig::GD

Definition at line 236 of file strain.cpp.

◆ GI

std::uint8_t strain::amplifier::PGA308::Impl::TransferFunctionConfig::GI

Definition at line 237 of file strain.cpp.

◆ GO

std::uint8_t strain::amplifier::PGA308::Impl::TransferFunctionConfig::GO

Definition at line 239 of file strain.cpp.

◆ muxsign

std::uint8_t strain::amplifier::PGA308::Impl::TransferFunctionConfig::muxsign

Definition at line 238 of file strain.cpp.

◆ Vcoarseoffset

std::uint8_t strain::amplifier::PGA308::Impl::TransferFunctionConfig::Vcoarseoffset

Definition at line 240 of file strain.cpp.

◆ VREF

const std::uint16_t strain::amplifier::PGA308::Impl::TransferFunctionConfig::VREF = 8192
static

Definition at line 234 of file strain.cpp.

◆ Vzerodac

std::uint16_t strain::amplifier::PGA308::Impl::TransferFunctionConfig::Vzerodac

Definition at line 241 of file strain.cpp.


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