pflib v3.9.0-rc3-11-g2537d8f
Pretty Fine HGCROC Interaction Library
Loading...
Searching...
No Matches
pflib::bittware::BWlpGBT_Transport Class Reference
Inheritance diagram for pflib::bittware::BWlpGBT_Transport:
[legend]
Collaboration diagram for pflib::bittware::BWlpGBT_Transport:
[legend]

Public Member Functions

 BWlpGBT_Transport (AxiLite &coder, int ilink, int chipaddr, bool isic=true)
 
virtual uint8_t read_reg (uint16_t reg)
 Read the contents of the identified single register.
 
virtual std::vector< uint8_t > read_regs (uint16_t reg, int n)
 Read the contents of several registers beginning with the listed one.
 
virtual void write_reg (uint16_t reg, uint8_t value)
 Write the given value to the identified single register.
 
virtual void write_regs (uint16_t reg, const std::vector< uint8_t > &value)
 Write the given values to a sequence of registers beginning with the listed one.
 
- Public Member Functions inherited from pflib::lpGBT_ConfigTransport

Private Attributes

AxiLitetransport_
 
int ilink_
 
int chipaddr_
 
bool isic_
 
int ctloffset_
 
int stsreg_
 
uint32_t stsmask_
 
int pulsereg_
 
int pulseshift_
 

Member Function Documentation

◆ read_reg()

uint8_t pflib::bittware::BWlpGBT_Transport::read_reg ( uint16_t reg)
virtual

Read the contents of the identified single register.

Implements pflib::lpGBT_ConfigTransport.

◆ read_regs()

std::vector< uint8_t > pflib::bittware::BWlpGBT_Transport::read_regs ( uint16_t reg,
int n )
virtual

Read the contents of several registers beginning with the listed one.

The default implementation uses read_reg repeatedly, but faster implementations are possible for I2C and IC/EC communication.

Reimplemented from pflib::lpGBT_ConfigTransport.

◆ write_reg()

void pflib::bittware::BWlpGBT_Transport::write_reg ( uint16_t reg,
uint8_t value )
virtual

Write the given value to the identified single register.

Implements pflib::lpGBT_ConfigTransport.

◆ write_regs()

void pflib::bittware::BWlpGBT_Transport::write_regs ( uint16_t reg,
const std::vector< uint8_t > & value )
virtual

Write the given values to a sequence of registers beginning with the listed one.

The default implementation uses write_reg repeatedly, but faster implementations are possible for I2C and IC/EC communication.

Reimplemented from pflib::lpGBT_ConfigTransport.


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