38 #ifndef __DRIVERLIB_ONEWIRE_H__ 39 #define __DRIVERLIB_ONEWIRE_H__ 72 #define ONEWIRE_INIT_SPD_STD 0x00000000 78 #define ONEWIRE_INIT_SPD_OD 0x00000020 85 #define ONEWIRE_INIT_READ_STD 0x00000000 91 #define ONEWIRE_INIT_READ_LATE 0x00000040 97 #define ONEWIRE_INIT_ATR 0x00000000 104 #define ONEWIRE_INIT_NO_ATR 0x00000080 111 #define ONEWIRE_INIT_STD_POL 0x00000000 117 #define ONEWIRE_INIT_ALT_POL 0x40000000 123 #define ONEWIRE_INIT_1_WIRE_CFG 0x00000000 130 #define ONEWIRE_INIT_2_WIRE_CFG 0x80000000 143 #define ONEWIRE_BUS_STATUS_BUSY 0x00000100 149 #define ONEWIRE_BUS_STATUS_NO_SLAVE \ 156 #define ONEWIRE_BUS_STATUS_STUCK \ 169 #define ONEWIRE_OP_RESET 0x00000001 174 #define ONEWIRE_OP_READ 0x00000002 179 #define ONEWIRE_OP_WRITE 0x00000004 190 #define ONEWIRE_DMA_BUS_RESET 0x00000001 195 #define ONEWIRE_DMA_OP_READ 0x00000002 201 #define ONEWIRE_DMA_OP_MULTI_WRITE \ 208 #define ONEWIRE_DMA_OP_MULTI_READ \ 216 #define ONEWIRE_DMA_MODE_SG 0x00000008 222 #define ONEWIRE_DMA_OP_SZ_8 0x00000000 228 #define ONEWIRE_DMA_OP_SZ_16 0x00000800 234 #define ONEWIRE_DMA_OP_SZ_32 0x00001800 246 #define ONEWIRE_INT_RESET_DONE 0x00000001 252 #define ONEWIRE_INT_OP_DONE 0x00000002 258 #define ONEWIRE_INT_NO_SLAVE 0x00000004 264 #define ONEWIRE_INT_STUCK 0x00000008 269 #define ONEWIRE_INT_DMA_DONE 0x00000010 285 extern void OneWireDataGet(uint32_t u3i2Base, uint32_t *pui32Data);
289 extern void OneWireInit(uint32_t ui32Base, uint32_t ui32InitFlags);
297 uint32_t ui32Data, uint32_t ui32BitCnt);
308 #endif // __DRIVERLIB_ONEWIRE_H__ void OneWireIntDisable(uint32_t ui32Base, uint32_t ui32IntFlags)
Definition: onewire.c:331
void OneWireDMADisable(uint32_t ui32Base, uint32_t ui32DMAFlags)
Definition: onewire.c:571
void OneWireDMAEnable(uint32_t ui32Base, uint32_t ui32DMAFlags)
Definition: onewire.c:621
bool OneWireDataGetNonBlocking(uint32_t ui32Base, uint32_t *pui32Data)
Definition: onewire.c:234
void OneWireTransaction(uint32_t ui32Base, uint32_t ui32OpFlags, uint32_t ui32Data, uint32_t ui32BitCnt)
Definition: onewire.c:690
uint32_t OneWireBusStatus(uint32_t ui32Base)
Definition: onewire.c:163
uint32_t OneWireIntStatus(uint32_t ui32Base, bool bMasked)
Definition: onewire.c:408
void OneWireIntClear(uint32_t ui32Base, uint32_t ui32IntFlags)
Definition: onewire.c:294
void OneWireInit(uint32_t ui32Base, uint32_t ui32InitFlags)
Definition: onewire.c:107
void OneWireIntRegister(uint32_t ui32Base, void(*pfnHandler)(void))
Definition: onewire.c:475
void OneWireIntEnable(uint32_t ui32Base, uint32_t ui32IntFlags)
Definition: onewire.c:370
void OneWireDataGet(uint32_t u3i2Base, uint32_t *pui32Data)
Definition: onewire.c:194
void OneWireBusReset(uint32_t ui32Base)
Definition: onewire.c:133
void OneWireIntUnregister(uint32_t ui32Base)
Definition: onewire.c:520