C# 클래스 ApexLumia.RTTY

파일 보기 프로젝트 열기: ApexHAB/apex-lumia 1 사용 예제들

공개 메소드들

메소드 설명
RTTY ( double frequency = 3000, int samplerate = 42000, int baud = 300, int shift = 425, double low = 0.1, double high = 1.0, int stopbits = 2 ) : System

Constructor: Setup RTTY and Sound settings.

Start ( ) : void

Start the sine wave playing.

Stop ( ) : void

Stop the sine wave from playing.

transmitSentence ( string sentence ) : bool

Gets a sentence ready to be transmitted next. If this is called again whilst a sentence is already queued, the queued sentence is overwritten with the new one.

비공개 메소드들

메소드 설명
BufferNeeded ( object sender, EventArgs e ) : void

Event Handler: Called when a new buffer is needed. Calls updateBuffer() on a new thread.

convertToBits ( string toConvert ) : List

Convert a string to a list of bits (booleans) incl. start bits and stop bits.

updateBuffer ( object o ) : void

Fills the next buffer with a sine wave, amplitude modulated with the data to be transmitted.

메소드 상세

RTTY() 공개 메소드

Constructor: Setup RTTY and Sound settings.
public RTTY ( double frequency = 3000, int samplerate = 42000, int baud = 300, int shift = 425, double low = 0.1, double high = 1.0, int stopbits = 2 ) : System
frequency double The frequency of the sine wave.
samplerate int The sample rate of the sound.
baud int The baud rate of the data transmission.
shift int The eventual radio frequency shift in Hz. (Not used)
low double The amplitude for a 'low' bit. 0.0->1.0
high double The amplitude for a 'high' bit. 0.0->1.0
stopbits int The number of stop bits for each byte.
리턴 System

Start() 공개 메소드

Start the sine wave playing.
public Start ( ) : void
리턴 void

Stop() 공개 메소드

Stop the sine wave from playing.
public Stop ( ) : void
리턴 void

transmitSentence() 공개 메소드

Gets a sentence ready to be transmitted next. If this is called again whilst a sentence is already queued, the queued sentence is overwritten with the new one.
public transmitSentence ( string sentence ) : bool
sentence string The string to be transmitted.
리턴 bool