You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
/*
|
|
|
|
* downstream_msc.h
|
|
|
|
*
|
|
|
|
* Created on: 8/08/2015
|
|
|
|
* Author: Robert Fisk
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef INC_DOWNSTREAM_MSC_H_
|
|
|
|
#define INC_DOWNSTREAM_MSC_H_
|
|
|
|
|
|
|
|
|
|
|
|
#include "downstream_spi.h"
|
|
|
|
|
|
|
|
|
|
|
|
#define MSC_SUPPORTED_BLOCK_SIZE 512
|
|
|
|
#define MSC_FIXED_LUN 0
|
|
|
|
|
|
|
|
|
|
|
|
typedef void (*DownstreamMSCCallbackPacketTypeDef)(DownstreamPacketTypeDef* receivedPacket,
|
|
|
|
uint16_t dataLength8);
|
|
|
|
|
|
|
|
|
|
|
|
HAL_StatusTypeDef Downstream_MSC_ApproveConnectedDevice(void);
|
|
|
|
void Downstream_MSC_PacketProcessor(DownstreamPacketTypeDef* receivedPacket);
|
|
|
|
HAL_StatusTypeDef Downstream_MSC_PutStreamDataPacket(DownstreamPacketTypeDef* packetToSend,
|
|
|
|
uint32_t dataLength8);
|
|
|
|
HAL_StatusTypeDef Downstream_MSC_GetStreamDataPacket(DownstreamMSCCallbackPacketTypeDef callback);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* INC_DOWNSTREAM_MSC_H_ */
|