mirror of
https://github.com/fhgwright/SCSI2SD.git
synced 2024-06-09 23:29:29 +00:00
60 lines
1.8 KiB
C
Executable File
60 lines
1.8 KiB
C
Executable File
/*******************************************************************************
|
|
* File Name: SCSI_Glitch_Ctl.h
|
|
* Version 1.80
|
|
*
|
|
* Description:
|
|
* This file containts Control Register function prototypes and register defines
|
|
*
|
|
* Note:
|
|
*
|
|
********************************************************************************
|
|
* Copyright 2008-2015, Cypress Semiconductor Corporation. All rights reserved.
|
|
* You may use this file only in accordance with the license, terms, conditions,
|
|
* disclaimers, and limitations in the end user license agreement accompanying
|
|
* the software package with which this file was provided.
|
|
*******************************************************************************/
|
|
|
|
#if !defined(CY_CONTROL_REG_SCSI_Glitch_Ctl_H) /* CY_CONTROL_REG_SCSI_Glitch_Ctl_H */
|
|
#define CY_CONTROL_REG_SCSI_Glitch_Ctl_H
|
|
|
|
#include "cytypes.h"
|
|
|
|
|
|
/***************************************
|
|
* Data Struct Definitions
|
|
***************************************/
|
|
|
|
/* Sleep Mode API Support */
|
|
typedef struct
|
|
{
|
|
uint8 controlState;
|
|
|
|
} SCSI_Glitch_Ctl_BACKUP_STRUCT;
|
|
|
|
|
|
/***************************************
|
|
* Function Prototypes
|
|
***************************************/
|
|
|
|
void SCSI_Glitch_Ctl_Write(uint8 control) ;
|
|
uint8 SCSI_Glitch_Ctl_Read(void) ;
|
|
|
|
void SCSI_Glitch_Ctl_SaveConfig(void) ;
|
|
void SCSI_Glitch_Ctl_RestoreConfig(void) ;
|
|
void SCSI_Glitch_Ctl_Sleep(void) ;
|
|
void SCSI_Glitch_Ctl_Wakeup(void) ;
|
|
|
|
|
|
/***************************************
|
|
* Registers
|
|
***************************************/
|
|
|
|
/* Control Register */
|
|
#define SCSI_Glitch_Ctl_Control (* (reg8 *) SCSI_Glitch_Ctl_Sync_ctrl_reg__CONTROL_REG )
|
|
#define SCSI_Glitch_Ctl_Control_PTR ( (reg8 *) SCSI_Glitch_Ctl_Sync_ctrl_reg__CONTROL_REG )
|
|
|
|
#endif /* End CY_CONTROL_REG_SCSI_Glitch_Ctl_H */
|
|
|
|
|
|
/* [] END OF FILE */
|