INTRODUCTION Overview Download and Install Documentation Publications REPOSITORY Libraries DEVELOPER Dev Guide Dashboard PEOPLE Contributors Users Project Download Mailing lists
|
udpport.h 11 * This work is a product of the National Institute of Advanced Industrial Science and Technology,
16 * flexiport is free software: you can redistribute it and/or modify it under the terms of the GNU
17 * Lesser General Public License as published by the Free Software Foundation, either version 3 of
void SetCanRead(bool canRead) Set the read permissions of the port. Definition udpport.cpp:658 std::string GetStatus() const Get the status of the port (type, device, etc). Definition udpport.cpp:633 ssize_t ReadFull(void *const buffer, size_t count) Read the requested quantity of data from the port. Definition udpport.cpp:313 ssize_t BytesAvailable() Get the number of bytes waiting to be read at the port. Returns immediatly. Definition udpport.cpp:465 ssize_t BytesAvailableWait() Get the number of bytes waiting after blocking for the timeout. Definition udpport.cpp:495 ssize_t ReadUntil(void *const buffer, size_t count, uint8_t terminator) Read data until a specified termination byte is received. Definition udpport.cpp:380 ssize_t Skip(size_t count) Dump data until the specified number of bytes have been read. Definition udpport.cpp:451 void SetTimeout(Timeout timeout) Set the timeout value in milliseconds. Definition udpport.cpp:652 ssize_t SkipUntil(uint8_t terminator, unsigned int count) Read and dump data until the specified termination character has been seen count times. Definition udpport.cpp:458 void Flush() Flush the port's input and output buffers, discarding all data. Definition udpport.cpp:591 void SetCanWrite(bool canWrite) Set the write permissions of the port. Definition udpport.cpp:667 ssize_t Write(const void *const buffer, size_t count) Write data to the port. Definition udpport.cpp:541 ssize_t Read(void *const buffer, size_t count) Read from the port. Definition udpport.cpp:212 void Drain() Drain the port's input and output buffers. Definition udpport.cpp:622 ssize_t ReadStringUntil(std::string &buffer, char terminator) Read a string until the specified termination character is received. Definition udpport.cpp:444 FlexiPort data communications library. |