update method.
This commit is contained in:
@@ -305,7 +305,7 @@ inline void L2_RcdShift(L2_RCD *rcd, int32_t netxVal)
|
|||||||
* @return L2_FRAME_TYPE.
|
* @return L2_FRAME_TYPE.
|
||||||
*
|
*
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
static L2_FRAME_TYPE L2_GetReceiveFrameType(L2_INST *instPtr)
|
L2_FRAME_TYPE L2_GetLastOptFrameType(L2_INST *instPtr)
|
||||||
{
|
{
|
||||||
if (instPtr->myInfo.nodeType == L2_NODE_HEAD || L2_isCxn2Net(instPtr))
|
if (instPtr->myInfo.nodeType == L2_NODE_HEAD || L2_isCxn2Net(instPtr))
|
||||||
{
|
{
|
||||||
@@ -351,7 +351,7 @@ void L2_FrameStateUpdate(L2_INST *instPtr)
|
|||||||
instPtr->log.frameRecv++;
|
instPtr->log.frameRecv++;
|
||||||
|
|
||||||
// Update frame state.
|
// Update frame state.
|
||||||
switch (L2_GetReceiveFrameType(instPtr))
|
switch (L2_GetLastOptFrameType(instPtr))
|
||||||
{
|
{
|
||||||
case L2_INTRA_SCAN_FRAME:
|
case L2_INTRA_SCAN_FRAME:
|
||||||
// INTRA_BM_FRAME could be received if current frame type is INTRA_BM_FRAME
|
// INTRA_BM_FRAME could be received if current frame type is INTRA_BM_FRAME
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ int32_t L2_RescheduleEventAfter(L2_INST *instPtr, L2_SCHD_EVENT *schdEvent, uint
|
|||||||
|
|
||||||
// Framing
|
// Framing
|
||||||
void L2_FrameStateUpdate(L2_INST *instPtr);
|
void L2_FrameStateUpdate(L2_INST *instPtr);
|
||||||
L2_FRAME_TYPE L2_GetLastRcvFrameType(L2_INST *instPtr);
|
L2_FRAME_TYPE L2_GetLastOptFrameType(L2_INST *instPtr);
|
||||||
L1_FRAME_TYPE L2_L2frame2L1frame(L2_FRAME_TYPE l2Frame);
|
L1_FRAME_TYPE L2_L2frame2L1frame(L2_FRAME_TYPE l2Frame);
|
||||||
void FrameGetChunk(BIT_ARRAY *bitarr, uint32_t offset, uint32_t numBit, uint64_t *chunk);
|
void FrameGetChunk(BIT_ARRAY *bitarr, uint32_t offset, uint32_t numBit, uint64_t *chunk);
|
||||||
void FrameInsertChunk(BIT_ARRAY *bitarr, uint32_t offset, uint32_t numBit, uint64_t chunck);
|
void FrameInsertChunk(BIT_ARRAY *bitarr, uint32_t offset, uint32_t numBit, uint64_t chunck);
|
||||||
|
|||||||
Reference in New Issue
Block a user