|
Wirepas SDK
|
|
Go to the documentation of this file.
6 #ifndef _SHARED_APPCONFIG_H_
7 #define _SHARED_APPCONFIG_H_
36 #define SHARED_APP_CONFIG_ALL_TYPE_FILTER 0xFFFF
43 #define SHARED_APP_CONFIG_INCOMPATIBLE_FILTER 0xFFFE
104 uint16_t * filter_id);
139 #endif //_SHARED_APPCONFIG_H_
shared_app_config_res_e Shared_Appconfig_init(void)
Initialize the shared app config library.
@ SHARED_APP_CONFIG_RES_NO_FILTER
@ SHARED_APP_CONFIG_RES_OK
shared_app_config_received_cb_f cb
@ SHARED_APP_CONFIG_RES_INVALID_PARAM
shared_app_config_res_e Shared_Appconfig_removeFilter(uint16_t filter_id)
Remove a received packet item from the list. Removed item fields are all set to 0.
@ SHARED_APP_CONFIG_RES_INVALID_FILTER
shared_app_config_res_e
List of return code.
@ SHARED_APP_CONFIG_RES_INVALID_ROLE
shared_app_config_res_e Shared_Appconfig_addFilter(shared_app_config_filter_t *filter, uint16_t *filter_id)
Add a new app config type filter to the list. If the item is already in the list it is only updated.
void(* shared_app_config_received_cb_f)(uint16_t type, uint8_t length, uint8_t *value_p)
The app config type reception callback.
shared_app_config_res_e Shared_Appconfig_notifyAppConfig(const uint8_t *bytes)
Notify other modules of a new app config received.
Structure holding all parameters for app config type filtering.
@ SHARED_APP_CONFIG_RES_UNINITIALIZED
shared_app_config_res_e Shared_Appconfig_setAppConfig(const uint8_t *bytes)
Set a new app config.