Struct x430_port¶
Platform services. More...
#include <x430_types.h>
Public Attributes¶
| Type | Name |
|---|---|
| void * | context Passed to every function. |
| x430_delay_fn | delay_us Delay before a status packet. |
| x430_lock_fn | lock Take the bus lock. |
| x430_millis_fn | millis Free-running millisecond counter. |
| x430_lock_fn | unlock Release the bus lock. |
Detailed Description¶
Every member may be NULL; the library then works without that service:
| Member | Used for | NULL means |
|---|---|---|
| lock | mutual exclusion of the Control Tables | single context (bare metal) |
| unlock | (pair of lock) | |
| millis | Realtime Tick (120), Bus Watchdog (98) | tick 0, no watchdog timeout |
| delay_us | Return Delay Time (9) before a status | status sent at once |
The bus keeps a pointer to the port: keep it alive as long as the bus.
Public Attributes Documentation¶
variable context¶
Passed to every function.
variable delay_us¶
Delay before a status packet.
variable lock¶
Take the bus lock.
variable millis¶
Free-running millisecond counter.
variable unlock¶
Release the bus lock.
The documentation for this class was generated from the following file inc/x430_types.h