SAM function SAM-Worker-fb-policy-set()
From SoOS
Contents |
[edit] Name
SAM_Worker_fb_policy_set - Set the flash back policy
[edit] Synopsis
#include <sam.h> SAM_Worker_fb_policy_t SAM_Worker_fb_policy_set(SAM_t sam, SAM_Workerid_t wid, SAM_Worker_fb_policy_t policy);
[edit] Description
The SAM_Worker_fb_policy_set() function changes the flash back policy of the worker wid with the value of policy.
Related constants:
- SAM_FBPOLICY_DEFAULT
The same as SAM_FBPOLICY_RETRY. - SAM_FBPOLICY_RETRY
The worker thread is restarted automatically after the flash back after the flash back retry delay. - SAM_FBPOLICY_HALT
The worker thread is halted until it is manually restarted after a flash back.
[edit] Return value
The value returned is the previous flash back policy.
[edit] Errors
None, assumes correct input parameters.
[edit] Examples
None.