mb_rtu_private.h
changeset 14 5b6407edfe8e
parent 0 ae252e0fd9b8
equal deleted inserted replaced
13:6f6451e78531 14:5b6407edfe8e
    47 /* Buffer sizes... */
    47 /* Buffer sizes... */
    48  /* We use double the maximum frame length for the read buffer,
    48  /* We use double the maximum frame length for the read buffer,
    49   * due to the algorithm used to work around aborted frames.
    49   * due to the algorithm used to work around aborted frames.
    50   */
    50   */
    51 #define RECV_BUFFER_SIZE_SMALL  (MAX_RTU_FRAME_LENGTH + 10)
    51 #define RECV_BUFFER_SIZE_SMALL  (MAX_RTU_FRAME_LENGTH + 10)
    52 #define RECV_BUFFER_SIZE_LARGE  (2 * MAX_RTU_FRAME_LENGTH)
    52 #define RECV_BUFFER_SIZE_LARGE  (2 * (MAX_RTU_FRAME_LENGTH))
    53 
    53 
    54 
    54 
    55 /* Frame lengths... */
    55 /* Frame lengths... */
    56 
    56 
    57  /* The number of bytes in each frame format, excluding CRC.
    57  /* The number of bytes in each frame format, excluding CRC.