TpmRqu->ordinal =SwapBytes32(TPM_ORD_GetCapability);/// Set request parameter//SendBufPtr = (UINT32*)(TpmRqu +1); WriteUnaligned32 (SendBufPtr++,SwapBytes32(TPM_CAP_FLAG)); WriteUnaligned32 (SendBufPtr++,SwapBytes32(sizeof(TPM_CAP_FLAG_PERMANENT))); WriteUnaligned32 (SendBufPtr,Swa...
swap_byte :=ROL(inword,8); it is rolling over 8 bits just what you want. it'snot necessary to use oscat for this function. it's usual function from CoDeSys shooter-2010-08-09 yes i do know but i like to advertise with oscat. ...