|
VSF Documented
|
#include "kernel/vsf_kernel_cfg.h"#include "./vsf_kernel_common.h"#include "./vsf_eda.h"#include "./vsf_evtq.h"#include "./vsf_os.h"#include "./vsf_timq.h"Macros | |
| #define | __VSF_EDA_CLASS_IMPLEMENT |
Functions | |
| vsf_evtq_t * | __vsf_os_evtq_get (vsf_prio_t priority) |
| vsf_err_t | __vsf_os_evtq_set_priority (vsf_evtq_t *pthis, vsf_prio_t priority) |
| vsf_err_t | __vsf_os_evtq_activate (vsf_evtq_t *pthis) |
| vsf_err_t | __vsf_os_evtq_init (vsf_evtq_t *pthis) |
| vsf_prio_t | __vsf_os_evtq_get_priority (vsf_evtq_t *pthis) |
| vsf_evt_node_t * | __vsf_os_alloc_evt_node (void) |
| void | __vsf_os_free_evt_node (vsf_evt_node_t *node) |
| vsf_prio_t | __vsf_eda_get_cur_priority (vsf_eda_t *pthis) |
| vsf_err_t | __vsf_eda_set_priority (vsf_eda_t *pthis, vsf_prio_t priority) |
| void | vsf_evtq_on_eda_init (vsf_eda_t *pthis) |
| Event queue hook called when an eda is initialized. | |
| void | vsf_evtq_on_eda_fini (vsf_eda_t *pthis) |
| Event queue hook called when an eda is finalized. | |
| vsf_err_t | vsf_evtq_init (vsf_evtq_t *pthis) |
| Initialize an event queue. | |
| vsf_err_t | vsf_evtq_post_evt_ex (vsf_eda_t *pthis, vsf_evt_t evt, bool force) |
| Post an event to the event queue of the target eda, with force control. | |
| vsf_err_t | vsf_evtq_post_evt (vsf_eda_t *pthis, vsf_evt_t evt) |
| Post an event to the event queue of the target eda. | |
| vsf_err_t | vsf_evtq_post_msg (vsf_eda_t *pthis, void *msg) |
| Post a message to the event queue of the target eda (event VSF_EVT_MESSAGE) | |
| vsf_err_t | vsf_evtq_post_evt_msg (vsf_eda_t *pthis, vsf_evt_t evt, void *msg) |
| Post an event with a message to the event queue of the target eda. | |
| bool | vsf_evtq_is_empty (vsf_evtq_t *pthis) |
| Check whether an event queue is empty. | |
| void | vsf_evtq_clean_evt (vsf_evt_t evt) |
| Clean the pending event(s) posted to the current eda. | |
| vsf_err_t | vsf_evtq_poll (vsf_evtq_t *pthis) |
| Poll an event queue and dispatch the pending events to their edas. | |
| #define __VSF_EDA_CLASS_IMPLEMENT |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
| vsf_prio_t __vsf_eda_get_cur_priority | ( | vsf_eda_t * | pthis | ) |
| vsf_err_t __vsf_eda_set_priority | ( | vsf_eda_t * | pthis, |
| vsf_prio_t | priority ) |
| void vsf_evtq_on_eda_init | ( | vsf_eda_t * | eda | ) |
Event queue hook called when an eda is initialized.
| [in] | eda | a pointer to the vsf_eda_t being initialized |
| void vsf_evtq_on_eda_fini | ( | vsf_eda_t * | eda | ) |
Event queue hook called when an eda is finalized.
| [in] | eda | a pointer to the vsf_eda_t being finalized |
| vsf_err_t vsf_evtq_init | ( | vsf_evtq_t * | this_ptr | ) |
Initialize an event queue.
| [in] | this_ptr | a pointer to structure vsf_evtq_t |
Post an event to the event queue of the target eda, with force control.
| [in] | eda | a pointer to the target vsf_eda_t |
| [in] | evt | the event to post |
| [in] | force | true to post even if the eda is limited and already has a pending event |
Post an event to the event queue of the target eda.
| [in] | eda | a pointer to the target vsf_eda_t |
| [in] | evt | the event to post |
Post a message to the event queue of the target eda (event VSF_EVT_MESSAGE)
| [in] | eda | a pointer to the target vsf_eda_t |
| [in] | msg | the message pointer to post |
Post an event with a message to the event queue of the target eda.
| [in] | eda | a pointer to the target vsf_eda_t |
| [in] | evt | the event to post |
| [in] | msg | the message pointer carried with the event |
| bool vsf_evtq_is_empty | ( | vsf_evtq_t * | this_ptr | ) |
Check whether an event queue is empty.
| [in] | this_ptr | a pointer to structure vsf_evtq_t |
| void vsf_evtq_clean_evt | ( | vsf_evt_t | evt | ) |
Clean the pending event(s) posted to the current eda.
| [in] | evt | the event to clean; VSF_EVT_NONE cleans all pending events of the current eda |
| vsf_err_t vsf_evtq_poll | ( | vsf_evtq_t * | this_ptr | ) |
Poll an event queue and dispatch the pending events to their edas.
| [in] | this_ptr | a pointer to structure vsf_evtq_t |