.resettype R/O Property
Function: |
Returns the type of the most recent hardware reset. |
Type: |
Enum (pl_sys_reset_type, byte) |
Value Range: |
0 — PL_SYS_RESET_TYPE_INTERNAL: The most recent reset was generated internally. 1 — PL_SYS_RESET_TYPE_EXTERNAL: The most recent reset was generated externally. |
See Also: |
Details
Internal resets are generated when the device self-reboots. This can be caused by the execution of sys.reboot in your application, or command from TIDE.
External resets are the ones that are caused by power-cycling (turning the device off and back on) or applying a reset pulse to the RTS line of the device (pushing reset button).