Menu

SerialDriver Serial frame

Thierry CHOMAUD vmacari

Serial frame

Declaration of serial driver types that are used for Coronis implementation of SerialDriver implementation.

/**

 * Maximum length used for Coronis SerialDriver implementation
 * for buffering the serial frame information
 * 256 byte for data storage + 4 for length
 */
#define SERIALFRAME_BUFFER_LEN  260

/**

 * Structure used to store serial frame information
 * for Coronis SerialDriver implementation usage.
 *      frame: data that contains the frame in byte[] format
 *      len: length of the data that contains in the frame value
 */
typedef struct tagISerialFrame {
    byte         frame[SERIALFRAME_BUFFER_LEN-4];
    unsigned int len;
} SerialFrame;

Related

Wiki: C-CPP_Protocol_UserGuide
Wiki: C-CPP_SerialDriver_UserGuide

MongoDB Logo MongoDB