![]() |
Wirepas SDK
|
Go to the source code of this file.
Typedefs | |
| typedef void(* | waps_pre_tx_cb_f) (waps_item_t *) |
| typedef void(* | waps_post_tx_cb_f) (waps_item_t *) |
| typedef void(* | waps_free_item_threshold_cb_t) (void) |
Functions | |
| __STATIC_INLINE void | Waps_item_init (waps_item_t *item, uint8_t func, uint8_t len) |
| Initialize common frame fields. More... | |
| void | Waps_itemInit (waps_free_item_threshold_cb_t thresold_cb, uint8_t thresold_percent) |
| Initialize dynamic item bank. More... | |
| waps_item_t * | Waps_itemReserve (waps_item_type_e type) |
| Reserve item from item bank. More... | |
| void | Waps_itemFree (waps_item_t *item) |
| Free item for item bank. More... | |
Data Structures | |
| struct | waps_item_t |
Enumerations | |
| enum | waps_item_type_e { WAPS_ITEM_TYPE_REQUEST, WAPS_ITEM_TYPE_INDICATION } |
| typedef void(* waps_free_item_threshold_cb_t) (void) |
Callback to be called when the defined thershold of free buffer is reached
Definition at line 32 of file waps_item.h.
| typedef void(* waps_post_tx_cb_f) (waps_item_t *) |
Callback for performing operations after successfully sending the frame
Definition at line 29 of file waps_item.h.
| typedef void(* waps_pre_tx_cb_f) (waps_item_t *) |
Callback for preprocessing the frame just before attempting sending.
Definition at line 26 of file waps_item.h.
| __STATIC_INLINE void Waps_item_init | ( | waps_item_t * | item, |
| uint8_t | func, | ||
| uint8_t | len | ||
| ) |
Initialize common frame fields.
| item | Pointer to the item to initialize |
| func | Function code to set |
| len | Length to set. |
Definition at line 57 of file waps_item.h.
| void Waps_itemFree | ( | waps_item_t * | item | ) |
Free item for item bank.
| item | Item to free |
| void Waps_itemInit | ( | waps_free_item_threshold_cb_t | thresold_cb, |
| uint8_t | thresold_percent | ||
| ) |
Initialize dynamic item bank.
| waps_item_t* Waps_itemReserve | ( | waps_item_type_e | type | ) |
Reserve item from item bank.
| type | Type of item reserved |
| enum waps_item_type_e |
Types of buffers: requests and indications
| Enumerator | |
|---|---|
| WAPS_ITEM_TYPE_REQUEST | Item is a request from lower layer |
| WAPS_ITEM_TYPE_INDICATION | Item is an indication from upper layer |
Definition at line 16 of file waps_item.h.