Main Page | Data Structures | Directories | File List | Data Fields | Globals

user.c File Reference

#include <p18cxxx.h>
#include <usart.h>
#include "system\typedefs.h"
#include "system\usb\usb.h"
#include "io_cfg.h"
#include "user\user.h"
#include "user\temperature.h"

Go to the source code of this file.

Defines

#define mLED_Both_Off()   {mLED_1_Off();mLED_2_Off();}
#define mLED_Both_On()   {mLED_1_On();mLED_2_On();}
#define mLED_Only_1_On()   {mLED_1_On();mLED_2_Off();}
#define mLED_Only_2_On()   {mLED_1_Off();mLED_2_On();}

Functions

void InitializeUSART (void)
void BlinkUSBStatus (void)
BOOL Switch2IsPressed (void)
BOOL Switch3IsPressed (void)
void UserInit (void)
void ProcessIO (void)

Variables

byte old_sw2
byte old_sw3
char input_buffer [64]


Define Documentation

 
#define mLED_Both_Off  )     {mLED_1_Off();mLED_2_Off();}
 

Referenced by BlinkUSBStatus().

 
#define mLED_Both_On  )     {mLED_1_On();mLED_2_On();}
 

Referenced by BlinkUSBStatus().

 
#define mLED_Only_1_On  )     {mLED_1_On();mLED_2_Off();}
 

Referenced by BlinkUSBStatus().

 
#define mLED_Only_2_On  )     {mLED_1_Off();mLED_2_On();}
 

Referenced by BlinkUSBStatus().


Function Documentation

void BlinkUSBStatus void   ) 
 

Definition at line 156 of file user.c.

References ADDRESS_STATE, ATTACHED_STATE, CONFIGURED_STATE, DEFAULT_STATE, DETACHED_STATE, mLED_1, mLED_1_Toggle, mLED_2, mLED_2_Off, mLED_Both_Off, mLED_Both_On, mLED_Only_1_On, mLED_Only_2_On, POWERED_STATE, and usb_device_state.

Referenced by ProcessIO().

void InitializeUSART void   ) 
 

P R I V A T E P R O T O T Y P E S

void ProcessIO void   ) 
 

Definition at line 120 of file user.c.

References BlinkUSBStatus(), CONFIGURED_STATE, getsUSBUSART(), input_buffer, mUSBUSARTIsTxTrfReady, mUSBUSARTTxRam, and usb_device_state.

Referenced by main().

BOOL Switch2IsPressed void   ) 
 

BOOL Switch3IsPressed void   ) 
 

void UserInit void   ) 
 

D E C L A R A T I O N S

Definition at line 80 of file user.c.

References mInitAllLEDs.

Referenced by InitializeSystem().


Variable Documentation

char input_buffer[64]
 

Definition at line 65 of file user.c.

Referenced by ProcessIO().

byte old_sw2
 

V A R I A B L E S

Definition at line 63 of file user.c.

byte old_sw3
 

V A R I A B L E S

Definition at line 63 of file user.c.


Generated on Wed Jun 8 03:49:41 2005 for cdc by  doxygen 1.4.2