/* Loads the last error code in the error list.  */
void scsi_sensecode(uint8_t sKey, uint8_t ASC)
/* Loads the last error code in the error list.  */
void scsi_sensecode(uint8_t sKey, uint8_t ASC)
{
    SCSI_Sense[SCSI_Sense_Tail].Skey  = (char)sKey;
    SCSI_Sense[SCSI_Sense_Tail].w.ASC = (uint32_t)ASC << 8U;
    SCSI_Sense_Tail++;
    if (SCSI_Sense_Tail == SENSE_LIST_DEEPTH) {
        SCSI_Sense_Tail = 0U;
    }
}