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);121 //--------------------------------------------------------------------------------------------------125 //--------------------------------------------------------------------------------------------------128 //--------------------------------------------------------------------------------------------------131 * Connect the current client thread to the service providing this API. Block until the service is134 * 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 called140 //--------------------------------------------------------------------------------------------------146 //--------------------------------------------------------------------------------------------------149 * Try to connect the current client thread to the service providing this API. Return with an error152 * For each thread that wants to use this API, either ConnectService or TryConnectService must be153 * called before any other functions in this API. Normally, ConnectService is automatically called162 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).165 //--------------------------------------------------------------------------------------------------171 //--------------------------------------------------------------------------------------------------175 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants178 //--------------------------------------------------------------------------------------------------185 //--------------------------------------------------------------------------------------------------191 * longer a connection to the service, and the functions in this API can't be used. For details, see196 //--------------------------------------------------------------------------------------------------203 //--------------------------------------------------------------------------------------------------207 //--------------------------------------------------------------------------------------------------210 //--------------------------------------------------------------------------------------------------222 //--------------------------------------------------------------------------------------------------232 //--------------------------------------------------------------------------------------------------240 //--------------------------------------------------------------------------------------------------247 //--------------------------------------------------------------------------------------------------265 //--------------------------------------------------------------------------------------------------280 //--------------------------------------------------------------------------------------------------287 //--------------------------------------------------------------------------------------------------303 //--------------------------------------------------------------------------------------------------310 //--------------------------------------------------------------------------------------------------321 //--------------------------------------------------------------------------------------------------328 //--------------------------------------------------------------------------------------------------340 //--------------------------------------------------------------------------------------------------347 //--------------------------------------------------------------------------------------------------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_FULL_API void le_spi_SetServerDisconnectHandler(le_spi_DisconnectHandler_t disconnectHandler, void *contextPtr)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:126void 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_Open(const char *LE_NONNULL deviceName, le_spi_DeviceHandleRef_t *handlePtr)le_result_t le_spi_ReadHD(le_spi_DeviceHandleRef_t handle, uint8_t *readDataPtr, size_t *readDataSizePtr)