📄 mx27_uart.h
字号:
#define UART_USR1_TRDY_WID 1
#define UART_USR1_RTSS_WID 1
#define UART_USR1_PARITYERR_WID 1
#define UART_USR2_RDR_WID 1
#define UART_USR2_ORE_WID 1
#define UART_USR2_BRCD_WID 1
#define UART_USR2_TXDC_WID 1
#define UART_USR2_RTSF_WID 1
#define UART_USR2_DCDIN_WID 1
#define UART_USR2_DCDDELT_WID 1
#define UART_USR2_WAKE_WID 1
#define UART_USR2_IRINT_WID 1
#define UART_USR2_RIIN_WID 1
#define UART_USR2_RIDELT_WID 1
#define UART_USR2_ACST_WID 1
#define UART_USR2_IDLE_WID 1
#define UART_USR2_DTRF_WID 1
#define UART_USR2_TXFE_WID 1
#define UART_USR2_ADET_WID 1
#define UART_UESC_ESC_CHAR_WID 8
#define UART_UTIM_TIM_WID 12
#define UART_UBIR_INC_WID 16
#define UART_UBMR_MOD_WID 16
#define UART_UBRC_BCNT_WID 16
#define UART_ONEMS_ONEMS_WID 16
#define UART_UTS_SOFTRST_WID 1
#define UART_UTS_RXFULL_WID 1
#define UART_UTS_TXFULL_WID 1
#define UART_UTS_RXEMPTY_WID 1
#define UART_UTS_TXEMPTY_WID 1
#define UART_UTS_RXDBG_WID 1
#define UART_UTS_LOOPIR_WID 1
#define UART_UTS_DBGEN_WID 1
#define UART_UTS_LOOP_WID 1
#define UART_UTS_FRCPERR_WID 1
//------------------------------------------------------------------------------
// REGISTER BIT WRITE VALUES
//------------------------------------------------------------------------------
// URXD
#define UART_URXD_PRERR_NOERROR 0
#define UART_URXD_PRERR_ERROR 1
#define UART_URXD_BRK_NOBREAK 0
#define UART_URXD_BRK_BREAK 1
#define UART_URXD_FRMERR_NOERROR 0
#define UART_URXD_FRMERR_ERROR 1
#define UART_URXD_OVRRUN_NOOVRRUN 0
#define UART_URXD_OVRRUN_OVRRUN 1
#define UART_URXD_ERR_NOERROR 0
#define UART_URXD_ERR_ERROR 1
// UCR1
#define UART_UCR1_UARTEN_DISABLE 0
#define UART_UCR1_UARTEN_ENABLE 1
#define UART_UCR1_DOZE_ENABLE 0
#define UART_UCR1_DOZE_DISABLE 1
#define UART_UCR1_TXDMAEN_DISABLE 0
#define UART_UCR1_TXDMAEN_ENABLE 1
#define UART_UCR1_SNDBRK_NOBREAK 0
#define UART_UCR1_SNDBRK_BREAK 1
#define UART_UCR1_RTSDEN_DISABLE 0
#define UART_UCR1_RTSDEN_ENABLE 1
#define UART_UCR1_TXMPTYEN_DISABLE 0
#define UART_UCR1_TXMPTYEN_ENABLE 1
#define UART_UCR1_TXMPTYEN_DISABLE 0
#define UART_UCR1_TXMPTYEN_ENABLE 1
#define UART_UCR1_IREN_DISABLE 0
#define UART_UCR1_IREN_ENABLE 1
#define UART_UCR1_RXDMAEN_DISABLE 0
#define UART_UCR1_RXDMAEN_ENABLE 1
#define UART_UCR1_RRDYEN_DISABLE 0
#define UART_UCR1_RRDYEN_ENABLE 1
#define UART_UCR1_ICD_4FRAMES 0
#define UART_UCR1_ICD_8FRAMES 1
#define UART_UCR1_ICD_16FRAMES 2
#define UART_UCR1_ICD_32FRAMES 3
#define UART_UCR1_IDEN_DISABLE 0
#define UART_UCR1_IDEN_ENABLE 1
#define UART_UCR1_TRDYEN_DISABLE 0
#define UART_UCR1_TRDYEN_ENABLE 1
#define UART_UCR1_ADBR_DISABLE 0
#define UART_UCR1_ADBR_ENABLE 1
#define UART_UCR1_ADEN_DISABLE 0
#define UART_UCR1_ADEN_ENABLE 1
// UCR2
#define UART_UCR2_SRST_RESET 0
#define UART_UCR2_SRST_NORESET 1
#define UART_UCR2_RXEN_DISABLE 0
#define UART_UCR2_RXEN_ENABLE 1
#define UART_UCR2_TXEN_DISABLE 0
#define UART_UCR2_TXEN_ENABLE 1
#define UART_UCR2_ATEN_DISABLE 0
#define UART_UCR2_ATEN_ENABLE 1
#define UART_UCR2_RTSEN_DISABLE 0
#define UART_UCR2_RTSEN_ENABLE 1
#define UART_UCR2_WS_7BIT 0
#define UART_UCR2_WS_8BIT 1
#define UART_UCR2_STPB_1STOP 0
#define UART_UCR2_STPB_2STOP 1
#define UART_UCR2_PROE_EVEN 0
#define UART_UCR2_PROE_ODD 1
#define UART_UCR2_PREN_DISBLE 0
#define UART_UCR2_PREN_ENABLE 1
#define UART_UCR2_RTEC_RISEDGE 0
#define UART_UCR2_RTEC_FALLEDGE 1
#define UART_UCR2_RTEC_ANYEDGE 2
#define UART_UCR2_ESCEN_DISABLE 0
#define UART_UCR2_ESCEN_ENABLE 1
#define UART_UCR2_CTS_HIGH 0
#define UART_UCR2_CTS_LOW 1
#define UART_UCR2_CTSC_BITCTRL 0
#define UART_UCR2_CTSC_RXCTRL 1
#define UART_UCR2_IRTS_USERTS 0
#define UART_UCR2_IRTS_IGNORERTS 1
#define UART_UCR2_ESCI_DISABLE 0
#define UART_UCR2_ESCI_ENABLE 1
// UCR3
#define UART_UCR3_ACIEN_DISABLE 0
#define UART_UCR3_ACIEN_ENABLE 1
#define UART_UCR3_INVT_ACTIVELOW 0
#define UART_UCR3_INVT_ACTIVEHIGH 1
#define UART_UCR3_RXDMUXSEL_NOTMUX 0
#define UART_UCR3_RXDMUXSEL_MUX 1
#define UART_UCR3_AWAKEN_DISABLE 0
#define UART_UCR3_AWAKEN_ENABLE 1
#define UART_UCR3_AIRINTEN_DISABLE 0
#define UART_UCR3_AIRINTEN_ENABLE 1
#define UART_UCR3_RXDSEN_DISABLE 0
#define UART_UCR3_RXDSEN_ENABLE 1
#define UART_UCR3_ADNIMP_NEW 0
#define UART_UCR3_ADNIMP_OLD 1
#define UART_UCR3_FRAERREN_DISABLE 0
#define UART_UCR3_FRAERREN_ENABLE 1
#define UART_UCR3_PARERREN_DISABLE 0
#define UART_UCR3_PARERREN_ENABLE 1
// UCR4
#define UART_UCR4_DREN_DISABLE 0
#define UART_UCR4_DREN_ENABLE 1
#define UART_UCR4_OREN_DISABLE 0
#define UART_UCR4_OREN_ENABLE 1
#define UART_UCR4_BKEN_DISABLE 0
#define UART_UCR4_BKEN_ENABLE 1
#define UART_UCR4_TCEN_DISABLE 0
#define UART_UCR4_TCEN_ENABLE 1
#define UART_UCR4_LPBYP_DISABLE 0
#define UART_UCR4_LPBYP_ENABLE 1
#define UART_UCR4_IRSC_SAMPCLK 0
#define UART_UCR4_IRSC_REFCLK 1
#define UART_UCR4_WKEN_DISABLE 0
#define UART_UCR4_WKEN_ENABLE 1
#define UART_UCR4_ENIRI_DISABLE 0
#define UART_UCR4_ENIRI_ENABLE 1
#define UART_UCR4_INVR_ACTIVELOW 0
#define UART_UCR4_INVR_ACTIVEHIGH 1
// UFCR
#define UART_UFCR_DCEDTE_DCE 0
#define UART_UFCR_DCEDTE_DTE 1
#define UART_UFCR_RFDIV_DIV6 0
#define UART_UFCR_RFDIV_DIV5 1
#define UART_UFCR_RFDIV_DIV4 2
#define UART_UFCR_RFDIV_DIV3 3
#define UART_UFCR_RFDIV_DIV2 4
#define UART_UFCR_RFDIV_DIV1 5
#define UART_UFCR_RFDIV_DIV7 6
// USR1
#define UART_USR1_AWAKE_SET 1
#define UART_USR1_AIRINT_SET 1
#define UART_USR1_RXDS_SET 1
#define UART_USR1_DTRD_SET 1
#define UART_USR1_AGTIM_SET 1
#define UART_USR1_RRDY_SET 1
#define UART_USR1_FRAMERR_SET 1
#define UART_USR1_ESCF_SET 1
#define UART_USR1_RTSD_SET 1
#define UART_USR1_TRDY_SET 1
#define UART_USR1_RTSS_SET 1
#define UART_USR1_PARITYERR_SET 1
// USR2
#define UART_USR2_RDR_SET 1
#define UART_USR2_ORE_SET 1
#define UART_USR2_BRCD_SET 1
#define UART_USR2_TXDC_SET 1
#define UART_USR2_RTSF_SET 1
#define UART_USR2_DCDIN_SET 1
#define UART_USR2_DCDDELT_SET 1
#define UART_USR2_WAKE_SET 1
#define UART_USR2_IRINT_SET 1
#define UART_USR2_RIIN_SET 1
#define UART_USR2_RIDELT_SET 1
#define UART_USR2_ACST_SET 1
#define UART_USR2_IDLE_SET 1
#define UART_USR2_DTRF_SET 1
#define UART_USR2_TXFE_SET 1
#define UART_USR2_ADET_SET 1
// UTS
#define UART_UTS_RXDBG_NOINCREMENT 0
#define UART_UTS_RXDBG_INCREMENT 1
#define UART_UTS_LOOPIR_NOLOOP 0
#define UART_UTS_LOOPIR_LOOP 1
#define UART_UTS_DBGEN_DEBUG 0
#define UART_UTS_DBGEN_NODEBUG 1
#define UART_UTS_LOOP_NOLOOP 0
#define UART_UTS_LOOP_LOOP 1
#define UART_UTS_FRCPERR_NOERROR 0
#define UART_UTS_FRCPERR_ERROR 1
#ifdef __cplusplus
}
#endif
#endif // __MX27_UART_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -