DUDS
Distributed Update of Data from Something
duds::hardware::interface::PinConfiguration::SelMgr Struct Reference

Holds configuration data for a single chip select manager. More...

#include <PinConfiguration.hpp>

Collaboration diagram for duds::hardware::interface::PinConfiguration::SelMgr:

Public Types

enum  MgrType {
  Unknown, Binary, Multiplexer, Pin,
  PinSet
}
 The type of chip select manager requested. More...
 

Public Member Functions

 SelMgr ()
 
 SelMgr (const std::pair< const std::string, boost::property_tree::ptree > &item, const PinConfiguration *pinconf)
 

Public Attributes

union {
   bool   initSelHigh
 True for high selection state with binary manager, or for initially selected state with pin manager. More...
 
   std::uint32_t   selStates
 Selection state bitmap for pin set manager. More...
 
}; 
 
std::shared_ptr< ChipSelectManagercsm
 The select manager based on this configuration. More...
 
std::vector< unsigned int > pins
 The global IDs of the pins that this select manager should use. More...
 
std::unordered_map< std::string, unsigned int > selNames
 A mapping of a name for a chip select to the chip ID used by the select manager. More...
 
MgrType type
 The type of chip select manager requested. More...
 
PortusePort
 The port that will provide the pins for this select manager. More...
 

Detailed Description

Holds configuration data for a single chip select manager.

Definition at line 345 of file PinConfiguration.hpp.

Member Enumeration Documentation

◆ MgrType

The type of chip select manager requested.

Enumerator
Unknown 

Not yet set or a bad value.

Binary 

Use ChipBinarySelectManager.

Multiplexer 

Use ChipMultiplexerSelectManager.

Pin 

Use ChipPinSelectManager.

PinSet 

Use ChipPinSetSelectManager.

Definition at line 368 of file PinConfiguration.hpp.

Constructor & Destructor Documentation

◆ SelMgr() [1/2]

duds::hardware::interface::PinConfiguration::SelMgr::SelMgr ( )

Definition at line 145 of file PinConfiguration.cpp.

Referenced by duds::hardware::interface::ParseState().

◆ SelMgr() [2/2]

duds::hardware::interface::PinConfiguration::SelMgr::SelMgr ( const std::pair< const std::string, boost::property_tree::ptree > &  item,
const PinConfiguration pinconf 
)

Member Data Documentation

◆ @21

union { ... }

◆ csm

std::shared_ptr<ChipSelectManager> duds::hardware::interface::PinConfiguration::SelMgr::csm

The select manager based on this configuration.

It is created after the attachment of the DigitalPort that supplies its pins.

Definition at line 350 of file PinConfiguration.hpp.

Referenced by duds::hardware::interface::PinConfiguration::attachPort().

◆ initSelHigh

bool duds::hardware::interface::PinConfiguration::SelMgr::initSelHigh

True for high selection state with binary manager, or for initially selected state with pin manager.

No function otherwise.

Definition at line 403 of file PinConfiguration.hpp.

Referenced by duds::hardware::interface::PinConfiguration::attachPort(), and duds::hardware::interface::ParseState().

◆ pins

std::vector<unsigned int> duds::hardware::interface::PinConfiguration::SelMgr::pins

The global IDs of the pins that this select manager should use.

The pins must all come from the same port.

Definition at line 355 of file PinConfiguration.hpp.

Referenced by duds::hardware::interface::PinConfiguration::attachPort(), and duds::hardware::interface::ParseState().

◆ selNames

std::unordered_map<std::string, unsigned int> duds::hardware::interface::PinConfiguration::SelMgr::selNames

A mapping of a name for a chip select to the chip ID used by the select manager.

Definition at line 360 of file PinConfiguration.hpp.

Referenced by duds::hardware::interface::PinConfiguration::attachPort(), and duds::hardware::interface::ParseState().

◆ selStates

std::uint32_t duds::hardware::interface::PinConfiguration::SelMgr::selStates

Selection state bitmap for pin set manager.

Definition at line 398 of file PinConfiguration.hpp.

Referenced by duds::hardware::interface::PinConfiguration::attachPort(), and duds::hardware::interface::ParseState().

◆ type

MgrType duds::hardware::interface::PinConfiguration::SelMgr::type

The type of chip select manager requested.

Definition at line 393 of file PinConfiguration.hpp.

Referenced by duds::hardware::interface::PinConfiguration::attachPort(), and duds::hardware::interface::ParseState().

◆ usePort

Port* duds::hardware::interface::PinConfiguration::SelMgr::usePort

The port that will provide the pins for this select manager.

Definition at line 364 of file PinConfiguration.hpp.

Referenced by duds::hardware::interface::PinConfiguration::attachPort(), and duds::hardware::interface::ParseState().


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