Nordic nrf51 sdk sources. Mirrored from https://github.com/ARMmbed/nrf51-sdk.

Dependents:   nRF51822 nRF51822

Embed: (wiki syntax)

« Back to documentation index

sdk_mapped_flags.h File Reference

sdk_mapped_flags.h File Reference

Go to the source code of this file.

Data Structures

struct  sdk_mapped_flags_key_list_t
 Type used to present a subset of the registered keys. More...

Typedefs

typedef uint8_t sdk_mapped_flags_t
 The bitmap to hold flags.

Functions

uint16_t sdk_mapped_flags_first_key_index_get (sdk_mapped_flags_t flags)
 Function for getting the first index at which the flag is true in the provided collection.
void sdk_mapped_flags_update_by_key (uint16_t *p_keys, sdk_mapped_flags_t *p_flags, uint16_t key, bool value)
 Function for updating the state of a flag.
void sdk_mapped_flags_bulk_update_by_key (uint16_t *p_keys, sdk_mapped_flags_t *p_flags, uint32_t n_flag_collections, uint16_t key, bool value)
 Function for updating the state of the same flag in multiple flag collections.
bool sdk_mapped_flags_get_by_key (uint16_t *p_keys, sdk_mapped_flags_t flags, uint16_t key)
 Function for getting the state of a specific flag.
sdk_mapped_flags_key_list_t sdk_mapped_flags_key_list_get (uint16_t *p_keys, sdk_mapped_flags_t flags)
 Function for getting a list of all keys that have a specific flag set to true.
uint32_t sdk_mapped_flags_n_flags_set (sdk_mapped_flags_t flags)
 Function for getting the number of keys that have a specific flag set to true.
static __INLINE bool sdk_mapped_flags_any_set (sdk_mapped_flags_t flags)
 Function for querying whether any flags in the collection are set.

Detailed Description

Definition in file sdk_mapped_flags.h.