![]() |
![]() |
CRC Generation/Verification Command. More...
#include <pa.h>
Data Fields | |
uint16_t | ctrlBitfield |
uint16_t | startOffset |
uint16_t | len |
uint16_t | lenOffset |
uint16_t | lenMask |
uint16_t | lenAdjust |
uint16_t | crcOffset |
uint16_t | crcSize |
uint16_t | frameType |
uint32_t | initValue |
CRC Generation/Verification Command.
paCmdCrcOp_t is used to create CRC operation command instruct the PASS to perform CRC operation in both to-network and from-network directions. The module user is responsible for configuring the corresponding CRC engines which are used for the specified CRC operation.
In the to-network direction, the payload offset, payload length and CRC offset should be available in the command. The generated CRC will be inserted into the CRC location in the packet.
In the from-network direction, the payload length is either a constant or available in the custom header. The CRC verification will be performed by the CRC engine connected to the PDSP where the CRC command is executed. The CRC verification result will be indicated by the error flags within the CPPI descriptor as described at section table CPPI Error Flags
uint16_t paCmdCrcOp_t::crcOffset |
Offset from CRC computation starting location to the CRC field
uint16_t paCmdCrcOp_t::crcSize |
Size of CRC in bytes (PASS Gen2 only)
uint16_t paCmdCrcOp_t::ctrlBitfield |
CRC operation control information as defined at PA CRC Command Control Info Bit Definitions
uint16_t paCmdCrcOp_t::frameType |
Frame type CRC Frame types, vaild if pa_CRC_OP_CRC_FRAME_TYPE is set
uint32_t paCmdCrcOp_t::initValue |
CRC initial value (PASS Gen2 only)
uint16_t paCmdCrcOp_t::len |
Number of bytes covered by the CRC computation valid only if pa_CRC_OP_PAYLOAD_LENGTH_IN_HEADER is clear
uint16_t paCmdCrcOp_t::lenAdjust |
Payload length adjustment: valid only if pa_CRC_OP_PAYLOAD_LENGTH_IN_HEADER is set
uint16_t paCmdCrcOp_t::lenMask |
Payload length field mask
uint16_t paCmdCrcOp_t::lenOffset |
Payload length field offset in the custom header
uint16_t paCmdCrcOp_t::startOffset |
Byte location, from SOP/Protocol Header, where the CRC computation begins if frame type is not specified Byte location, from SOP/Protocol header, where the specific frame header begins if frame type is specified In to-network direction: offset from SOP In from-network direction: offset from the current parsed header