|
|
|
|
/home/brennan/Software/sensix/tools/sim/platform.pc/hpl.c File Reference#include "platform_params.h"
#include "powermod.h"
Go to the source code of this file.
|
Defines |
#define | HPLC_DEBUG(_x) |
Enumerations |
enum | { ADC_LATENCY = 200
} |
enum | { NOT_WAITING = 0,
WAITING_FOR_ONE_TO_PASS = 1,
WAITING_FOR_ONE_TO_CAPTURE = 2
} |
Functions |
| TOS_INTERRUPT_HANDLER (SIG_OUTPUT_COMPARE2,(void)) |
| TOS_INTERRUPT_HANDLER (SIG_OUTPUT_COMPARE1A,(void)) |
void | TOSH_adc_data_ready (uint16_t data) |
void | TOSH_rfm_bit_event (void) |
void | TOSH_uart_putdone (void) |
void | TOSH_clock_set_interval (uint8_t interval) |
void | TOSH_clock_set_rate (char interval, char scale) |
uint8_t | TOSH_get_clock_interval () |
void | TOSH_set_clock0_counter (uint8_t n) |
uint8_t | TOSH_get_clock0_counter () |
uint8_t | TOSH_clock_int_disable () |
uint8_t | TOSH_clock_int_enable () |
void | event_clocktick_handle (event_t *event, struct TOS_state *state) |
void | event_clocktick_create (event_t *event, int mote, long long eventTime, int interval) |
void | event_clocktick_invalidate (event_t *event) |
void | TOSH_adc_init (void) |
void | TOSH_adc_set_sampling_rate (uint8_t rate) |
void | TOSH_adc_sample_port (uint8_t port) |
void | TOSH_adc_sample_again (void) |
void | TOSH_adc_sample_stop (void) |
uint16_t | get_adc_data (uint8_t port) |
| TOS_SIGNAL_HANDLER (SIG_ADC,()) |
void | event_adc_handle (event_t *event, struct TOS_state *state) |
void | event_adc_update (event_t *event, int mote, uint8_t port, long long eventTime, int interval) |
void | event_adc_create (event_t *event, int mote, uint8_t port, long long eventTime, int interval) |
| TOS_SIGNAL_HANDLER (SIG_OUTPUT_COMPARE1A,()) |
void | TOSH_rfm_set_bit_rate (uint8_t level) |
void | TOSH_rfm_init (void) |
uint8_t | TOSH_rfm_rx_bit (void) |
void | TOSH_rfm_tx_bit (uint8_t data) |
void | TOSH_rfm_power_off (void) |
void | TOSH_rfm_disable_timer (void) |
void | TOSH_rfm_enable_timer (void) |
void | TOSH_rfm_tx_mode (void) |
void | TOSH_rfm_rx_mode (void) |
void | event_radiotick_handle (event_t *event, struct TOS_state *state) |
void | event_radiotick_create (event_t *event, int mote, long long ftime, int interval) |
void | event_radiotick_invalidate (event_t *event) |
void | event_spi_byte_create (event_t *fevent, int mote, long long ftime, int interval, int count) __attribute__((C |
Variables |
event_t * | radioTickEvents [TOSNODES] |
int | tickScale [] = {2000, 3000, 4000} |
uint8_t | radioWaitingState [TOSNODES] |
char | TOSH_MHSR_start [12] = {0xf0, 0xf0, 0xf0, 0xff, 0x00, 0xff, 0x0f, 0x00, 0xff, 0x0f, 0x0f, 0x0f} |
void | spontaneous |
event_t * | spiByteEvents [TOSNODES] |
int | RADIO_TICKS_PER_EVENT = 100 |
Define Documentation
#define HPLC_DEBUG |
( |
_x |
|
) |
|
Definition at line 34 of file hpl.c.
Enumeration Type Documentation
- Enumerator:
-
Definition at line 223 of file hpl.c.
- Enumerator:
-
NOT_WAITING |
|
WAITING_FOR_ONE_TO_PASS |
|
WAITING_FOR_ONE_TO_CAPTURE |
|
Definition at line 346 of file hpl.c.
Function Documentation
void event_adc_create |
( |
event_t * |
event, |
|
|
int |
mote, |
|
|
uint8_t |
port, |
|
|
long long |
eventTime, |
|
|
int |
interval | |
|
) |
| | |
void event_adc_handle |
( |
event_t * |
event, |
|
|
struct TOS_state * |
state | |
|
) |
| | |
void event_adc_update |
( |
event_t * |
event, |
|
|
int |
mote, |
|
|
uint8_t |
port, |
|
|
long long |
eventTime, |
|
|
int |
interval | |
|
) |
| | |
void event_clocktick_create |
( |
event_t * |
event, |
|
|
int |
mote, |
|
|
long long |
eventTime, |
|
|
int |
interval | |
|
) |
| | |
void event_clocktick_handle |
( |
event_t * |
event, |
|
|
struct TOS_state * |
state | |
|
) |
| | |
void event_clocktick_invalidate |
( |
event_t * |
event |
) |
|
void event_radiotick_create |
( |
event_t * |
event, |
|
|
int |
mote, |
|
|
long long |
ftime, |
|
|
int |
interval | |
|
) |
| | |
void event_radiotick_handle |
( |
event_t * |
event, |
|
|
struct TOS_state * |
state | |
|
) |
| | |
void event_radiotick_invalidate |
( |
event_t * |
event |
) |
|
void event_spi_byte_create |
( |
event_t * |
fevent, |
|
|
int |
mote, |
|
|
long long |
ftime, |
|
|
int |
interval, |
|
|
int |
count | |
|
) |
| | |
uint16_t get_adc_data |
( |
uint8_t |
port |
) |
|
TOS_INTERRUPT_HANDLER |
( |
SIG_OUTPUT_COMPARE1A |
, |
|
|
(void) |
| |
|
) |
| | |
TOS_INTERRUPT_HANDLER |
( |
SIG_OUTPUT_COMPARE2 |
, |
|
|
(void) |
| |
|
) |
| | |
TOS_SIGNAL_HANDLER |
( |
SIG_OUTPUT_COMPARE1A |
, |
|
|
() |
| |
|
) |
| | |
TOS_SIGNAL_HANDLER |
( |
SIG_ADC |
, |
|
|
() |
| |
|
) |
| | |
void TOSH_adc_data_ready |
( |
uint16_t |
data |
) |
|
void TOSH_adc_init |
( |
void |
|
) |
|
void TOSH_adc_sample_again |
( |
void |
|
) |
|
void TOSH_adc_sample_port |
( |
uint8_t |
port |
) |
|
void TOSH_adc_sample_stop |
( |
void |
|
) |
|
void TOSH_adc_set_sampling_rate |
( |
uint8_t |
rate |
) |
|
uint8_t TOSH_clock_int_disable |
( |
|
) |
|
uint8_t TOSH_clock_int_enable |
( |
|
) |
|
void TOSH_clock_set_interval |
( |
uint8_t |
interval |
) |
|
Definition at line 54 of file hpl.c.
void TOSH_clock_set_rate |
( |
char |
interval, |
|
|
char |
scale | |
|
) |
| | |
Definition at line 86 of file hpl.c.
uint8_t TOSH_get_clock0_counter |
( |
|
) |
|
uint8_t TOSH_get_clock_interval |
( |
|
) |
|
void TOSH_rfm_bit_event |
( |
void |
|
) |
|
void TOSH_rfm_disable_timer |
( |
void |
|
) |
|
void TOSH_rfm_enable_timer |
( |
void |
|
) |
|
void TOSH_rfm_init |
( |
void |
|
) |
|
void TOSH_rfm_power_off |
( |
void |
|
) |
|
uint8_t TOSH_rfm_rx_bit |
( |
void |
|
) |
|
void TOSH_rfm_rx_mode |
( |
void |
|
) |
|
void TOSH_rfm_set_bit_rate |
( |
uint8_t |
level |
) |
|
void TOSH_rfm_tx_bit |
( |
uint8_t |
data |
) |
|
void TOSH_rfm_tx_mode |
( |
void |
|
) |
|
void TOSH_set_clock0_counter |
( |
uint8_t |
n |
) |
|
void TOSH_uart_putdone |
( |
void |
|
) |
|
Variable Documentation
char TOSH_MHSR_start[12] = {0xf0, 0xf0, 0xf0, 0xff, 0x00, 0xff, 0x0f, 0x00, 0xff, 0x0f, 0x0f, 0x0f} |
|