/*
 * This file is part of GreatFET
 */

#ifndef __USB_API_SPI_H__
#define __USB_API_SPI_H__

#include <drivers/usb/usb_type.h>
#include <drivers/usb/usb_request.h>

usb_request_status_t usb_vendor_request_spi_init(
	usb_endpoint_t* const endpoint, const usb_transfer_stage_t stage);
usb_request_status_t usb_vendor_request_spi_write(
	usb_endpoint_t* const endpoint, const usb_transfer_stage_t stage);
usb_request_status_t usb_vendor_request_spi_read(
	usb_endpoint_t* const endpoint, const usb_transfer_stage_t stage);
usb_request_status_t usb_vendor_request_spi_dump_flash(
	usb_endpoint_t* const endpoint, const usb_transfer_stage_t stage);
#endif /* end of include guard: __USB_API_SPI_H__ */
