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 given83 //--------------------------------------------------------------------------------------------------87 //--------------------------------------------------------------------------------------------------90 //--------------------------------------------------------------------------------------------------93 * Connect the current client thread to the service providing this API. Block until the service is97 * called before any other functions in this API. Normally, ConnectService is automatically called102 //--------------------------------------------------------------------------------------------------108 //--------------------------------------------------------------------------------------------------111 * Try to connect the current client thread to the service providing this API. Return with an error114 * For each thread that wants to use this API, either ConnectService or TryConnectService must be115 * called before any other functions in this API. Normally, ConnectService is automatically called124 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).127 //--------------------------------------------------------------------------------------------------133 //--------------------------------------------------------------------------------------------------137 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants140 //--------------------------------------------------------------------------------------------------147 //--------------------------------------------------------------------------------------------------153 * longer a connection to the service, and the functions in this API can't be used. For details, see158 //--------------------------------------------------------------------------------------------------165 //--------------------------------------------------------------------------------------------------169 //--------------------------------------------------------------------------------------------------172 //--------------------------------------------------------------------------------------------------181 //--------------------------------------------------------------------------------------------------188 //--------------------------------------------------------------------------------------------------199 //--------------------------------------------------------------------------------------------------208 //--------------------------------------------------------------------------------------------------210 * This function switches the device into AT command mode and returns AT server device reference.217 //--------------------------------------------------------------------------------------------------226 //--------------------------------------------------------------------------------------------------236 //--------------------------------------------------------------------------------------------------243 //--------------------------------------------------------------------------------------------------245 * This function gets the device reference regarding to a given reference coming from the AT server.252 //--------------------------------------------------------------------------------------------------LE_FULL_API void le_port_SetServerDisconnectHandler(le_port_DisconnectHandler_t disconnectHandler, void *contextPtr)void le_port_DisconnectService(void)le_result_t le_port_TryConnectService(void)le_result_t le_port_Release(le_port_DeviceRef_t devRef)le_port_DeviceRef_t le_port_Request(const char *LE_NONNULL deviceName)void le_port_ConnectService(void)le_result_t le_port_SetDataMode(le_port_DeviceRef_t devRef, int *fdPtr)void(* le_port_DisconnectHandler_t)(void *)Definition: le_port_interface.h:88le_result_t le_port_SetCommandMode(le_port_DeviceRef_t devRef, le_atServer_DeviceRef_t *atServerDevRefPtr)le_result_t le_port_GetPortReference(le_atServer_DeviceRef_t atServerDevRef, le_port_DeviceRef_t *devRefPtr)