/* * data_buffer.h * * Created on: 20-Jun-2023 * Author: vivek */ /** * @file descriptor_fifo.h * @brief Write Data to Descriptor FIFO. */ #ifndef SRC_DESCRIPTOR_FIFO_H_ #define SRC_DESCRIPTOR_FIFO_H_ #include "ltcusb.h" #include "descriptor.h" #include /** * @brief Write into the descriptor FIFO. * @param descriptor_data_size The size of descriptor. * @param descrtiptor_data Descriptor data * @return 0 When success. * @retval 0 Operation successful * @retval -1 Write to FIFO failed. * @retval -2 NULL pointer passed. */ extern int descriptor_fifo_write(uint32_t descriptor_data_size, uint32_t* descrtiptor_data); #endif /* SRC_DESCRIPTOR_FIFO_H_ */