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);120 //--------------------------------------------------------------------------------------------------124 //--------------------------------------------------------------------------------------------------127 //--------------------------------------------------------------------------------------------------130 * Connect the current client thread to the service providing this API. Block until the service is133 * For each thread that wants to use this API, either ConnectService or TryConnectService must be134 * called before any other functions in this API. Normally, ConnectService is automatically called139 //--------------------------------------------------------------------------------------------------145 //--------------------------------------------------------------------------------------------------148 * Try to connect the current client thread to the service providing this API. Return with an error151 * For each thread that wants to use this API, either ConnectService or TryConnectService must be152 * called before any other functions in this API. Normally, ConnectService is automatically called161 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).164 //--------------------------------------------------------------------------------------------------170 //--------------------------------------------------------------------------------------------------174 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants177 //--------------------------------------------------------------------------------------------------184 //--------------------------------------------------------------------------------------------------190 * longer a connection to the service, and the functions in this API can't be used. For details, see195 //--------------------------------------------------------------------------------------------------202 //--------------------------------------------------------------------------------------------------206 //--------------------------------------------------------------------------------------------------209 //--------------------------------------------------------------------------------------------------213 //--------------------------------------------------------------------------------------------------216 //--------------------------------------------------------------------------------------------------220 //--------------------------------------------------------------------------------------------------224 //--------------------------------------------------------------------------------------------------236 //--------------------------------------------------------------------------------------------------246 //--------------------------------------------------------------------------------------------------254 //--------------------------------------------------------------------------------------------------261 //--------------------------------------------------------------------------------------------------279 //--------------------------------------------------------------------------------------------------294 //--------------------------------------------------------------------------------------------------301 //--------------------------------------------------------------------------------------------------317 //--------------------------------------------------------------------------------------------------324 //--------------------------------------------------------------------------------------------------335 //--------------------------------------------------------------------------------------------------342 //--------------------------------------------------------------------------------------------------354 //--------------------------------------------------------------------------------------------------361 //--------------------------------------------------------------------------------------------------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_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:125void le_spi_SetServerDisconnectHandler(le_spi_DisconnectHandler_t disconnectHandler, void *contextPtr)struct le_spi_DeviceHandle * le_spi_DeviceHandleRef_tDefinition: le_spi_interface.h:221void 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)