USBX MSC *media_status value meaning
Hello!
i'm developing a firmware that use an SD card connected to USBX MSC, and i have a couple of question
i want to understand better the ULONG *media_status value returned in the function :
UINT USBD_STORAGE_Status(VOID *storage_instance, ULONG lun,
ULONG media_id,ULONG *media_status)
UINT USBD_STORAGE_Flush(VOID *storage_instance, ULONG lun, ULONG number_blocks,
ULONG lba, ULONG *media_status)
UINT USBD_STORAGE_Write(VOID *storage_instance, ULONG lun, UCHAR *data_pointer,
ULONG number_blocks, ULONG lba, ULONG *media_status)
UINT USBD_STORAGE_Read(VOID *storage_instance, ULONG lun, UCHAR *data_pointer,
ULONG number_blocks, ULONG lba, ULONG *media_status) i'm hoping that value is related to the SCSI code value that windows need from a USB MSC
is it true? beyond UX_SUCCESS which value can i use? for example to indicate the media as changed or is readonly?
how can the functions ULONG USBD_STORAGE_GetMediaLastLba(VOID) and ULONG USBD_STORAGE_GetMediaBlocklength(VOID) can be fired againafter initialization? (maybe i have changed the SD card)
whats the meaning of this function?
UINT USBD_STORAGE_Notification(VOID *storage_instance, ULONG lun, ULONG media_id,
ULONG notification_class, UCHAR **media_notification,
ULONG *media_notification_length)
thank you!
best reguards
