Sensix
Wireless Sensor Network Middleware



   Home


   Project Page


   Download


   CVS




 Hosted by
Get SENSIX at SourceForge.net. Fast, secure 
and Free Open Source software downloads

/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

anonymous enum

Enumerator:
ADC_LATENCY 

Definition at line 223 of file hpl.c.

anonymous enum

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 
)

Definition at line 321 of file hpl.c.

void event_adc_handle ( event_t *  event,
struct TOS_state state 
)

Definition at line 295 of file hpl.c.

void event_adc_update ( event_t *  event,
int  mote,
uint8_t  port,
long long  eventTime,
int  interval 
)

Definition at line 313 of file hpl.c.

void event_clocktick_create ( event_t *  event,
int  mote,
long long  eventTime,
int  interval 
)

Definition at line 192 of file hpl.c.

void event_clocktick_handle ( event_t *  event,
struct TOS_state state 
)

Definition at line 156 of file hpl.c.

void event_clocktick_invalidate ( event_t *  event  ) 

Definition at line 212 of file hpl.c.

void event_radiotick_create ( event_t *  event,
int  mote,
long long  ftime,
int  interval 
)

Definition at line 442 of file hpl.c.

void event_radiotick_handle ( event_t *  event,
struct TOS_state state 
)

Definition at line 417 of file hpl.c.

void event_radiotick_invalidate ( event_t *  event  ) 

Definition at line 460 of file hpl.c.

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  ) 

Definition at line 278 of file hpl.c.

TOS_INTERRUPT_HANDLER ( SIG_OUTPUT_COMPARE1A  ,
(void)   
)

TOS_INTERRUPT_HANDLER ( SIG_OUTPUT_COMPARE2  ,
(void)   
)

TOS_SIGNAL_HANDLER ( SIG_OUTPUT_COMPARE1A  ,
()   
)

Definition at line 354 of file hpl.c.

TOS_SIGNAL_HANDLER ( SIG_ADC  ,
()   
)

Definition at line 282 of file hpl.c.

void TOSH_adc_data_ready ( uint16_t  data  ) 

void TOSH_adc_init ( void   ) 

Definition at line 232 of file hpl.c.

void TOSH_adc_sample_again ( void   ) 

Definition at line 261 of file hpl.c.

void TOSH_adc_sample_port ( uint8_t  port  ) 

Definition at line 242 of file hpl.c.

void TOSH_adc_sample_stop ( void   ) 

Definition at line 273 of file hpl.c.

void TOSH_adc_set_sampling_rate ( uint8_t  rate  ) 

Definition at line 236 of file hpl.c.

uint8_t TOSH_clock_int_disable (  ) 

Definition at line 136 of file hpl.c.

uint8_t TOSH_clock_int_enable (  ) 

Definition at line 143 of file hpl.c.

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 (  ) 

Definition at line 124 of file hpl.c.

uint8_t TOSH_get_clock_interval (  ) 

Definition at line 115 of file hpl.c.

void TOSH_rfm_bit_event ( void   ) 

void TOSH_rfm_disable_timer ( void   ) 

Definition at line 408 of file hpl.c.

void TOSH_rfm_enable_timer ( void   ) 

Definition at line 410 of file hpl.c.

void TOSH_rfm_init ( void   ) 

Definition at line 384 of file hpl.c.

void TOSH_rfm_power_off ( void   ) 

Definition at line 406 of file hpl.c.

uint8_t TOSH_rfm_rx_bit ( void   ) 

Definition at line 390 of file hpl.c.

void TOSH_rfm_rx_mode ( void   ) 

Definition at line 414 of file hpl.c.

void TOSH_rfm_set_bit_rate ( uint8_t  level  ) 

Definition at line 362 of file hpl.c.

void TOSH_rfm_tx_bit ( uint8_t  data  ) 

Definition at line 399 of file hpl.c.

void TOSH_rfm_tx_mode ( void   ) 

Definition at line 412 of file hpl.c.

void TOSH_set_clock0_counter ( uint8_t  n  ) 

Definition at line 119 of file hpl.c.

void TOSH_uart_putdone ( void   ) 


Variable Documentation

Definition at line 475 of file hpl.c.

event_t* radioTickEvents[TOSNODES]

Definition at line 341 of file hpl.c.

uint8_t radioWaitingState[TOSNODES]

Definition at line 343 of file hpl.c.

event_t* spiByteEvents[TOSNODES]

Definition at line 473 of file hpl.c.

Definition at line 471 of file hpl.c.

int tickScale[] = {2000, 3000, 4000}

Definition at line 342 of file hpl.c.

char TOSH_MHSR_start[12] = {0xf0, 0xf0, 0xf0, 0xff, 0x00, 0xff, 0x0f, 0x00, 0xff, 0x0f, 0x0f, 0x0f}

Definition at line 344 of file hpl.c.


© 2008, Los Alamos National Security, LLC.