AG903ライブラリリファレンス
内容インデックスホーム
Body Source
本文ソース
1: int32_t AG903_UARTMgrStopReceive(AG903_UARTMgrHandle* handle) 2: { 3: int32_t retval = AG903_ENONE; 4: int32_t result; 5: uint8_t ch; 6: 7: result = UARTMgr_CheckHandle(handle, &ch); 8: if(AG903_ENONE != result) { 9: return -AG903_EINVAL; 10: } 11: 12: AG903_UARTPrmDisableInt(ch, (AG903_UART_IER_LINEST_BIT|AG903_UART_IER_DATARDY_BIT)); 13: AG903_UARTPrmEnableTimeoutIntMask(ch, AG903_UART_DETECT_ALL_BIT); 14: UartChStat[ch].rcv.stat = AG903_UART_STAT_IDLE; 15: 16: return retval; 17: }
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.