![]() |
Ultibo API
C/C++ API for Ultibo Core
|
#include <devices.h>
Data Fields | |
| DEVICE | device |
| The Device entry for this Mailbox device. | |
| uint32_t | mailboxid |
| Unique Id of this Mailbox device in the Mailbox device table. | |
| uint32_t | mailboxstate |
| Mailbox device state (eg MAILBOX_STATE_ENABLED). | |
| mailbox_device_start_proc | devicestart |
| A device specific DeviceStart method implementing a standard mailbox device interface (Or nil if the default method is suitable). | |
| mailbox_device_stop_proc | devicestop |
| A device specific DeviceStop method implementing a standard mailbox device interface (Or nil if the default method is suitable). | |
| mailbox_device_receive_proc | devicereceive |
| A device specific DeviceReceive method implementing a standard mailbox device interface (Mandatory). | |
| mailbox_device_send_proc | devicesend |
| A device specific DeviceSend method implementing a standard mailbox device interface (Mandatory). | |
| mailbox_device_call_proc | devicecall |
| A device specific DeviceCall method implementing a standard mailbox device interface (Mandatory). | |
| mailbox_device_get_timeout_proc | devicegettimeout |
| A device specific DeviceGetTimeout method implementing a standard mailbox device interface (Or nil if the default method is suitable). | |
| mailbox_device_set_timeout_proc | devicesettimeout |
| A device specific DeviceSetTimeout method implementing a standard mailbox device interface (Or nil if the default method is suitable). | |
| uint32_t | receivecount |
| uint32_t | sendcount |
| uint32_t | callcount |
| MUTEX_HANDLE | lock |
| Device lock. | |
| void * | address |
| Device register base address. | |
| uint32_t | timeout |
| Device timeout (Milliseconds). | |
| MAILBOX_DEVICE * | prev |
| Previous entry in Mailbox device table. | |
| MAILBOX_DEVICE * | next |
| Next entry in Mailbox device table. | |
Mailbox Device
| DEVICE device |
The Device entry for this Mailbox device.
| uint32_t mailboxid |
Unique Id of this Mailbox device in the Mailbox device table.
| uint32_t mailboxstate |
Mailbox device state (eg MAILBOX_STATE_ENABLED).
| mailbox_device_start_proc devicestart |
A device specific DeviceStart method implementing a standard mailbox device interface (Or nil if the default method is suitable).
| mailbox_device_stop_proc devicestop |
A device specific DeviceStop method implementing a standard mailbox device interface (Or nil if the default method is suitable).
| mailbox_device_receive_proc devicereceive |
A device specific DeviceReceive method implementing a standard mailbox device interface (Mandatory).
| mailbox_device_send_proc devicesend |
A device specific DeviceSend method implementing a standard mailbox device interface (Mandatory).
| mailbox_device_call_proc devicecall |
A device specific DeviceCall method implementing a standard mailbox device interface (Mandatory).
| mailbox_device_get_timeout_proc devicegettimeout |
A device specific DeviceGetTimeout method implementing a standard mailbox device interface (Or nil if the default method is suitable).
| mailbox_device_set_timeout_proc devicesettimeout |
A device specific DeviceSetTimeout method implementing a standard mailbox device interface (Or nil if the default method is suitable).
| uint32_t receivecount |
| uint32_t sendcount |
| uint32_t callcount |
| MUTEX_HANDLE lock |
Device lock.
| void* address |
Device register base address.
| uint32_t timeout |
Device timeout (Milliseconds).
| MAILBOX_DEVICE* prev |
Previous entry in Mailbox device table.
| MAILBOX_DEVICE* next |
Next entry in Mailbox device table.