/ * @brief * Transmit one frame. * * @details * Depending on frame length configuration, 8 (least significant) bits from * @p data are transmitted. If frame length is 9, 8 bits are transmitted from * @p data and one bit as specified by CTRL register, BIT8DV field. Please * refer to LEUART_TxExt() for transmitting 9 bit frame with full control of * all 9 bits. * * Notice tha
| 591 | * Data to transmit. See details above for further info. |
| 592 | ******************************************************************************/ |
| 593 | void LEUART_Tx(LEUART_TypeDef *leuart, uint8_t data) |
| 594 | { |
| 595 | /* Check that transmit buffer is empty */ |
| 596 | while (!(leuart->STATUS & LEUART_STATUS_TXBL)) |
| 597 | ; |
| 598 | |
| 599 | /* LF register about to be modified require sync. busy check */ |
| 600 | LEUART_Sync(leuart, LEUART_SYNCBUSY_TXDATA); |
| 601 | |
| 602 | leuart->TXDATA = (uint32_t)data; |
| 603 | } |
| 604 | |
| 605 | |
| 606 | /***************************************************************************//** |
nothing calls this directly
no test coverage detected