?? stkreg_u.h
字號:
/* File: STKXREG.H */
/****************************************************************************
*
* STK16XSW.STKREG
* ===============
*
* Routines for the Acces to the stepper motor and the LCD-Display
*
* TQ-Systems GmbH
* ---------------
* Customer: TQ-Components
* Project : STK16XSW
* Tools : uVision 2.05
*
*
* Rev: Date: Name: Modification:
* ----+---------+----------------+------------------------------------------
* 100 05.02.01 A. Lichte Begin
*****************************************************************************/
#include "header.h"
/*==========================================================================*
* extern available definitions (#DEFINE):
*===========================================================================*/
#define STKREG_BASEADDR 0xA008
#define STKREG_BUSCON 0x040D /* 8 Bit; 2 WS; Tristate + R/W-Delay */
#define STKREG_ADDR 0xA00000
#define STKREG_DATA_ADDR 0xA20000
#define STKREG_CTRL_ADDR 0xA10000
#define LCD_R_W 1
#define LCD_RS 2
#define LCD_EN 4
#define SMT_EN 8
#define SMT_LINES 0xF0
/*==========================================================================*
* extern available type definitions (TYPEDEF):
*===========================================================================*/
/*==========================================================================*
* extern available constants (CONST):
*===========================================================================*/
/*==========================================================================*
* globale extern available variables (EXTERN):
*===========================================================================*/
/*==========================================================================*
* extern available functions:
*===========================================================================*/
/*-------------------------------------------------------------------------*
* void stkreg_init(void)
*--------------------------------------------------------------------------*
* FT: Initialize databus for CS4
* EP: -
* RW: -
* GP: stkreg_sreg: Backgrond Register for the STKREG
*--------------------------------------------------------------------------*/
void stkreg_init(void);
/*-------------------------------------------------------------------------*
* void stkreg_sethigh(BYTE change, BYTE value)
*--------------------------------------------------------------------------*
* FT: Change Bits of the higher Port of the STKREG
* EP: change: Bitmask: Bits whitch become changed
* value : New value of the changed Bits
* RW: -
* GP: stkreg_sreg: Backgrond Register for the STKREG
*--------------------------------------------------------------------------*/
void stkreg_sethigh(BYTE change, BYTE value);
/*-------------------------------------------------------------------------*
* void stkreg_writelow(BYTE value)
*--------------------------------------------------------------------------*
* FT: Set the Lowbyte of the STKREG
* EP: value : New value of the Lowbyte of the STKREG
* RW: -
* GP: -
*--------------------------------------------------------------------------*/
void stkreg_writelow(BYTE value);
/*-------------------------------------------------------------------------*
* BYTE stkreg_readlow(void)
*--------------------------------------------------------------------------*
* FT: Read the Lowbyte of the STKREG
* EP: value : New value of the Lowbyte of the STKREG
* RW: -
* GP: -
*--------------------------------------------------------------------------*/
BYTE stkreg_readlow(void);
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -