u8 setClocking, // host requests baud rate be set
baudLo, // host does baud divisor calculation
baudHi, // host does baud divisor calculation
setLcr, // host requests lcr be set
lcr, // use PARITY, STOPBITS, DATABITS below
setRxMode, // set receive mode
rxMode, // RXMODE_DMA or RXMODE_BYHAND
setTxMode, // set transmit mode
txMode, // TXMODE_DMA or TXMODE_BYHAND
setTxFlowControl, // host requests tx flow control be set
txFlowControl , // use TX_FLOW... bits below
setRxFlowControl, // host requests rx flow control be set
rxFlowControl, // use RX_FLOW... bits below
sendXoff, // host requests XOFF transmitted immediately
sendXon, // host requests XON char transmitted
xonChar, // specified in current character format
xoffChar, // specified in current character format
sendChar, // host requests char transmitted immediately
txChar, // character to send
setRts, // host requests RTS output be set
rts, // 1=on, 0=off
setDtr, // host requests DTR output be set
dtr; // 1=on, 0=off
u8 rxForwardingLength, // forward when this number of chars available
rxForwardingTimeout, // (1-31 in ms)
txAckSetting; // 0=don't ack, 1=normal, 2-255 TBD... /* 3.Firmwarestateswhichcauseactionsiftheychange andmustbespecifiedcorrectlyineveryhostmessage.
*/
u8 rxFlush, // toss inbound data
rxForward, // forward all inbound data, NOW (as if fwdLen==1)
cancelRxXoff, // cancel any receive XOFF state (_txXoff)
returnStatus; // return current status NOW
};
// defines for bits in lcr #define USA_DATABITS_5 0x00 #define USA_DATABITS_6 0x01 #define USA_DATABITS_7 0x02 #define USA_DATABITS_8 0x03 #define STOPBITS_5678_1 0x00 // 1 stop bit for all byte sizes #define STOPBITS_5_1p5 0x04 // 1.5 stop bits for 5-bit byte #define STOPBITS_678_2 0x04 // 2 stop bits for 6-8 bit byte #define USA_PARITY_NONE 0x00 #define USA_PARITY_ODD 0x08 #define USA_PARITY_EVEN 0x18 #define PARITY_MARK_1 0x28 // force parity MARK #define PARITY_SPACE_0 0x38 // force parity SPACE
// all things called "StatusMessage" are sent on the status endpoint
struct keyspan_usa90_portStatusMessage
{
u8 msr, // reports the actual MSR register
cts, // reports CTS pin
dcd, // reports DCD pin
dsr, // reports DSR pin
ri, // reports RI pin
_txXoff, // port is in XOFF state (we received XOFF)
rxBreak, // reports break state
rxOverrun, // count of overrun errors (since last reported)
rxParity, // count of parity errors (since last reported)
rxFrame, // count of frame errors (since last reported)
portState, // PORTSTATE_xxx bits (useful for debugging)
messageAck, // message acknowledgement
charAck, // character acknowledgement
controlResponse; // (value = returnStatus) a control message has been processed
};
// bits in RX data message when STAT byte is included
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.