UARTReceive
Description
UART¸¦ ÅëÇØ µ¥ÀÌÅ͸¦ ¼ö½ÅÇÒ ¼ö ÀÖµµ·Ï ±âµ¿Çϰųª Ãë¼ÒÇÑ´Ù. ¸¸ÀÏ receiveFlag°¡ UART_RECEIVE_REQUEST ÀÌ¸é ¼ö½Å ¿ä±¸°¡ ±âµ¿µÇ¾î UART¸¦ ÅëÇØ µ¥ÀÌÅ͸¦ ¼ö½ÅÇÒ ¼ö ÀÖ°Ô µÇ°í, CVOS´Â UART¸¦ ÅëÇØ µ¥ÀÌÅÍ°¡ ¿À±â¸¦ ±â´Ù¸°´Ù. ¸¸ÀÏ receiveFlag°¡ UART_RECEIVE_ABORTÀ̸é ÇöÀç ÁøÇàÁßÀÎ ¼ö½Å ¿ä±¸°¡ Ãë¼ÒµÈ´Ù. CVOS°¡ UART¸¦ ÅëÇØ µ¥ÀÌÅ͸¦ ¹Þ°Ô µÇ¸é ÀÀ¿ëÇÁ·Î±×·¥¿¡°Ô ÀÎÅÍ·´Æ® ¸Þ½ÃÁö¸¦ º¸³»°Ô µÈ´Ù. ÀÀ¿ë ÇÁ·Î±×·¥Àº
UARTReadData()
¸¦ È£ÃâÇÏ¿© ¼ö½ÅµÈ µ¥ÀÌÅ͸¦ ÀÐÀ» ¼ö ÀÖ´Ù.
Syntax
S16 UARTReceive(U8 receiveFlag)
Parameters
receiveFlag
µ¿ÀÛ ¸ðµå
UART_RECEIVE_REQUEST
¼ö½Å¿ä±¸¸¦ ±âµ¿ÇÑ´Ù
UART_RECEIVE_ABORT
¼ö½Å¿ä±¸¸¦ Ãë¼ÒÇÑ´Ù
Returns
CVOS_OK
¼º°ø
CVOS_ERR_INVALID_ACCESS
UART¿¡ ´ëÇÑ À߸øµÈ Á¢±Ù
CVOS_ERR_BUSY
ÇöÀç ÁøÇàÁßÀÎ ¼ö½Å ¿ä±¸°¡ ÀÖ´Ù.
See Also
UARTTimeout
,
UARTSend
,
UARTReadData
,
UARTConfigure
,
UARTInquire