le_spi_interface.h
Go to the documentation of this file.
75 * res = le_spi_WriteReadHD(spiHandle, read_buffer_tx, read_rx, NUM_ARRAY_MEMBERS(read_buffer_tx);103 //--------------------------------------------------------------------------------------------------107 //--------------------------------------------------------------------------------------------------110 //--------------------------------------------------------------------------------------------------113 * Connect the current client thread to the service providing this API. Block until the service is116 * For each thread that wants to use this API, either ConnectService or TryConnectService must be117 * called before any other functions in this API. Normally, ConnectService is automatically called122 //--------------------------------------------------------------------------------------------------128 //--------------------------------------------------------------------------------------------------131 * Try to connect the current client thread to the service providing this API. Return with an error134 * For each thread that wants to use this API, either ConnectService or TryConnectService must be135 * called before any other functions in this API. Normally, ConnectService is automatically called144 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).147 //--------------------------------------------------------------------------------------------------153 //--------------------------------------------------------------------------------------------------157 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants160 //--------------------------------------------------------------------------------------------------167 //--------------------------------------------------------------------------------------------------173 * longer a connection to the service, and the functions in this API can't be used. For details, see178 //--------------------------------------------------------------------------------------------------185 //--------------------------------------------------------------------------------------------------189 //--------------------------------------------------------------------------------------------------192 //--------------------------------------------------------------------------------------------------196 //--------------------------------------------------------------------------------------------------199 //--------------------------------------------------------------------------------------------------203 //--------------------------------------------------------------------------------------------------207 //--------------------------------------------------------------------------------------------------219 //--------------------------------------------------------------------------------------------------230 //--------------------------------------------------------------------------------------------------238 //--------------------------------------------------------------------------------------------------245 //--------------------------------------------------------------------------------------------------263 //--------------------------------------------------------------------------------------------------278 //--------------------------------------------------------------------------------------------------285 //--------------------------------------------------------------------------------------------------301 //--------------------------------------------------------------------------------------------------308 //--------------------------------------------------------------------------------------------------319 //--------------------------------------------------------------------------------------------------326 //--------------------------------------------------------------------------------------------------338 //--------------------------------------------------------------------------------------------------345 //--------------------------------------------------------------------------------------------------void le_spi_Close(le_spi_DeviceHandleRef_t handle)le_result_t le_spi_WriteReadFD(le_spi_DeviceHandleRef_t handle, const uint8_t *writeDataPtr, size_t writeDataSize, uint8_t *readDataPtr, size_t *readDataSizePtr)le_result_t le_spi_Open(const char *deviceName, le_spi_DeviceHandleRef_t *handlePtr)le_result_t le_spi_WriteHD(le_spi_DeviceHandleRef_t handle, const uint8_t *writeDataPtr, size_t writeDataSize)le_result_t le_spi_TryConnectService(void)void le_spi_Configure(le_spi_DeviceHandleRef_t handle, int32_t mode, uint8_t bits, uint32_t speed, int32_t msb)void(* le_spi_DisconnectHandler_t)(void *)Definition: le_spi_interface.h:108void le_spi_SetServerDisconnectHandler(le_spi_DisconnectHandler_t disconnectHandler, void *contextPtr)struct le_spi_DeviceHandle * le_spi_DeviceHandleRef_tDefinition: le_spi_interface.h:204void le_spi_ConnectService(void)void le_spi_DisconnectService(void)le_result_t le_spi_WriteReadHD(le_spi_DeviceHandleRef_t handle, const uint8_t *writeDataPtr, size_t writeDataSize, uint8_t *readDataPtr, size_t *readDataSizePtr)le_result_t le_spi_ReadHD(le_spi_DeviceHandleRef_t handle, uint8_t *readDataPtr, size_t *readDataSizePtr)