public interface TransmittingConnector
| Modifier and Type | Method and Description |
|---|---|
int |
getAcceptableProtocolsMask()
Get the bitmask of AX.25 protocols supported by this port.
|
java.lang.String |
getCallsign()
For ports that have an AX.25 address (callsign), report the callsign
associated with the port (used for transmissions initiated through this port
instead of digipeated).
|
int |
getCapabilities()
Specify what capabilities a port of this type has.
|
Connector.PortStats |
getStats()
Get the current statistics for this PortConnector instance.
|
boolean |
hasCapability(int capMask)
Test if this Connector has the specified capability or capabilities.
|
boolean |
isOpen()
Reports whether this Connector has an open connection to its port.
|
void |
sendFrame(AX25Frame frame)
Transmit an AX.25 frame through this port.
|
boolean isOpen()
Connector.PortStats getStats()
void sendFrame(AX25Frame frame) throws java.io.IOException
frame - AX25Frame object to transmitjava.io.IOException - if transmit failed for any reason other than a receive-only portjava.lang.String getCallsign()
int getCapabilities()
Connector.CAP_ADSB,
Connector.CAP_RCV_PACKET_DATA,
Connector.CAP_XMT_PACKET_DATA,
Connector.CAP_FAST_RF_9600,
Connector.CAP_FULL_DUPLEX,
Connector.CAP_GPS_DATA,
Connector.CAP_HF,
Connector.CAP_IGATE,
Connector.CAP_KENWOOD_CMD,
Connector.CAP_OPENTRAC,
Connector.CAP_RAW_AX25,
Connector.CAP_RF,
Connector.CAP_WAYPOINT_SENDER,
Connector.CAP_WEATHER,
Connector.CAP_SUBCLIENTboolean hasCapability(int capMask)
capMask - bitmask of capabilities to be tested forConnector.CAP_ADSB,
Connector.CAP_RCV_PACKET_DATA,
Connector.CAP_XMT_PACKET_DATA,
Connector.CAP_FAST_RF_9600,
Connector.CAP_FULL_DUPLEX,
Connector.CAP_GPS_DATA,
Connector.CAP_HF,
Connector.CAP_IGATE,
Connector.CAP_KENWOOD_CMD,
Connector.CAP_OPENTRAC,
Connector.CAP_RAW_AX25,
Connector.CAP_RF,
Connector.CAP_WAYPOINT_SENDER,
Connector.CAP_WEATHER,
Connector.CAP_SUBCLIENTint getAcceptableProtocolsMask()
Enum.ordinal() value of
the ProtocolFamily enum.