le_spi_interface.h
Go to the documentation of this file.
73 * res = le_spi_WriteReadHD(spiHandle, read_buffer_tx, read_rx, NUM_ARRAY_MEMBERS(read_buffer_tx);100 //--------------------------------------------------------------------------------------------------103 * Connect the current client thread to the service providing this API. Block until the service is106 * For each thread that wants to use this API, either ConnectService or TryConnectService must be107 * called before any other functions in this API. Normally, ConnectService is automatically called112 //--------------------------------------------------------------------------------------------------118 //--------------------------------------------------------------------------------------------------121 * Try to connect the current client thread to the service providing this API. Return with an error124 * For each thread that wants to use this API, either ConnectService or TryConnectService must be125 * called before any other functions in this API. Normally, ConnectService is automatically called132 * - LE_UNAVAILABLE if the server is not currently offering the service to which the client is bound.133 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).136 //--------------------------------------------------------------------------------------------------142 //--------------------------------------------------------------------------------------------------148 * longer a connection to the service, and the functions in this API can't be used. For details, see153 //--------------------------------------------------------------------------------------------------160 //--------------------------------------------------------------------------------------------------164 //--------------------------------------------------------------------------------------------------168 //--------------------------------------------------------------------------------------------------172 //--------------------------------------------------------------------------------------------------176 //--------------------------------------------------------------------------------------------------180 //--------------------------------------------------------------------------------------------------183 //--------------------------------------------------------------------------------------------------195 //--------------------------------------------------------------------------------------------------205 //--------------------------------------------------------------------------------------------------213 //--------------------------------------------------------------------------------------------------220 //--------------------------------------------------------------------------------------------------238 //--------------------------------------------------------------------------------------------------257 //--------------------------------------------------------------------------------------------------264 //--------------------------------------------------------------------------------------------------283 //--------------------------------------------------------------------------------------------------290 //--------------------------------------------------------------------------------------------------303 //--------------------------------------------------------------------------------------------------310 //--------------------------------------------------------------------------------------------------323 //--------------------------------------------------------------------------------------------------330 //--------------------------------------------------------------------------------------------------void le_spi_Close(le_spi_DeviceHandleRef_t handle)le_result_t le_spi_Open(const char *deviceName, le_spi_DeviceHandleRef_t *handlePtr)le_result_t le_spi_ReadHD(le_spi_DeviceHandleRef_t handle, uint8_t *readDataPtr, size_t *readDataNumElementsPtr)le_result_t le_spi_WriteHD(le_spi_DeviceHandleRef_t handle, const uint8_t *writeDataPtr, size_t writeDataNumElements)le_result_t le_spi_TryConnectService(void)le_result_t le_spi_WriteReadFD(le_spi_DeviceHandleRef_t handle, const uint8_t *writeDataPtr, size_t writeDataNumElements, uint8_t *readDataPtr, size_t *readDataNumElementsPtr)void le_spi_Configure(le_spi_DeviceHandleRef_t handle, int32_t mode, uint8_t bits, uint32_t speed, int32_t msb)le_result_t le_spi_WriteReadHD(le_spi_DeviceHandleRef_t handle, const uint8_t *writeDataPtr, size_t writeDataNumElements, uint8_t *readDataPtr, size_t *readDataNumElementsPtr)struct le_spi_DeviceHandle * le_spi_DeviceHandleRef_tDefinition: le_spi_interface.h:181void le_spi_ConnectService(void)void le_spi_DisconnectService(void)