📄 etr232i.h
字号:
#if !defined( _ETR232I_H )
#define _ETR232I_H
// Valid bits: Dir[0], Dir[1], ... Dir[7]
// Dir[i] = 0: output
// Dir[i] = 1: input (default setting)
unsigned char GPIODirCfg( unsigned char Dir );
// Valid bits: Value[0], Value[1], ... Value[7]
void GPIOWrite( unsigned char Value );
// return input status
unsigned char GPIORead( );
// BitIdx = 0, 1, ...7
unsigned int GPIOSetBit( int BitIdx, int L10 );
void GPRS_STB( int L10 ); // L10 = 0, 1
unsigned int GPRS_PWR( ); // return = 0, 1
void GPRS_AUX( int L10 ); // L10 = 0, 1
void NB_Delay( unsigned int milliseconds );
int SetTMR1( unsigned Divider );
void SysReboot( );
////////////////////////////////////////////////////////
// watchdog duration time = 2exp(ExpNum)/96.0MHz
// ExpNum = 0: disable WDT
// ExpNum = 10, 20, 21, 22, 23, 24, 25, 26: enable WDT
////////////////////////////////////////////////////////
int SetWDT( int ExpNum );
int ReloadWDT( );
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -