Beispiel #1
0
        static string BuildHexFrame(HeaderType type, ZRINIT_Header_ZF0 trcapa)
        {
            int trpfort   = ((int)trcapa) >> 0x8;
            int trpfaible = ((int)trcapa) - trpfort * 0xff;

            string frame = BuildHexFrame(type, 0, 0, trpfort, trpfaible);

            return(frame);
        }
Beispiel #2
0
        static string BuildZRINITFrame(ZRINIT_Header_ZF0 trcapa, int BufferLength)
        {
            int trpfort   = ((int)trcapa) >> 0x8;
            int trpfaible = ((int)trcapa) - trpfort * 256;

            int BLfort   = ((int)BufferLength) >> 0x8;
            int BLfaible = ((int)BufferLength) - BLfort * 256;


            string frame = BuildHexFrame(HeaderType.ZRINIT, BLfaible, BLfort, trpfort, trpfaible);

            return(frame);
        }