AG903ライブラリリファレンス
内容インデックスホーム
Body Source
本文ソース
1: int32_t AG903_TIMRMgrStart(AG903_TIMRMgrHandle* handle) 2: { 3: int32_t retval = AG903_ENONE; 4: int32_t result; 5: uint8_t ch; 6: uint8_t idle; 7: 8: result = TIMRMgr_CheckHandle(handle, &ch); 9: if(AG903_ENONE != result) { 10: return -AG903_EINVAL; 11: } 12: if(AG903_TIMR_CTRLMOD_MODENUM <= TimrChStat[ch].mode) { 13: return -AG903_EFAULT; 14: } 15: idle = TIMRMgr_CheckIdle(ch); 16: if(true != idle) { 17: return -AG903_EBUSY; 18: } 19: 20: AG903_TIMRPrmSetCntMode(ch, TimrChStat[ch].mode); 21: 22: return retval; 23: }
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.