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

Public Member Functions

virtual uint8_t read_reg (uint16_t reg)=0
 Read the contents of the identified single register.
 
virtual void write_reg (uint16_t reg, uint8_t value)=0
 Write the given value to 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_regs (uint16_t reg, const std::vector< uint8_t > &value)
 Write the given values to a sequence of registers beginning with the listed one.
 

Member Function Documentation

◆ read_reg()

virtual uint8_t pflib::lpGBT_ConfigTransport::read_reg ( uint16_t reg)
pure virtual

Read the contents of the identified single register.

Implemented in pflib::bittware::BWlpGBT_Transport, pflib::lpGBT_ConfigTransport_I2C, and pflib::zcu::lpGBT_ICEC_Simple.

◆ read_regs()

std::vector< uint8_t > pflib::lpGBT_ConfigTransport::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 in pflib::bittware::BWlpGBT_Transport, pflib::lpGBT_ConfigTransport_I2C, and pflib::zcu::lpGBT_ICEC_Simple.

◆ write_reg()

virtual void pflib::lpGBT_ConfigTransport::write_reg ( uint16_t reg,
uint8_t value )
pure virtual

Write the given value to the identified single register.

Implemented in pflib::bittware::BWlpGBT_Transport, pflib::lpGBT_ConfigTransport_I2C, and pflib::zcu::lpGBT_ICEC_Simple.

◆ write_regs()

void pflib::lpGBT_ConfigTransport::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 in pflib::bittware::BWlpGBT_Transport, pflib::lpGBT_ConfigTransport_I2C, and pflib::zcu::lpGBT_ICEC_Simple.


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