Advertisement
EdizonTN

Untitled

Mar 19th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. switch (pLibIf->Rx_FramePhase)
  2. {
  3. case 7:
  4. {
  5. pLibIf->Rx_FramePhase = 0;
  6. RXFrames[0].Valid = true;
  7. /// akcia
  8. break;
  9. }
  10. case 6:
  11. case 5:
  12. case 4:
  13. case 3:
  14. case 2:
  15. case 1: { RXFrames[0].Structure.RAW[pLibIf->Rx_FramePhase++] = InByte; break; }
  16. case 0:
  17. {
  18. if(InByte == 0x00) break; // zahod -> CMD nesmie byt 0
  19. RXFrames[0].Structure.Decoded.CMD = InByte;
  20. pLibIf->Rx_FramePhase ++;
  21. break;
  22. }
  23. default: pLibIf->Rx_FramePhase = 0; // Cancel
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement