Contiki 2.6

scsi_decoder.c File Reference

This file is the scsi decoder. More...

#include "config.h"
#include "storage/scsi_decoder.h"
#include "conf_usb.h"
#include "usb_drv.h"
#include "storage/ctrl_status.h"
#include "storage/ctrl_access.h"

Go to the source code of this file.

Functions

Bool scsi_decode_command (void)
 SCSI decoder function.
Bool sbc_request_sense (void)
 This function manages the SCSI REQUEST SENSE command (0x03)
Bool sbc_inquiry (void)
 This function manages the SCSI INQUIRY command (0x12)
Bool sbc_mode_sense (Bool b_sense_10)
 This function manages the SCSI MODE SENSE command (0x1A for sense 6 and 0x5A for sense 10)
Bool sbc_prevent_allow_medium_removal (void)
 This function manages the SCSI PREVENT ALLOW MEDIUM REMOVAL command (0x1E)
void sbc_lun_status_is_good (void)
 This fonction send the UFI status GOOD.
void sbc_lun_status_is_not_present (void)
 This fonction send the UFI status "lun not present".
void sbc_lun_status_is_busy_or_change (void)
 This fonction send the UFI status busy and change.
void sbc_lun_status_is_fail (void)
 This fonction send the UFI status FAIL.
void sbc_lun_status_is_protected (void)
 This fonction send the UFI status FAIL because write protection.

Detailed Description

This file is the scsi decoder.

*******************************************************

Definition in file scsi_decoder.c.