MLC interface driver
|
Functions | |
void | MLC_SCI_init (uint32_t baudrate) |
void | MLC_SCI_send_char (char c) |
void | MLC_SCI_send_str (char *str) |
char | MLC_SCI_recv_char (void) |
char | MLC_SCI_char_avail (void) |
char | MLC_SCI_wait_send (void) |
void | MLC_SCI_send_char_wait (char c) |
char MLC_SCI_char_avail | ( | void | ) |
void MLC_SCI_init | ( | uint32_t | baudrate | ) |
It initializes GPIO and baudrate generator.
baudrate | required baudrate, for example 115200 |
char MLC_SCI_recv_char | ( | void | ) |
void MLC_SCI_send_char | ( | char | c | ) |
Send one char/byte via SCI -> USB -> PC. This is blocking function, if TX buffer is not empty, then it waits for TX buffer to be empty. If FIFO enabled, then it can feed upto 16 bytes to FIFO before it blocks another write to FIFO and waits until at least one level is empty.
c | char to send |
Definition at line 1722 of file MLC_drv.c.
Referenced by MLC_SCI_send_char_wait(), and MLC_SCI_send_str().
void MLC_SCI_send_char_wait | ( | char | c | ) |
Send one char and waits till it is sent.
c | char to send |
Definition at line 1747 of file MLC_drv.c.
References MLC_SCI_send_char().
void MLC_SCI_send_str | ( | char * | str | ) |
Sends string via SCI -> USB- > PC. This function is blocking and returns after data is sent.
str | pointer to string to send |
Definition at line 1764 of file MLC_drv.c.
References MLC_SCI_send_char().