Searched refs:csw (Results 1 – 3 of 3) sorted by relevance
/hal_espressif-3.6.0/components/usb/test/common/ |
D | test_usb_mock_classes.c | 81 bool mock_msc_scsi_check_csw(mock_msc_bulk_csw_t *csw, uint32_t tag_expect) in mock_msc_scsi_check_csw() argument 84 if (csw->dCSWSignature != 0x53425355) { in mock_msc_scsi_check_csw() 86 printf("Warning: csw signature corrupt (0x%X)\n", csw->dCSWSignature); in mock_msc_scsi_check_csw() 88 if (csw->dCSWTag != tag_expect) { in mock_msc_scsi_check_csw() 90 printf("Warning: csw tag unexpected! Expected %d got %d\n", tag_expect, csw->dCSWTag); in mock_msc_scsi_check_csw() 92 if (csw->dCSWDataResidue) { in mock_msc_scsi_check_csw() 94 printf("Warning: csw indicates data residue of %d bytes!\n", csw->dCSWDataResidue); in mock_msc_scsi_check_csw() 96 if (csw->bCSWStatus) { in mock_msc_scsi_check_csw() 98 printf("Warning: csw indicates non-good status %d!\n", csw->bCSWStatus); in mock_msc_scsi_check_csw()
|
D | test_usb_mock_classes.h | 170 bool mock_msc_scsi_check_csw(mock_msc_bulk_csw_t *csw, uint32_t tag_expect);
|
/hal_espressif-3.6.0/examples/peripherals/usb/host/msc/components/msc/src/ |
D | msc_scsi_bot.c | 238 static esp_err_t check_csw(msc_csw_t *csw, uint32_t tag) in check_csw() argument 240 bool csw_ok = csw->signature == CSW_SIGNATURE && csw->tag == tag && in check_csw() 241 csw->dataResidue == 0 && csw->status == 0; in check_csw() 244 ESP_LOGD(TAG, "CSW failed: status %d", csw->status); in check_csw() 286 msc_csw_t csw; in bot_execute_command() local 295 esp_err_t err = msc_bulk_transfer(device, (uint8_t *)&csw, sizeof(msc_csw_t), MSC_EP_IN); in bot_execute_command() 300 err = msc_bulk_transfer(device, (uint8_t *)&csw, sizeof(msc_csw_t), MSC_EP_IN); in bot_execute_command() 310 return check_csw(&csw, cbw->tag); in bot_execute_command()
|