le_antenna_interface.h
Go to the documentation of this file.
137 * le_antenna_AddStatusEventHandler() API adds a handler to be notified when the requested antenna166 //--------------------------------------------------------------------------------------------------170 //--------------------------------------------------------------------------------------------------173 //--------------------------------------------------------------------------------------------------176 * Connect the current client thread to the service providing this API. Block until the service is179 * For each thread that wants to use this API, either ConnectService or TryConnectService must be180 * called before any other functions in this API. Normally, ConnectService is automatically called185 //--------------------------------------------------------------------------------------------------191 //--------------------------------------------------------------------------------------------------194 * Try to connect the current client thread to the service providing this API. Return with an error197 * For each thread that wants to use this API, either ConnectService or TryConnectService must be198 * called before any other functions in this API. Normally, ConnectService is automatically called207 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).210 //--------------------------------------------------------------------------------------------------216 //--------------------------------------------------------------------------------------------------220 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants223 //--------------------------------------------------------------------------------------------------230 //--------------------------------------------------------------------------------------------------236 * longer a connection to the service, and the functions in this API can't be used. For details, see241 //--------------------------------------------------------------------------------------------------248 //--------------------------------------------------------------------------------------------------252 //--------------------------------------------------------------------------------------------------256 //--------------------------------------------------------------------------------------------------260 //--------------------------------------------------------------------------------------------------275 //--------------------------------------------------------------------------------------------------279 //--------------------------------------------------------------------------------------------------299 //--------------------------------------------------------------------------------------------------303 //--------------------------------------------------------------------------------------------------307 //--------------------------------------------------------------------------------------------------312 //--------------------------------------------------------------------------------------------------314 (323 //--------------------------------------------------------------------------------------------------331 //--------------------------------------------------------------------------------------------------338 //--------------------------------------------------------------------------------------------------346 //--------------------------------------------------------------------------------------------------355 //--------------------------------------------------------------------------------------------------364 //--------------------------------------------------------------------------------------------------373 //--------------------------------------------------------------------------------------------------382 //--------------------------------------------------------------------------------------------------391 //--------------------------------------------------------------------------------------------------400 //--------------------------------------------------------------------------------------------------409 //--------------------------------------------------------------------------------------------------418 //--------------------------------------------------------------------------------------------------427 //--------------------------------------------------------------------------------------------------434 //--------------------------------------------------------------------------------------------------445 //--------------------------------------------------------------------------------------------------449 //--------------------------------------------------------------------------------------------------456 //--------------------------------------------------------------------------------------------------467 //--------------------------------------------------------------------------------------------------476 //--------------------------------------------------------------------------------------------------488 //--------------------------------------------------------------------------------------------------497 //--------------------------------------------------------------------------------------------------510 //--------------------------------------------------------------------------------------------------le_result_t le_antenna_TryConnectService(void)antenna in short circuit: unknown state.Definition: le_antenna_interface.h:282antenna in closed circuit: presence of antenna.Definition: le_antenna_interface.h:284void le_antenna_RemoveStatusEventHandler(le_antenna_StatusEventHandlerRef_t handlerRef)void le_antenna_ConnectService(void)le_result_t le_antenna_GetType(le_antenna_ObjRef_t antennaRef, le_antenna_Type_t *antennaTypePtr)void le_antenna_SetServerDisconnectHandler(le_antenna_DisconnectHandler_t disconnectHandler, void *contextPtr)le_result_t le_antenna_GetExternalAdc(le_antenna_ObjRef_t antennaRef, int8_t *adcIdPtr)void(* le_antenna_StatusHandlerFunc_t)(le_antenna_ObjRef_t antennaRef, le_antenna_Status_t status, void *contextPtr)Definition: le_antenna_interface.h:314le_result_t le_antenna_GetOpenLimit(le_antenna_ObjRef_t antennaRef, uint32_t *openLimitPtr)Definition: le_antenna_interface.h:288le_result_t le_antenna_GetStatus(le_antenna_ObjRef_t antennaRef, le_antenna_Status_t *statusPtr)le_antenna_ObjRef_t le_antenna_Request(le_antenna_Type_t antennaType)struct le_antenna_StatusEventHandler * le_antenna_StatusEventHandlerRef_tDefinition: le_antenna_interface.h:304le_result_t le_antenna_GetShortLimit(le_antenna_ObjRef_t antennaRef, uint32_t *shortLimitPtr)void le_antenna_DisconnectService(void)le_result_t le_antenna_SetOpenLimit(le_antenna_ObjRef_t antennaRef, uint32_t openLimit)antenna in open circuit: there is no antenna.Definition: le_antenna_interface.h:286le_result_t le_antenna_SetShortLimit(le_antenna_ObjRef_t antennaRef, uint32_t shortLimit)struct le_antenna_Obj * le_antenna_ObjRef_tDefinition: le_antenna_interface.h:253le_result_t le_antenna_SetExternalAdc(le_antenna_ObjRef_t antennaRef, int8_t adcId)void(* le_antenna_DisconnectHandler_t)(void *)Definition: le_antenna_interface.h:171le_antenna_StatusEventHandlerRef_t le_antenna_AddStatusEventHandler(le_antenna_ObjRef_t antennaRef, le_antenna_StatusHandlerFunc_t handlerPtr, void *contextPtr)