ZHCABQ6E January 2018 – January 2025 TM4C1290NCPDT , TM4C1290NCZAD , TM4C1292NCPDT , TM4C1292NCZAD , TM4C1294KCPDT , TM4C1294NCPDT , TM4C1294NCZAD , TM4C1297NCZAD , TM4C1299KCZAD , TM4C1299NCZAD , TM4C129CNCPDT , TM4C129CNCZAD , TM4C129DNCPDT , TM4C129DNCZAD , TM4C129EKCPDT , TM4C129ENCPDT , TM4C129ENCZAD , TM4C129LNCZAD , TM4C129XKCZAD , TM4C129XNCZAD , TMP1826 , TMP1827
OneWireBusReset(uint32_t ui32Base);此函數(shù)的作用是在 1-Wire? 總線中發(fā)出復(fù)位命令;它不會(huì)等待復(fù)位完成。
OneWireBusStatus(uint32_t ui32Base);此函數(shù)的作用是檢索總線狀態(tài),用于確定總線是否已準(zhǔn)備好執(zhí)行操作。如果主機(jī)正在執(zhí)行任何操作,狀態(tài)為忙碌;如果主機(jī)未執(zhí)行操作,狀態(tài)為空閑。
OneWireDataGet(uint32_t u3i2Base, uint32_t *pui32Data);此函數(shù)的作用是等待事務(wù)(如有)完成并從 1-Wire? 接口檢索數(shù)據(jù)。數(shù)據(jù)存儲(chǔ)在 pui32Data 提供的地址中。
OneWireDataGetNonBlocking(uint32_t ui32Base, uint32_t *pui32Data);此函數(shù)的作用是從 1-Wire? 接口檢索數(shù)據(jù)。如有正在進(jìn)行的事務(wù),將返回 0xffffffff。數(shù)據(jù)存儲(chǔ)在 pui32Data 提供的地址中。
OneWireInit(uint32_t ui32Base, uint32_t ui32InitFlags);此函數(shù)的作用是初始化 1-Wire? 模塊。ui32InitFlags 參數(shù)包含初始化標(biāo)志。
OneWireIntClear(uint32_t ui32Base, uint32_t ui32IntFlags);此函數(shù)的作用是清除 1-Wire? 模塊中必要的中斷源。
OneWireIntDisable(uint32_t ui32Base, uint32_t ui32IntFlags);此函數(shù)的作用是禁用 1-Wire? 模塊中必要的中斷源。
OneWireIntEnable(uint32_t ui32Base, uint32_t ui32IntFlags);此函數(shù)的作用是啟用 1-Wire? 模塊中必要的中斷源。
OneWireIntRegister(uint32_t ui32Base, void(*pfnHandler)(void));此函數(shù)的作用是為 1-Wire? 模塊注冊(cè)一個(gè)中斷處理程序。
OneWireIntUnregister(uint32_t ui32Base);此函數(shù)的作用是為 1-Wire? 模塊取消注冊(cè)一個(gè)中斷處理程序。
OneWireIntStatus(uint32_t ui32Base, bool bMasked);此函數(shù)的作用是獲取當(dāng)前中斷狀態(tài)。如果 bMasked 為 true(真),則可獲得屏蔽中斷狀態(tài)。如果 bMasked 為 false(假),則可獲得原始中斷狀態(tài)。
OneWireTransaction(uint32_t ui32Base, uint32_t ui32OpFlags,uint32_t ui32Data, uint32_t ui32BitCnt);此函數(shù)的作用是執(zhí)行總線中的 1-Wire? 協(xié)議傳輸。ui32BitCnt 用于配置要發(fā)送或接收的位數(shù)。寫入的數(shù)據(jù)由 ui32Data 指定。ui32OpFlags 參數(shù)用于定義要執(zhí)行的操作(復(fù)位、讀取、寫入)。