event.h File Reference

Events. More...

#include "net\udp.h"

Defines

#define EVT_PORT_SER1   0b00000010ul
#define EVT_PORT_SER2   0b00000100ul
#define EVT_PORT_UDP   0b00000001ul

Functions

BYTE chkLCD (void)
void evtInit (void)
void evtTask (void)

Variables

BYTE activeEventPorts
UDP_SOCKET udpSocketEvt


Detailed Description

Events.

Author:
Modtronix Engineering
Dependencies:
Compiler:
MPLAB C18 v2.10 or higher
HITECH PICC-18 V8.35PL3 or higher

Description

This module contains the code for sending events

Configuration

The following defines are used to configure this module, and should be placed in the projdefs.h (or similar) file. For details, see Project Configuration. To configure the module, the required defines should be uncommended, and the rest commented out.
 //*********************************************************************
 //--------------------  Event Configuration --------------------
 //*********************************************************************
 //Default "UDP Event Port"
 #define DEFAULT_EVENT_UDPPORT (54124)

 //"UDP Event Port"
 #define EVENT_UDPPORT DEFAULT_EVENT_UDPPORT

Define Documentation

#define EVT_PORT_SER1   0b00000010ul

#define EVT_PORT_SER2   0b00000100ul

#define EVT_PORT_UDP   0b00000001ul


Function Documentation

BYTE chkLCD ( void   ) 

Check LCD display every 50ms

Returns:
Set's bit 0 in returned byte if data added to UDP buffer

void evtInit ( void   ) 

Initializes "UDP Command Port" and "UDP Event Port". These ports are used for sending and receiving and commands via the UDP port.

void evtTask ( void   ) 

Must be called every couple of ms


Variable Documentation


Generated on Wed Feb 3 12:45:34 2010 for SBC65EC Web Server by  doxygen 1.5.8