pflib v3.0.0-rc1-29-g3a901ac
Pretty Fine HGCROC Interaction Library
All Classes Namespaces Files Functions Variables Typedefs Pages
pflib::UIO Class Reference

Public Member Functions

 UIO (const std::string &dev, size_t size=4096)
 Open the UIO device given, mapping the amount of memory indicated.
 
uint32_t read (size_t i)
 Read the given word from the UIO device register space.
 
void write (size_t where, uint32_t what)
 Write the given value to the UIO device register.
 
uint32_t readMasked (size_t where, uint32_t mask)
 read with a mask (including shifts)
 
void writeMasked (size_t where, uint32_t mask, uint32_t val)
 write with a mask (including shifts)
 
void rmw (size_t where, uint32_t bits_to_modify, uint32_t newval)
 Generate an RMW cycle (read, apply INVERSE OF MASK, apply OR)
 

Private Member Functions

int first_bit_set (uint32_t mask)
 

Private Attributes

size_t size_
 
uint32_t * ptr_
 
int handle_
 

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