le_port_interface.h
Go to the documentation of this file.
52 * le_port_GetPortReference() must be called to get the port object reference regarding to a given87 //--------------------------------------------------------------------------------------------------91 //--------------------------------------------------------------------------------------------------94 //--------------------------------------------------------------------------------------------------97 * Connect the current client thread to the service providing this API. Block until the service is100 * For each thread that wants to use this API, either ConnectService or TryConnectService must be101 * called before any other functions in this API. Normally, ConnectService is automatically called106 //--------------------------------------------------------------------------------------------------112 //--------------------------------------------------------------------------------------------------115 * Try to connect the current client thread to the service providing this API. Return with an error118 * For each thread that wants to use this API, either ConnectService or TryConnectService must be119 * called before any other functions in this API. Normally, ConnectService is automatically called128 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).131 //--------------------------------------------------------------------------------------------------137 //--------------------------------------------------------------------------------------------------141 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants144 //--------------------------------------------------------------------------------------------------151 //--------------------------------------------------------------------------------------------------157 * longer a connection to the service, and the functions in this API can't be used. For details, see162 //--------------------------------------------------------------------------------------------------169 //--------------------------------------------------------------------------------------------------173 //--------------------------------------------------------------------------------------------------176 //--------------------------------------------------------------------------------------------------185 //--------------------------------------------------------------------------------------------------192 //--------------------------------------------------------------------------------------------------203 //--------------------------------------------------------------------------------------------------212 //--------------------------------------------------------------------------------------------------214 * This function switches the device into AT command mode and returns AT server device reference.221 //--------------------------------------------------------------------------------------------------230 //--------------------------------------------------------------------------------------------------240 //--------------------------------------------------------------------------------------------------247 //--------------------------------------------------------------------------------------------------249 * This function gets the device reference regarding to a given reference coming from the AT server.256 //--------------------------------------------------------------------------------------------------void le_port_ConnectService(void)LE_FULL_API void le_port_SetServerDisconnectHandler(le_port_DisconnectHandler_t disconnectHandler, void *contextPtr)void(* le_port_DisconnectHandler_t)(void *)Definition: le_port_interface.h:92le_result_t le_port_GetPortReference(le_atServer_DeviceRef_t atServerDevRef, le_port_DeviceRef_t *devRefPtr)le_result_t le_port_SetDataMode(le_port_DeviceRef_t devRef, int *fdPtr)le_result_t le_port_Release(le_port_DeviceRef_t devRef)struct le_atServer_Device * le_atServer_DeviceRef_tDefinition: le_atServer_common.h:65le_result_t le_port_TryConnectService(void)le_result_t le_port_SetCommandMode(le_port_DeviceRef_t devRef, le_atServer_DeviceRef_t *atServerDevRefPtr)le_port_DeviceRef_t le_port_Request(const char *LE_NONNULL deviceName)void le_port_DisconnectService(void)