Skip to content
  • kirov's avatar
    + getAvail -> getNumAvailBytes · d7a50a74
    kirov authored
    + read(int &len) -> read(int max_len)
    + add EspiaDev &m_dev as a private member of EspiaSerialLine class
    + move the serial line code from EspiaDev to EspiaSerialLine
    + change #define TMOUT to an enum inside of the class
    + m_line_term to be a string not char
    + get/set m_timeout, m_line_term - setTimeout, setLineTerm (virtual)
    + read() is blocking, while readAvail() is non-blocking; add max_len to
     readAvail() and remove the timeout (set it to TMOUT_NO_BLOCK internaly)
    + default timeout in read? yes, but we need to state the meaning of -2 clearly.
      or no timeout in the methods at all, use only m_timeout? no.
    + flush() can read bigger chunks, or right on the number of available bytes
    + remove block_size and block_delay as a parameters of the methods, add them
      as a private variables (with get/set functions) and use them instead
    + group default parameters at the end
    
    
    
    git-svn-id: https://scm.blissgarden.org/svn/lima/trunk@62 45c4679d-1946-429d-baad-37912b19538b
    d7a50a74