Nirvana Jay / Mbed 2 deprecated F7DISCO_Demo

Dependencies:   BSP_DISCO_F746NG_patch mbed-rtos mbed

Embed: (wiki syntax)

« Back to documentation index

USBH_MSC_BOT_Private_Functions

USBH_MSC_BOT_Private_Functions
[USBH_MSC_BOT]

Functions

USBH_StatusTypeDef USBH_MSC_BOT_REQ_Reset (USBH_HandleTypeDef *phost)
 USBH_MSC_BOT_REQ_Reset The function the MSC BOT Reset request.
USBH_StatusTypeDef USBH_MSC_BOT_REQ_GetMaxLUN (USBH_HandleTypeDef *phost, uint8_t *Maxlun)
 USBH_MSC_BOT_REQ_GetMaxLUN The function the MSC BOT GetMaxLUN request.
USBH_StatusTypeDef USBH_MSC_BOT_Init (USBH_HandleTypeDef *phost)
 USBH_MSC_BOT_Init The function Initializes the BOT protocol.
USBH_StatusTypeDef USBH_MSC_BOT_Process (USBH_HandleTypeDef *phost, uint8_t lun)
 USBH_MSC_BOT_Process The function handle the BOT protocol.
static USBH_StatusTypeDef USBH_MSC_BOT_Abort (USBH_HandleTypeDef *phost, uint8_t lun, uint8_t dir)
 USBH_MSC_BOT_Abort The function handle the BOT Abort process.
static BOT_CSWStatusTypeDef USBH_MSC_DecodeCSW (USBH_HandleTypeDef *phost)
 USBH_MSC_BOT_DecodeCSW This function decodes the CSW received by the device and updates the same to upper layer.

Function Documentation

static USBH_StatusTypeDef USBH_MSC_BOT_Abort ( USBH_HandleTypeDef *  phost,
uint8_t  lun,
uint8_t  dir 
) [static]

USBH_MSC_BOT_Abort The function handle the BOT Abort process.

Parameters:
phost,:Host handle
lun,:Logical Unit Number
dir,:direction (0: out / 1 : in)
Return values:
USBHStatus

Definition at line 475 of file usbh_msc_bot.c.

USBH_StatusTypeDef USBH_MSC_BOT_Init ( USBH_HandleTypeDef *  phost )

USBH_MSC_BOT_Init The function Initializes the BOT protocol.

Parameters:
phost,:Host handle
Return values:
USBHStatus

Definition at line 151 of file usbh_msc_bot.c.

USBH_StatusTypeDef USBH_MSC_BOT_Process ( USBH_HandleTypeDef *  phost,
uint8_t  lun 
)

USBH_MSC_BOT_Process The function handle the BOT protocol.

Parameters:
phost,:Host handle
lun,:Logical Unit Number
Return values:
USBHStatus

Definition at line 173 of file usbh_msc_bot.c.

USBH_StatusTypeDef USBH_MSC_BOT_REQ_GetMaxLUN ( USBH_HandleTypeDef *  phost,
uint8_t *  Maxlun 
)

USBH_MSC_BOT_REQ_GetMaxLUN The function the MSC BOT GetMaxLUN request.

Parameters:
phost,:Host handle
Maxlun,:pointer to Maxlun variable
Return values:
USBHStatus

Definition at line 130 of file usbh_msc_bot.c.

USBH_StatusTypeDef USBH_MSC_BOT_REQ_Reset ( USBH_HandleTypeDef *  phost )

USBH_MSC_BOT_REQ_Reset The function the MSC BOT Reset request.

Parameters:
phost,:Host handle
Return values:
USBHStatus

Definition at line 109 of file usbh_msc_bot.c.

static BOT_CSWStatusTypeDef USBH_MSC_DecodeCSW ( USBH_HandleTypeDef *  phost ) [static]

USBH_MSC_BOT_DecodeCSW This function decodes the CSW received by the device and updates the same to upper layer.

Parameters:
phost,:Host handle
Return values:
USBHStatus Refer to USB Mass-Storage Class : BOT (www.usb.org) 6.3.1 Valid CSW Conditions : The host shall consider the CSW valid when: 1. dCSWSignature is equal to 53425355h 2. the CSW is 13 (Dh) bytes in length, 3. dCSWTag matches the dCBWTag from the corresponding CBW.

Definition at line 514 of file usbh_msc_bot.c.