Mbed OS Reference
|
Functions | |
int | serial_tx_asynch (serial_t *obj, const void *tx, size_t tx_length, uint8_t tx_width, uint32_t handler, uint32_t event, DMAUsage hint) |
Begin asynchronous TX transfer. More... | |
void | serial_rx_asynch (serial_t *obj, void *rx, size_t rx_length, uint8_t rx_width, uint32_t handler, uint32_t event, uint8_t char_match, DMAUsage hint) |
Begin asynchronous RX transfer (enable interrupt for data collecting) The used buffer is specified in the serial object - rx_buff. More... | |
uint8_t | serial_tx_active (serial_t *obj) |
Attempts to determine if the serial peripheral is already in use for TX. More... | |
uint8_t | serial_rx_active (serial_t *obj) |
Attempts to determine if the serial peripheral is already in use for RX. More... | |
int | serial_irq_handler_asynch (serial_t *obj) |
The asynchronous TX and RX handler. More... | |
void | serial_tx_abort_asynch (serial_t *obj) |
Abort the ongoing TX transaction. More... | |
void | serial_rx_abort_asynch (serial_t *obj) |
Abort the ongoing RX transaction. More... | |
int serial_tx_asynch | ( | serial_t * | obj, |
const void * | tx, | ||
size_t | tx_length, | ||
uint8_t | tx_width, | ||
uint32_t | handler, | ||
uint32_t | event, | ||
DMAUsage | hint | ||
) |
Begin asynchronous TX transfer.
The used buffer is specified in the serial object, tx_buff
obj | The serial object |
tx | The transmit buffer |
tx_length | The number of bytes to transmit |
tx_width | Deprecated argument |
handler | The serial handler |
event | The logical OR of events to be registered |
hint | A suggestion for how to use DMA with this transfer |
void serial_rx_asynch | ( | serial_t * | obj, |
void * | rx, | ||
size_t | rx_length, | ||
uint8_t | rx_width, | ||
uint32_t | handler, | ||
uint32_t | event, | ||
uint8_t | char_match, | ||
DMAUsage | hint | ||
) |
Begin asynchronous RX transfer (enable interrupt for data collecting) The used buffer is specified in the serial object - rx_buff.
obj | The serial object |
rx | The receive buffer |
rx_length | The number of bytes to receive |
rx_width | Deprecated argument |
handler | The serial handler |
event | The logical OR of events to be registered |
char_match | A character in range 0-254 to be matched |
hint | A suggestion for how to use DMA with this transfer |
uint8_t serial_tx_active | ( | serial_t * | obj | ) |
Attempts to determine if the serial peripheral is already in use for TX.
obj | The serial object |
uint8_t serial_rx_active | ( | serial_t * | obj | ) |
Attempts to determine if the serial peripheral is already in use for RX.
obj | The serial object |
int serial_irq_handler_asynch | ( | serial_t * | obj | ) |
The asynchronous TX and RX handler.
obj | The serial object |
void serial_tx_abort_asynch | ( | serial_t * | obj | ) |
Abort the ongoing TX transaction.
It disables the enabled interupt for TX and flushes the TX hardware buffer if TX FIFO is used
obj | The serial object |
void serial_rx_abort_asynch | ( | serial_t * | obj | ) |
Abort the ongoing RX transaction.
It disables the enabled interrupt for RX and flushes the RX hardware buffer if RX FIFO is used
obj | The serial object |