setRX KEYWORD2 | setRX KEYWORD2 | ||||
setTX KEYWORD2 | setTX KEYWORD2 | ||||
write9bit KEYWORD2 | write9bit KEYWORD2 | ||||
addMemoryForRead KEYWORD2 | |||||
addMemoryForWrite KEYWORD2 | |||||
clear KEYWORD2 | clear KEYWORD2 | ||||
EventResponder LITERAL1 | EventResponder LITERAL1 | ||||
EventResponderRef LITERAL1 | EventResponderRef LITERAL1 |
return avail; | return avail; | ||||
} | } | ||||
void HardwareSerial::addStorageForRead(void *buffer, size_t length) | |||||
void HardwareSerial::addMemoryForRead(void *buffer, size_t length) | |||||
{ | { | ||||
rx_buffer_storage_ = (BUFTYPE*)buffer; | rx_buffer_storage_ = (BUFTYPE*)buffer; | ||||
if (buffer) { | if (buffer) { | ||||
rts_high_watermark_ = rx_buffer_total_size_ - hardware->rts_high_watermark; | rts_high_watermark_ = rx_buffer_total_size_ - hardware->rts_high_watermark; | ||||
} | } | ||||
void HardwareSerial::addStorageForWrite(void *buffer, size_t length) | |||||
void HardwareSerial::addMemoryForWrite(void *buffer, size_t length) | |||||
{ | { | ||||
tx_buffer_storage_ = (BUFTYPE*)buffer; | tx_buffer_storage_ = (BUFTYPE*)buffer; | ||||
if (buffer) { | if (buffer) { |
bool attachCts(uint8_t pin); | bool attachCts(uint8_t pin); | ||||
void clear(void); | void clear(void); | ||||
int availableForWrite(void); | int availableForWrite(void); | ||||
void addStorageForRead(void *buffer, size_t length); | |||||
void addStorageForWrite(void *buffer, size_t length); | |||||
void addMemoryForRead(void *buffer, size_t length); | |||||
void addMemoryForWrite(void *buffer, size_t length); | |||||
void addStorageForRead(void *buffer, size_t length) __attribute__((deprecated("addStorageForRead was renamed to addMemoryForRead"))){ | |||||
addMemoryForRead(buffer, length); | |||||
} | |||||
void addStorageForWrite(void *buffer, size_t length) __attribute__((deprecated("addStorageForWrite was renamed to addMemoryForWrite"))){ | |||||
addMemoryForWrite(buffer, length); | |||||
} | |||||
size_t write9bit(uint32_t c); | size_t write9bit(uint32_t c); | ||||
// Event Handler functions and data | // Event Handler functions and data |