Prusa MINI Firmware overview
|
This file contains all the prototypes for the usbh_msc.c. More...
Go to the source code of this file.
Classes | |
struct | MSC_LUNTypeDef |
struct | _MSC_Process |
Macros | |
#define | MAX_SUPPORTED_LUN 2 |
#define | USB_REQ_BOT_RESET 0xFF |
#define | USB_REQ_GET_MAX_LUN 0xFE |
#define | USB_MSC_CLASS 0x08 |
#define | MSC_BOT 0x50 |
#define | MSC_TRANSPARENT 0x06 |
#define | USBH_MSC_CLASS &USBH_msc |
Typedefs | |
typedef struct _MSC_Process | MSC_HandleTypeDef |
Enumerations | |
enum | MSC_StateTypeDef { MSC_INIT = 0, MSC_IDLE, MSC_TEST_UNIT_READY, MSC_READ_CAPACITY10, MSC_READ_INQUIRY, MSC_REQUEST_SENSE, MSC_READ, MSC_WRITE, MSC_UNRECOVERED_ERROR, MSC_PERIODIC_CHECK } |
enum | MSC_ErrorTypeDef { MSC_OK, MSC_NOT_READY, MSC_ERROR } |
enum | MSC_ReqStateTypeDef { MSC_REQ_IDLE = 0, MSC_REQ_RESET, MSC_REQ_GET_MAX_LUN, MSC_REQ_ERROR } |
Functions | |
uint8_t | USBH_MSC_IsReady (USBH_HandleTypeDef *phost) |
USBH_MSC_IsReady The function check if the MSC function is ready. More... | |
int8_t | USBH_MSC_GetMaxLUN (USBH_HandleTypeDef *phost) |
USBH_MSC_GetMaxLUN The function return the Max LUN supported. More... | |
uint8_t | USBH_MSC_UnitIsReady (USBH_HandleTypeDef *phost, uint8_t lun) |
USBH_MSC_UnitIsReady The function check whether a LUN is ready. More... | |
USBH_StatusTypeDef | USBH_MSC_GetLUNInfo (USBH_HandleTypeDef *phost, uint8_t lun, MSC_LUNTypeDef *info) |
USBH_MSC_GetLUNInfo The function return a LUN information. More... | |
USBH_StatusTypeDef | USBH_MSC_Read (USBH_HandleTypeDef *phost, uint8_t lun, uint32_t address, uint8_t *pbuf, uint32_t length) |
USBH_MSC_Read The function performs a Read operation. More... | |
USBH_StatusTypeDef | USBH_MSC_Write (USBH_HandleTypeDef *phost, uint8_t lun, uint32_t address, uint8_t *pbuf, uint32_t length) |
USBH_MSC_Write The function performs a Write operation. More... | |
Variables | |
USBH_ClassTypeDef | USBH_msc |
This file contains all the prototypes for the usbh_msc.c.
Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:
http://www.st.com/software_license_agreement_liberty_v2
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.