pflib v3.12.0-1-g716e801
Pretty Fine HGCROC Interaction Library
Loading...
Searching...
No Matches
LineDriverConfig Class Reference

Line Driver CONFIGuration registers are 0x039 and 0x03a LDCONFIG_REG 7 -> LDEmphasisEnable [6:0] -> LDModulationCurrent LDCONFIG_REG+1 7 -> LDEmphasisShort [6:0] -> LDEmphasisAmp. More...

Collaboration diagram for LineDriverConfig:
[legend]

Public Member Functions

 LineDriverConfig (pflib::lpGBT &lpgbt)
 
int emphasis_enabled () const
 
int modulation_current () const
 
void set_modulation_current (int val)
 
int emphasis_short () const
 
int emphasis_amp () const
 
void pre_emphasis (bool is_short, uint8_t pre_emphasis_amplitude, bool enable=true)
 
void apply ()
 
void reset ()
 

Private Attributes

pflib::lpGBTlpgbt_
 
std::vector< uint8_t > orig_vals_
 
std::vector< uint8_t > vals_
 

Static Private Attributes

static const uint16_t LDCONFIG_REG = 0x039
 

Friends

std::ostreamoperator<< (std::ostream &o, const LineDriverConfig &self)
 

Detailed Description

Line Driver CONFIGuration registers are 0x039 and 0x03a LDCONFIG_REG 7 -> LDEmphasisEnable [6:0] -> LDModulationCurrent LDCONFIG_REG+1 7 -> LDEmphasisShort [6:0] -> LDEmphasisAmp.


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