|
|
Optimized set of items. More...
Defines | |
#define | OS_SET_MAX_ITEMS 16 |
Maximum items in a set. | |
#define | OS_SET_EMPTY_ID 32 |
The value returned from minimum test when the set is empty. | |
#define | os_set_add(set, item_id) DOC_HIDDEN |
This macro adds item to the set. | |
#define | os_set_remove(set, item_id) DOC_HIDDEN |
This macro removes item from the set. | |
#define | os_set_is(set, item_id) DOC_HIDDEN |
This macro checks if the item is present in the set. | |
#define | os_set_is_empty(set) DOC_HIDDEN |
This macro checks if the set is empty. | |
Functions | |
unsigned char | os_set_min (os_set_t set) |
Finds item with minimum identifier present in the set. |
Optimized set of items.
This type is used to store the set of items.
#define os_set_add | ( | set, | |
item_id | |||
) | DOC_HIDDEN |
This macro adds item to the set.
The Macro performs add operator on the set.
[in,out] | set | the set of items. |
[in] | item_id | item identification (number 0...15) |
#define os_set_is | ( | set, | |
item_id | |||
) | DOC_HIDDEN |
This macro checks if the item is present in the set.
[in] | set | the set of items. |
[in] | item_id | item identification (number 0...15) |
#define os_set_is_empty | ( | set | ) | DOC_HIDDEN |
This macro checks if the set is empty.
The macro can be used in conditional commands like if.
[in] | set | the set of items. |
#define os_set_remove | ( | set, | |
item_id | |||
) | DOC_HIDDEN |
This macro removes item from the set.
The Macro performs delete operator on the set.
[in,out] | set | the set of items. |
[in] | item_id | item identification (number 0...15) |
unsigned char os_set_min | ( | os_set_t | set | ) |
Finds item with minimum identifier present in the set.
The function implements min( ) operator on the set.
[in] | set | the set of items. |