Contains all types, etc. needed to describe the IOs information contained in a data_conversion_layer::monitoring_frame::Message. More...
Classes | |
struct | PinData |
Represents the IO PIN field of a monitoring frame. More... | |
Typedefs | |
using | IoName = std::string |
using | Lit = LogicalInputType |
using | Ot = OutputType |
using | RawChunk = std::array< uint8_t, io::RAW_CHUNK_LENGTH_IN_BYTES > |
Functions | |
template<size_t ChunkSize> | |
void | deserializePinField (std::istream &is, std::array< std::bitset< 8 >, ChunkSize > &pin_states) |
PinData | deserializePins (std::istream &is) |
static std::string | getInputName (std::size_t byte_location, std::size_t bit_location) |
static LogicalInputType | getInputType (std::size_t byte_location, std::size_t bit_location) |
static std::string | getOutputName (std::size_t byte_location, std::size_t bit_location) |
static OutputType | getOutputType (std::size_t byte_location, std::size_t bit_location) |
std::ostream & | operator<< (std::ostream &os, const PinData &pd) |
Variables | |
static const std::map< Lit, IoName > | LOGICAL_INPUT_BIT_TO_NAME |
static constexpr std::array< std::array< Lit, 8 >, RAW_CHUNK_LOGICAL_INPUT_SIGNALS_IN_BYTES > | LOGICAL_INPUT_BITS |
static constexpr uint32_t | NUMBER_OF_INPUT_BYTES { RAW_CHUNK_LOGICAL_INPUT_SIGNALS_IN_BYTES } |
static constexpr uint32_t | NUMBER_OF_OUTPUT_BYTES { RAW_CHUNK_OUTPUT_SIGNALS_IN_BYTES } |
static const std::map< Ot, IoName > | OUTPUT_BIT_TO_NAME |
static constexpr std::array< std::array< Ot, 8 >, RAW_CHUNK_OUTPUT_SIGNALS_IN_BYTES > | OUTPUT_BITS |
static constexpr uint32_t | RAW_CHUNK_LENGTH_IN_BYTES |
static constexpr uint32_t | RAW_CHUNK_LENGTH_RESERVED_IN_BYTES { 4 } |
Contains constants and types needed to define PinData and for the (de)serialization. More... | |
static constexpr uint32_t | RAW_CHUNK_LOGICAL_INPUT_SIGNALS_IN_BYTES { 8 } |
static constexpr uint32_t | RAW_CHUNK_OUTPUT_SIGNALS_IN_BYTES { 4 } |
static constexpr uint32_t | RAW_CHUNK_PHYSICAL_INPUT_SIGNALS_IN_BYTES { 10 } |
Contains all types, etc. needed to describe the IOs information contained in a data_conversion_layer::monitoring_frame::Message.
using psen_scan_v2_standalone::data_conversion_layer::monitoring_frame::io::IoName = typedef std::string |
Definition at line 78 of file io_constants.h.
using psen_scan_v2_standalone::data_conversion_layer::monitoring_frame::io::Lit = typedef LogicalInputType |
Definition at line 77 of file io_constants.h.
Definition at line 137 of file io_constants.h.
using psen_scan_v2_standalone::data_conversion_layer::monitoring_frame::io::RawChunk = typedef std::array<uint8_t, io::RAW_CHUNK_LENGTH_IN_BYTES> |
Definition at line 44 of file io_constants.h.
Definition at line 48 of file io_constants.h.
Enumerator | |
---|---|
unused | |
ossd1_refpts | |
warn_2_int | |
warn_1_int | |
ossd3_lock | |
safe_3_int | |
int_lock_2 | |
safe_2_int | |
int_lock_1 | |
safe_1_int |
Definition at line 122 of file io_constants.h.
void psen_scan_v2_standalone::data_conversion_layer::monitoring_frame::io::deserializePinField | ( | std::istream & | is, |
std::array< std::bitset< 8 >, ChunkSize > & | pin_states | ||
) |
Definition at line 158 of file monitoring_frame_deserialization.h.
PinData psen_scan_v2_standalone::data_conversion_layer::monitoring_frame::io::deserializePins | ( | std::istream & | is | ) |
Definition at line 185 of file monitoring_frame_deserialization.cpp.
|
inlinestatic |
std::out_of_range | if byte_location >= NUMBER_OF_INPUT_BYTES or bit_location >= 8 |
Definition at line 52 of file io_pin_data.h.
|
inlinestatic |
std::out_of_range | if byte_location >= NUMBER_OF_INPUT_BYTES or bit_location >= 8 |
Definition at line 46 of file io_pin_data.h.
|
inlinestatic |
std::out_of_range | if byte_location >= NUMBER_OF_OUTPUT_BYTES or bit_location >= 8 |
Definition at line 64 of file io_pin_data.h.
|
inlinestatic |
std::out_of_range | if byte_location >= NUMBER_OF_OUTPUT_BYTES or bit_location >= 8 |
Definition at line 58 of file io_pin_data.h.
|
inline |
Definition at line 84 of file io_pin_data.h.
|
static |
Definition at line 80 of file io_constants.h.
|
staticconstexpr |
Definition at line 109 of file io_constants.h.
|
staticconstexpr |
Definition at line 42 of file io_pin_data.h.
|
staticconstexpr |
Definition at line 43 of file io_pin_data.h.
|
static |
Definition at line 141 of file io_constants.h.
|
staticconstexpr |
Definition at line 154 of file io_constants.h.
|
staticconstexpr |
Definition at line 38 of file io_constants.h.
|
staticconstexpr |
Contains constants and types needed to define PinData and for the (de)serialization.
Definition at line 34 of file io_constants.h.
|
staticconstexpr |
Definition at line 36 of file io_constants.h.
|
staticconstexpr |
Definition at line 37 of file io_constants.h.
|
staticconstexpr |
Definition at line 35 of file io_constants.h.