![]() |
Ultibo API
C/C++ API for Ultibo Core
|
#include <devices.h>
Data Fields | |
| DEVICE | device |
| The Device entry for this Watchdog device. | |
| uint32_t | watchdogid |
| Unique Id of this Watchdog device in the Watchdog device table. | |
| uint32_t | watchdogstate |
| Watchdog device state (eg WATCHDOG_STATE_ENABLED). | |
| watchdog_device_start_proc | devicestart |
| A device specific DeviceStart method implementing a standard watchdog device interface (Mandatory). | |
| watchdog_device_stop_proc | devicestop |
| A device specific DeviceStop method implementing a standard watchdog device interface (Mandatory). | |
| watchdog_device_refresh_proc | devicerefresh |
| A device specific DeviceRefresh method implementing a standard watchdog device interface (Mandatory). | |
| watchdog_device_get_remain_proc | devicegetremain |
| A device specific DeviceGetRemain method implementing a standard watchdog device interface (Mandatory). | |
| watchdog_device_get_timeout_proc | devicegettimeout |
| A device specific DeviceGetTimeout method implementing a standard watchdog device interface (Or nil if the default method is suitable). | |
| watchdog_device_set_timeout_proc | devicesettimeout |
| A device specific DeviceSetTimeout method implementing a standard watchdog device interface (Or nil if the default method is suitable). | |
| uint32_t | startcount |
| uint32_t | stopcount |
| uint32_t | refreshcount |
| MUTEX_HANDLE | lock |
| Device lock. | |
| void * | address |
| Device register base address. | |
| uint32_t | timeout |
| Device timeout (Milliseconds). | |
| WATCHDOG_DEVICE * | prev |
| Previous entry in Watchdog device table. | |
| WATCHDOG_DEVICE * | next |
| Next entry in Watchdog device table. | |
Watchdog Device
| DEVICE device |
The Device entry for this Watchdog device.
| uint32_t watchdogid |
Unique Id of this Watchdog device in the Watchdog device table.
| uint32_t watchdogstate |
Watchdog device state (eg WATCHDOG_STATE_ENABLED).
| watchdog_device_start_proc devicestart |
A device specific DeviceStart method implementing a standard watchdog device interface (Mandatory).
| watchdog_device_stop_proc devicestop |
A device specific DeviceStop method implementing a standard watchdog device interface (Mandatory).
| watchdog_device_refresh_proc devicerefresh |
A device specific DeviceRefresh method implementing a standard watchdog device interface (Mandatory).
| watchdog_device_get_remain_proc devicegetremain |
A device specific DeviceGetRemain method implementing a standard watchdog device interface (Mandatory).
| watchdog_device_get_timeout_proc devicegettimeout |
A device specific DeviceGetTimeout method implementing a standard watchdog device interface (Or nil if the default method is suitable).
| watchdog_device_set_timeout_proc devicesettimeout |
A device specific DeviceSetTimeout method implementing a standard watchdog device interface (Or nil if the default method is suitable).
| uint32_t startcount |
| uint32_t stopcount |
| uint32_t refreshcount |
| MUTEX_HANDLE lock |
Device lock.
| void* address |
Device register base address.
| uint32_t timeout |
Device timeout (Milliseconds).
| WATCHDOG_DEVICE* prev |
Previous entry in Watchdog device table.
| WATCHDOG_DEVICE* next |
Next entry in Watchdog device table.