libsstvenc
Asynchronous Analogue SSTV encoder
|
Macros | |
#define | SSTVENC_SEQ_STATE_INIT (0x00) |
#define | SSTVENC_SEQ_STATE_BEGIN_SILENCE (0x10) |
#define | SSTVENC_SEQ_STATE_GEN_SILENCE (0x17) |
#define | SSTVENC_SEQ_STATE_GEN_INF_SILENCE (0x18) |
#define | SSTVENC_SEQ_STATE_END_SILENCE (0x1f) |
#define | SSTVENC_SEQ_STATE_BEGIN_TONE (0x20) |
#define | SSTVENC_SEQ_STATE_GEN_TONE (0x27) |
#define | SSTVENC_SEQ_STATE_GEN_INF_TONE (0x28) |
#define | SSTVENC_SEQ_STATE_END_TONE (0x2f) |
#define | SSTVENC_SEQ_STATE_BEGIN_CW (0x30) |
#define | SSTVENC_SEQ_STATE_GEN_CW (0x37) |
#define | SSTVENC_SEQ_STATE_END_CW (0x3f) |
#define | SSTVENC_SEQ_STATE_BEGIN_IMAGE (0x40) |
#define | SSTVENC_SEQ_STATE_GEN_IMAGE (0x47) |
#define | SSTVENC_SEQ_STATE_END_IMAGE (0x4f) |
#define | SSTVENC_SEQ_STATE_DONE (0xff) |
The sequencer state records information on which data structure is currently active and thus provides a hint to the state machine as to when a re-initialisation is necessary.
#define SSTVENC_SEQ_STATE_BEGIN_CW (0x30) |
Sequencer is about to begin emitting CW text. The CW state machine will be initialised with the new configuration. Follow-on state is SSTVENC_SEQ_STATE_GEN_CW.
Definition at line 122 of file sequence.h.
Referenced by sstvenc_sequencer_begin_cw(), and sstvenc_sequencer_compute().
#define SSTVENC_SEQ_STATE_BEGIN_IMAGE (0x40) |
Sequencer is about to begin emitting a SSTV image. The SSTV modulator state machine will be configured with the framebuffer and mode specified. Follow-on state is SSTVENC_SEQ_STATE_GEN_IMAGE.
Definition at line 147 of file sequence.h.
Referenced by sstvenc_sequencer_begin_image(), and sstvenc_sequencer_compute().
#define SSTVENC_SEQ_STATE_BEGIN_SILENCE (0x10) |
Sequencer is about to begin emitting silence. A duration in samples will be computed and that amount counted out. Next valid state is SSTVENC_SEQ_STATE_GEN_SILENCE if the duration is finite, otherwise we go to state SSTVENC_SEQ_STATE_GEN_INF_SILENCE.
Definition at line 53 of file sequence.h.
Referenced by sstvenc_sequencer_begin_silence(), sstvenc_sequencer_begin_tone(), and sstvenc_sequencer_compute().
#define SSTVENC_SEQ_STATE_BEGIN_TONE (0x20) |
Sequencer is about to begin emitting tones. Initialise the oscillator and pulse shaper. The pulse shaper will drive the oscillator's amplitude and the oscillator's output will be the sequencer output. Follow-on state is SSTVENC_SEQ_STATE_GEN_TONE or SSTVENC_SEQ_STATE_GEN_INF_TONE.
Definition at line 87 of file sequence.h.
Referenced by sstvenc_sequencer_compute().
#define SSTVENC_SEQ_STATE_DONE (0xff) |
The sequence is complete. No more samples are provided.
Definition at line 170 of file sequence.h.
Referenced by sstvenc_sequencer_compute(), sstvenc_sequencer_end(), and sstvenc_sequencer_fill_buffer().
#define SSTVENC_SEQ_STATE_END_CW (0x3f) |
Sequencer has finished sending CW. Possible follow-on states:
Definition at line 140 of file sequence.h.
Referenced by sstvenc_sequencer_compute().
#define SSTVENC_SEQ_STATE_END_IMAGE (0x4f) |
SSTV transmission has completed. Follow-on states:
Definition at line 165 of file sequence.h.
Referenced by sstvenc_sequencer_compute().
#define SSTVENC_SEQ_STATE_END_SILENCE (0x1f) |
Sequencer has finished emitting silence, the counter is now zero. Possible follow-on states:
Definition at line 79 of file sequence.h.
Referenced by sstvenc_sequencer_advance(), and sstvenc_sequencer_compute().
#define SSTVENC_SEQ_STATE_END_TONE (0x2f) |
Sequencer has finished emitting the tone. Possible follow-on states:
Definition at line 115 of file sequence.h.
Referenced by sstvenc_sequencer_begin_tone(), and sstvenc_sequencer_compute().
#define SSTVENC_SEQ_STATE_GEN_CW (0x37) |
Sequencer is emitting CW text. We exit this state when the CW state machine reaches the "DONE" state, at which point we transition to the SSTVENC_SEQ_STATE_END_CW state.
Definition at line 129 of file sequence.h.
Referenced by sstvenc_sequencer_begin_cw(), and sstvenc_sequencer_compute().
#define SSTVENC_SEQ_STATE_GEN_IMAGE (0x47) |
Sequencer is emitting the SSTV image. We remain in this state until the SSTV modulator has completed its transmission, at which point we transition to the SSTVENC_SEQ_STATE_END_IMAGE state.
Definition at line 154 of file sequence.h.
Referenced by sstvenc_sequencer_begin_image(), and sstvenc_sequencer_compute().
#define SSTVENC_SEQ_STATE_GEN_INF_SILENCE (0x18) |
Sequencer is emitting silence for an indefinite time period. Zero samples are being transmitted at this point. We exit this state when an external signal triggers us to move to state SSTVENC_SEQ_STATE_END_SILENCE.
Definition at line 67 of file sequence.h.
Referenced by sstvenc_sequencer_advance(), sstvenc_sequencer_begin_silence(), and sstvenc_sequencer_compute().
#define SSTVENC_SEQ_STATE_GEN_INF_TONE (0x28) |
Sequencer is emitting a tone for an indefinite period of time. Samples should be read from the oscillator output which will be modulated by the pulse shaper. We exit this state when the pulse shaper state machine reaches the "DONE" state, at which point we enter state SSTVENC_SEQ_STATE_END_TONE.
Definition at line 104 of file sequence.h.
Referenced by sstvenc_sequencer_advance(), sstvenc_sequencer_begin_tone(), and sstvenc_sequencer_compute().
#define SSTVENC_SEQ_STATE_GEN_SILENCE (0x17) |
Sequencer is emitting silence. Zero samples are being transmitted at this point. We exit this state when the state counter reaches zero, at which point we enter state SSTVENC_SEQ_STATE_END_SILENCE.
Definition at line 60 of file sequence.h.
Referenced by sstvenc_sequencer_begin_silence(), and sstvenc_sequencer_compute().
#define SSTVENC_SEQ_STATE_GEN_TONE (0x27) |
Sequencer is emitting a tone. Samples should be read from the oscillator output which will be modulated by the pulse shaper. We exit this state when the pulse shaper state machine reaches the "DONE" state, at which point we enter state SSTVENC_SEQ_STATE_END_TONE.
Definition at line 95 of file sequence.h.
Referenced by sstvenc_sequencer_begin_tone(), and sstvenc_sequencer_compute().
#define SSTVENC_SEQ_STATE_INIT (0x00) |
Sequencer is in the initial state. No meaningful audio samples will be generated at this point. The first step of the sequence is loaded and the state machine should enter one of these states:
Definition at line 45 of file sequence.h.
Referenced by sstvenc_sequencer_compute(), and sstvenc_sequencer_reset().