hw_afsk.h File Reference

AFSK modem hardware-specific definitions. More...

#include "cfg/cfg_arch.h"

Go to the source code of this file.

Defines

#define AFSK_ADC_INIT(ch, ctx)   do { (void)ch, (void)ctx; } while (0)
 Initialize the specified channel of the ADC for AFSK needs.
#define AFSK_DAC_INIT(ch, ctx)   do { (void)ch, (void)ctx; } while (0)
 Initialize the specified channel of the DAC for AFSK needs.
#define AFSK_DAC_IRQ_START(ch)   do { (void)ch; /* Implement me */ } while (0)
 Start DAC convertions on channel ch.
#define AFSK_DAC_IRQ_STOP(ch)   do { (void)ch; /* Implement me */ } while (0)
 Stop DAC convertions on channel ch.

Detailed Description

AFSK modem hardware-specific definitions.

Version:
Id
hw_afsk.h 3072 2009-10-10 13:01:56Z batt
Author:
Francesco Sacchi <batt@develer.com>

Definition in file hw_afsk.h.


Define Documentation

#define AFSK_ADC_INIT ( ch,
ctx   )     do { (void)ch, (void)ctx; } while (0)

Initialize the specified channel of the ADC for AFSK needs.

The adc should be configured to have a continuos stream of convertions. For every convertion there must be an ISR that read the sample and call afsk_adc_isr(), passing the context and the sample.

Parameters:
ch channel to be used for AFSK demodulation.
ctx AFSK context (
See also:
Afsk). This parameter must be saved and passed back to afsk_adc_isr() for every convertion.

Definition at line 57 of file hw_afsk.h.

#define AFSK_DAC_INIT ( ch,
ctx   )     do { (void)ch, (void)ctx; } while (0)

Initialize the specified channel of the DAC for AFSK needs.

The DAC has to be configured in order to call an ISR for every sample sent. The DAC doesn't have to start the IRQ immediatly but have to wait the AFSK driver to call AFSK_DAC_IRQ_START(). The ISR must then call afsk_dac_isr() passing the AFSK context.

Parameters:
ch DAC channel to be used for AFSK modulation.
ctx AFSK context (
See also:
Afsk). This parameter must be saved and passed back to afsk_dac_isr() for every convertion.

Definition at line 73 of file hw_afsk.h.

#define AFSK_DAC_IRQ_START ( ch   )     do { (void)ch; /* Implement me */ } while (0)

Start DAC convertions on channel ch.

Parameters:
ch DAC channel.

Definition at line 79 of file hw_afsk.h.

#define AFSK_DAC_IRQ_STOP ( ch   )     do { (void)ch; /* Implement me */ } while (0)

Stop DAC convertions on channel ch.

Parameters:
ch DAC channel.

Definition at line 85 of file hw_afsk.h.