📄 gpsserialcontrol.h
字号:
#ifndef GPS_SERIAL_CONTROL_H__ // {#define GPS_SERIAL_CONTROL_H__/******************************************************************************* * * IndoorGPS Serial Port Definitions * * Refer to chapter 6.4 of the GL-20000 or Marlin; or 2 of the * HammerHead specifications. * ******************************************************************************/// Pass these values into the GL chip to tell it which "virtual UART"// register (data/status/command) and operation (read/write) to use:#define GL_SPI_WRITE_DATA ( BIT(6))#define GL_SPI_READ_DATA (BIT(7) + BIT(6))#define GL_SPI_WRITE_CONTROL ( 0 )#define GL_SPI_READ_STATUS (BIT(7) ) // Never used// Write these bits to the Control Register:#define GL_CR_TMASK BIT(4) // MASK of Transmitter Not Empty Interrupt Mask#define GL_CR_RMASK BIT(5) // MASK of Receiver Empty Interrupt Mask#define GL_CR_TERR BIT(6) // MASK of Transmitter underrun error#define GL_CR_RERR BIT(7) // MASK of Receiver overrun error (software must clear)// Read these bits from the Status Register:#define GL_SR_TCNT (BIT(5)-1) // MASK of Transmitter FIFO byte count // (0~18 bytes ready to be read)#define GL_SR_REMPTY BIT(5) // MASK of Receiver FIFO empty (ready to // be filled with up to 18 bytes)#define GL_SR_TERR BIT(6) // MASK of Transmitter underrun error#define GL_SR_RERR BIT(7) // MASK of Receiver overrun error // (software must clear)#define GL_RX_FIFO_DEPTH 18 // Receive FIFO depth of GPS chips.#endif // } GPS_SERIAL_CONTROL_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -