le_avdata_interface.h
Go to the documentation of this file.
21 * Data is setup as @b assets — a collection of fields that can be managed by the AirVantage50 * Multiple instances of the same asset can be created, as well as multiple instances of different53 * Asset definitions are specified in the @ref defFilesCdef_assets section of the app's @c cdef file.70 * a specific field of an asset instance. For example, a handler registered on a variable field will111 //--------------------------------------------------------------------------------------------------114 * Connect the current client thread to the service providing this API. Block until the service is117 * For each thread that wants to use this API, either ConnectService or TryConnectService must be118 * called before any other functions in this API. Normally, ConnectService is automatically called123 //--------------------------------------------------------------------------------------------------129 //--------------------------------------------------------------------------------------------------132 * Try to connect the current client thread to the service providing this API. Return with an error135 * For each thread that wants to use this API, either ConnectService or TryConnectService must be136 * called before any other functions in this API. Normally, ConnectService is automatically called143 * - LE_UNAVAILABLE if the server is not currently offering the service to which the client is bound.144 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).147 //--------------------------------------------------------------------------------------------------153 //--------------------------------------------------------------------------------------------------159 * longer a connection to the service, and the functions in this API can't be used. For details, see164 //--------------------------------------------------------------------------------------------------171 //--------------------------------------------------------------------------------------------------175 //--------------------------------------------------------------------------------------------------179 //--------------------------------------------------------------------------------------------------183 //--------------------------------------------------------------------------------------------------187 //--------------------------------------------------------------------------------------------------191 //--------------------------------------------------------------------------------------------------195 //--------------------------------------------------------------------------------------------------199 //--------------------------------------------------------------------------------------------------203 //--------------------------------------------------------------------------------------------------207 //--------------------------------------------------------------------------------------------------211 //--------------------------------------------------------------------------------------------------215 //--------------------------------------------------------------------------------------------------219 //--------------------------------------------------------------------------------------------------227 //--------------------------------------------------------------------------------------------------229 (235 //--------------------------------------------------------------------------------------------------241 //--------------------------------------------------------------------------------------------------257 //--------------------------------------------------------------------------------------------------261 //--------------------------------------------------------------------------------------------------268 //--------------------------------------------------------------------------------------------------276 //--------------------------------------------------------------------------------------------------283 //--------------------------------------------------------------------------------------------------289 //--------------------------------------------------------------------------------------------------296 //--------------------------------------------------------------------------------------------------302 //--------------------------------------------------------------------------------------------------315 //--------------------------------------------------------------------------------------------------321 //--------------------------------------------------------------------------------------------------334 //--------------------------------------------------------------------------------------------------340 //--------------------------------------------------------------------------------------------------353 //--------------------------------------------------------------------------------------------------359 //--------------------------------------------------------------------------------------------------372 //--------------------------------------------------------------------------------------------------378 //--------------------------------------------------------------------------------------------------391 //--------------------------------------------------------------------------------------------------397 //--------------------------------------------------------------------------------------------------410 //--------------------------------------------------------------------------------------------------416 //--------------------------------------------------------------------------------------------------432 //--------------------------------------------------------------------------------------------------438 //--------------------------------------------------------------------------------------------------451 //--------------------------------------------------------------------------------------------------457 //--------------------------------------------------------------------------------------------------473 //--------------------------------------------------------------------------------------------------479 //--------------------------------------------------------------------------------------------------void le_avdata_Delete(le_avdata_AssetInstanceRef_t instRef)void le_avdata_SetBool(le_avdata_AssetInstanceRef_t instRef, const char *fieldName, bool value)void le_avdata_RemoveFieldEventHandler(le_avdata_FieldEventHandlerRef_t addHandlerRef)void le_avdata_GetString(le_avdata_AssetInstanceRef_t instRef, const char *fieldName, char *value, size_t valueNumElements)void le_avdata_SetBinary(le_avdata_AssetInstanceRef_t instRef, const char *fieldName, const uint8_t *valuePtr, size_t valueNumElements)void(* le_avdata_FieldHandlerFunc_t)(le_avdata_AssetInstanceRef_t instRef, const char *fieldName, void *contextPtr)Definition: le_avdata_interface.h:229void le_avdata_DisconnectService(void)struct le_avdata_AssetInstance * le_avdata_AssetInstanceRef_tDefinition: le_avdata_interface.h:176void le_avdata_ConnectService(void)void le_avdata_GetFloat(le_avdata_AssetInstanceRef_t instRef, const char *fieldName, double *valuePtr)le_result_t le_avdata_TryConnectService(void)void le_avdata_GetBinary(le_avdata_AssetInstanceRef_t instRef, const char *fieldName, uint8_t *valuePtr, size_t *valueNumElementsPtr)struct le_avdata_FieldEventHandler * le_avdata_FieldEventHandlerRef_tDefinition: le_avdata_interface.h:216void le_avdata_GetInt(le_avdata_AssetInstanceRef_t instRef, const char *fieldName, int32_t *valuePtr)void le_avdata_SetFloat(le_avdata_AssetInstanceRef_t instRef, const char *fieldName, double value)le_avdata_AssetInstanceRef_t le_avdata_Create(const char *assetName)le_avdata_FieldEventHandlerRef_t le_avdata_AddFieldEventHandler(le_avdata_AssetInstanceRef_t instRef, const char *fieldName, le_avdata_FieldHandlerFunc_t handlerPtr, void *contextPtr)void le_avdata_GetBool(le_avdata_AssetInstanceRef_t instRef, const char *fieldName, bool *valuePtr)void le_avdata_SetString(le_avdata_AssetInstanceRef_t instRef, const char *fieldName, const char *value)void le_avdata_SetInt(le_avdata_AssetInstanceRef_t instRef, const char *fieldName, int32_t value)