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 given82 //--------------------------------------------------------------------------------------------------86 //--------------------------------------------------------------------------------------------------89 //--------------------------------------------------------------------------------------------------92 * Connect the current client thread to the service providing this API. Block until the service is96 * called before any other functions in this API. Normally, ConnectService is automatically called101 //--------------------------------------------------------------------------------------------------107 //--------------------------------------------------------------------------------------------------110 * Try to connect the current client thread to the service providing this API. Return with an error113 * For each thread that wants to use this API, either ConnectService or TryConnectService must be114 * called before any other functions in this API. Normally, ConnectService is automatically called123 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).126 //--------------------------------------------------------------------------------------------------132 //--------------------------------------------------------------------------------------------------136 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants139 //--------------------------------------------------------------------------------------------------146 //--------------------------------------------------------------------------------------------------152 * longer a connection to the service, and the functions in this API can't be used. For details, see157 //--------------------------------------------------------------------------------------------------164 //--------------------------------------------------------------------------------------------------168 //--------------------------------------------------------------------------------------------------171 //--------------------------------------------------------------------------------------------------175 //--------------------------------------------------------------------------------------------------179 //--------------------------------------------------------------------------------------------------188 //--------------------------------------------------------------------------------------------------195 //--------------------------------------------------------------------------------------------------206 //--------------------------------------------------------------------------------------------------215 //--------------------------------------------------------------------------------------------------217 * This function switches the device into AT command mode and returns AT server device reference.224 //--------------------------------------------------------------------------------------------------233 //--------------------------------------------------------------------------------------------------243 //--------------------------------------------------------------------------------------------------250 //--------------------------------------------------------------------------------------------------252 * This function gets the device reference regarding to a given reference coming from the AT server.259 //--------------------------------------------------------------------------------------------------void le_port_DisconnectService(void)le_result_t le_port_TryConnectService(void)struct le_atServer_Device * le_atServer_DeviceRef_tDefinition: le_atServer_interface.h:411le_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)void le_port_SetServerDisconnectHandler(le_port_DisconnectHandler_t disconnectHandler, void *contextPtr)le_result_t le_port_SetDataMode(le_port_DeviceRef_t devRef, int *fdPtr)void(* le_port_DisconnectHandler_t)(void *)Definition: le_port_interface.h:87le_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)