Christian Lerche / EA_DoorPlayer

Description: EA BaseBoard, playing wav, PC see\'s SD-card through USB port.

Embed: (wiki syntax)

« Back to documentation index

msc_bot.cpp File Reference

msc_bot.cpp File Reference

Bulk-only-transfer layer for mass storage. More...

Go to the source code of this file.

Enumerations

enum  EBotState
 

States of BOT state machine.

More...

Functions

void MSCBotReset (void)
 Resets the BOT state machine.
static void SendCSW (uint8_t bStatus)
 Prepares a CSW, to be sent on next bulk-IN interrupt.
static bool CheckCBW (TCBW *pCBW, int iLen)
 Checks if CBW is valid and meaningful.
void MSCBotBulkOut ()
 Handles the BOT bulk OUT endpoint.
void MSCBotBulkIn ()
 Handles the BOT bulk IN endpoint.

Variables

static uint32_t dwTransferSize
 total size of data transfer
static uint32_t dwOffset
 offset in current data transfer

Detailed Description

Bulk-only-transfer layer for mass storage.

This layers sits between the generic USB layers and the SCSI layer and performs data transfer according to the BOT protocol.

Definition in file msc_bot.cpp.


Enumeration Type Documentation

enum EBotState

States of BOT state machine.

Definition at line 69 of file msc_bot.cpp.


Function Documentation

static bool CheckCBW ( TCBW *  pCBW,
int  iLen 
) [static]

Checks if CBW is valid and meaningful.

Parameters:
[in]pCBWCommand block wrapper
[in]iLenLength of CBW
Returns:
true if valid and meaningful

Definition at line 142 of file msc_bot.cpp.

void MSCBotBulkIn (  )

Handles the BOT bulk IN endpoint.

Parameters:
[in]bEPEndpoint number
[in]bEPStatusEndpoint status (indicates NAK, STALL, etc)

Definition at line 369 of file msc_bot.cpp.

void MSCBotBulkOut (  )

Handles the BOT bulk OUT endpoint.

Parameters:
[in]bEPEndpoint number
[in]bEPStatusEndpoint status (indicates NAK, STALL, etc)

Definition at line 270 of file msc_bot.cpp.

void MSCBotReset ( void   )

Resets the BOT state machine.

Definition at line 100 of file msc_bot.cpp.

static void SendCSW ( uint8_t  bStatus ) [static]

Prepares a CSW, to be sent on next bulk-IN interrupt.

Parameters:
[in]bStatusCSW status

Definition at line 115 of file msc_bot.cpp.


Variable Documentation

uint32_t dwOffset [static]

offset in current data transfer

Definition at line 86 of file msc_bot.cpp.

uint32_t dwTransferSize [static]

total size of data transfer

Definition at line 85 of file msc_bot.cpp.