src/lss.c
changeset 436 77796b3e3428
parent 399 8d22c323fe0f
child 482 ec49f7132e36
equal deleted inserted replaced
435:509158e51940 436:77796b3e3428
    45 
    45 
    46 //#define LSS_TIMEOUT_MS	(TIMEVAL)1000  /* ms */
    46 //#define LSS_TIMEOUT_MS	(TIMEVAL)1000  /* ms */
    47 //#define LSS_FS_TIMEOUT_MS	(TIMEVAL)100  /* ms */
    47 //#define LSS_FS_TIMEOUT_MS	(TIMEVAL)100  /* ms */
    48 
    48 
    49 /* Returns the LSS ident field from a Message struct */
    49 /* Returns the LSS ident field from a Message struct */
    50 #define getLSSIdent(msg) ((msg->data[4] << 24) | (msg->data[3] << 16) | (msg->data[2] << 8) | (msg->data[1]))
    50 #define getLSSIdent(msg) (((UNS32)msg->data[4] << 24) | ((UNS32)msg->data[3] << 16) | (msg->data[2] << 8) | (msg->data[1]))
       
    51 
    51 
    52 
    52 /* Returns the LSS switch delay field from a Message struct */
    53 /* Returns the LSS switch delay field from a Message struct */
    53 #define getLSSDelay(msg) ((msg->data[2] << 8) | (msg->data[1]))
    54 #define getLSSDelay(msg) ((msg->data[2] << 8) | (msg->data[1]))
    54 
    55 
    55 /* Returns the LSS FastScan BitCheck field from a Message struct */
    56 /* Returns the LSS FastScan BitCheck field from a Message struct */