public class XmitEncoding
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
APRS encoding is as a letter code for the type followed by a three-digit zero-prefixed number for the frequency (dropping fractions) or digital code number. The letter code is uppercase for wideband FM deviation or lowercase for narrowband. The codes are:
| T | analog tone transmission from mobile to repeater only |
| C | analog tone transmission in both directions (does not support split tones) |
| D | DCS code number |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String[] |
CTCSS_FREQS
The standard TCS/CTCSS frequencies used for analog repeaters, in ascending frequency order.
|
static java.lang.String[] |
DCS_CODES
The standard DCS (CDCSS) code numbers, in ascending number order.
|
boolean |
isDigital |
boolean |
isFullDuplex |
boolean |
isInvalid |
boolean |
isNarrowband |
short |
toneCodeIndex |
| Constructor and Description |
|---|
XmitEncoding() |
XmitEncoding(boolean isDigital,
boolean isFullDuplex,
short toneCodeIndex,
boolean isNarrowBand) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Creates and returns a copy of this object.
|
void |
copyInto(XmitEncoding other) |
static XmitEncoding |
decodeString(java.lang.String s) |
java.lang.String |
encodedString() |
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.
|
int |
hashCode()
Returns a hash code value for the object.
|
static boolean |
isValidLookingSubTone(byte[] body,
int offset)
Test if a message body has a valid-looking subtone encoding for an APRS message.
|
java.lang.String |
toString()
Returns a string representation of the object.
|
public boolean isNarrowband
public short toneCodeIndex
public boolean isDigital
public boolean isFullDuplex
public boolean isInvalid
public static final java.lang.String[] CTCSS_FREQS
public static final java.lang.String[] DCS_CODES
public XmitEncoding()
public XmitEncoding(boolean isDigital,
boolean isFullDuplex,
short toneCodeIndex,
boolean isNarrowBand)
public java.lang.String encodedString()
public static XmitEncoding decodeString(java.lang.String s)
public void copyInto(XmitEncoding other)
public static boolean isValidLookingSubTone(byte[] body,
int offset)
body - byte array containing APRS message bodyoffset - index in body array where subtone encoding should be presentpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the reference object with which to compare.true if this object is the same as the obj
argument; false otherwise.hashCode(),
Hashtablepublic int hashCode()
java.util.Hashtable.hashCode in class java.lang.ObjectObject.equals(Object),
Hashtablepublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object clone()
clone in class java.lang.Object