AG903ライブラリリファレンス
内容インデックスホーム
前へ上へ次へ
AG903_UARTMgrStopReceive 関数

データ受信停止

Syntax
C++
int32_t AG903_UARTMgrStopReceive(AG903_UARTMgrHandle* handle);
引数 
説明 
AG903_UARTMgrHandle* handle 
[in] UARTハンドル 

データ受信停止結果

返値の詳細 
説明 
正常終了 
-AG903_EINVAL 
引数異常 

受信処理を停止します。(コールバック通知が止まります。)

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.