Changes between Version 7 and Version 8 of 802.11/MAC/Upper/MACHighFramework/Scheduler
- Timestamp:
- Apr 4, 2014, 5:27:26 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
802.11/MAC/Upper/MACHighFramework/Scheduler
v7 v8 21 21 User code interacts with the scheduler via the following functions: 22 22 23 {{{u32 wlan_mac_schedule_event (u8 scheduler_sel, u32 delay, void(*callback)())}}}:23 {{{u32 wlan_mac_schedule_event_repeated(u8 scheduler_sel, u32 delay, u32 num_calls, void(*callback)())}}}: 24 24 * {{{scheduler_sel}}}: select the coarse (±100ms accuracy) or fine (±100µs accuracy) scheduler; must be {{{SCHEDULE_COARSE}}} or {{{SCHEDULE_FINE}}} 25 25 * {{{delay}}}: time in microseconds before {{{callback}}} is called 26 * {{{num_calls}}}: number of times the framework should execute the callback or {{{CALL_FOREVER}}} if it should continue executing it until explicitly stopped 26 27 * {{{callback}}}: function pointer to callback to execute after {{{delay}}} µs 27 28 * Returns u32 {{{id}}} for new scheduler entry or {{{SCHEDULE_FAILURE}}} on failure