Function
Resets FIFO.
Format
Ret =DioDmReset ( Id , Reset )
Parameters
Id
[C:short] [Python: ctypes.c_short]
Specifies the device ID retrieved from DioInit.
Reset
[C:unsigned long] [Python: ctypes.c_ulong]
Specify reset contents.
Specify reset contents as the sum of the following bit logic.
Definition |
Value [Hex] |
Description |
DIODM_RESET_FIFO_IN |
0x02 |
Input FIFO is reset. |
DIODM_RESET_FIFO_OUT |
0x04 |
Output FIFO is reset. |
Return Value
Ret [C:long] [Python: ctypes.c_long]
Definition |
Value [Dec] |
Description |
DIO_ERR_SUCCESS |
0 |
Normal complete |
DIO_ERR_DLL_INVALID_ID |
10001 |
Invalid ID is specified. |
DIO_ERR_DLL_CALL_DRIVER |
10002 |
Driver cannot be called (failed in ioctl). |
DIO_ERR_SYS_RESET |
50008 |
Reset content is outside of the setting range. |
The other errors: (See also: Error code details)
Initial Value
None
Remarks
Data may remain in FIFO within the board
as a status after the bus master transfer is executed.
If data remains in FIFO, the expected data may not be input/output, so
FIFO should be reset prior to starting any transfer.
Example
C |
Ret = DioDmReset( Id
, DIODM_RESET_FIFO_IN ); |
Python |
Ret = cdio.DioDmReset(
Id , cdio.DIODM_RESET_FIFO_IN ) |
See Also
None