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);125 //--------------------------------------------------------------------------------------------------129 //--------------------------------------------------------------------------------------------------132 //--------------------------------------------------------------------------------------------------135 * Connect the current client thread to the service providing this API. Block until the service is138 * For each thread that wants to use this API, either ConnectService or TryConnectService must be139 * called before any other functions in this API. Normally, ConnectService is automatically called144 //--------------------------------------------------------------------------------------------------150 //--------------------------------------------------------------------------------------------------153 * Try to connect the current client thread to the service providing this API. Return with an error156 * For each thread that wants to use this API, either ConnectService or TryConnectService must be157 * called before any other functions in this API. Normally, ConnectService is automatically called166 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).169 //--------------------------------------------------------------------------------------------------175 //--------------------------------------------------------------------------------------------------179 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants182 //--------------------------------------------------------------------------------------------------189 //--------------------------------------------------------------------------------------------------195 * longer a connection to the service, and the functions in this API can't be used. For details, see200 //--------------------------------------------------------------------------------------------------207 //--------------------------------------------------------------------------------------------------211 //--------------------------------------------------------------------------------------------------214 //--------------------------------------------------------------------------------------------------226 //--------------------------------------------------------------------------------------------------236 //--------------------------------------------------------------------------------------------------244 //--------------------------------------------------------------------------------------------------251 //--------------------------------------------------------------------------------------------------269 //--------------------------------------------------------------------------------------------------284 //--------------------------------------------------------------------------------------------------291 //--------------------------------------------------------------------------------------------------307 //--------------------------------------------------------------------------------------------------314 //--------------------------------------------------------------------------------------------------325 //--------------------------------------------------------------------------------------------------332 //--------------------------------------------------------------------------------------------------344 //--------------------------------------------------------------------------------------------------351 //--------------------------------------------------------------------------------------------------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_WriteReadHD(le_spi_DeviceHandleRef_t handle, const uint8_t *writeDataPtr, size_t writeDataSize, uint8_t *readDataPtr, size_t *readDataSizePtr)void(* le_spi_DisconnectHandler_t)(void *)Definition: le_spi_interface.h:130LE_FULL_API void le_spi_SetServerDisconnectHandler(le_spi_DisconnectHandler_t disconnectHandler, void *contextPtr)void le_spi_Close(le_spi_DeviceHandleRef_t handle)le_result_t le_spi_WriteHD(le_spi_DeviceHandleRef_t handle, const uint8_t *writeDataPtr, size_t writeDataSize)le_result_t le_spi_ReadHD(le_spi_DeviceHandleRef_t handle, uint8_t *readDataPtr, size_t *readDataSizePtr)void le_spi_DisconnectService(void)struct le_spi_DeviceHandle * le_spi_DeviceHandleRef_tDefinition: le_spi_common.h:47void le_spi_ConnectService(void)le_result_t le_spi_Open(const char *LE_NONNULL deviceName, le_spi_DeviceHandleRef_t *handlePtr)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)