JADEKU Portable ADQ device for Routines Control. More...
#include <app.h>
Go to the source code of this file.
Macros | |
| #define | _USESLEEP 1 |
| #define | OUTBUFSIZE 20 |
| #define | INBUFSIZE 20 |
| #define | WLONG 100 |
| Wait long time. More... | |
| #define | WSHORT 25 |
| Wait short time. More... | |
| #define | BLONG 2000 |
| Beep long time. More... | |
| #define | BSHORT 1000 |
| Beep short time. More... | |
| #define | beep(time) piezo(18,time) |
Functions | |
| static BYTE | SearchbyID (WORD id) |
| static BYTE | Save (WORD id) |
| static void | Process (void) |
| static BYTE | CRO_Crc (volatile BYTE *data, BYTE size) |
| static void | SendRegis (void) |
| static VOID | xitoa (WORD n, BYTE *s, BYTE pad) |
| static VOID | xreverse (BYTE *s) |
| static void | InitialState (void) |
| static void | DoOK (void) |
| static void | DoError (void) |
| static BYTE | ccp (BYTE idx) |
| static void | InitPacket (BYTE cmd) |
| static void | Add (BYTE num) |
| static void | Init0 (void) |
| static void | Init1 (void) |
| static void | SendInfo (void) |
| static void | SendFlash (void) |
| static void | SetTime (BYTE dir) |
| static void | CheckUnits (WORD id) |
| void | setports (void) |
| static void | piezo (BYTE t, WORD d) |
| static void interrupt | isr (void) |
| void | TestBat (void) |
| void | main (void) |
Variables | |
| volatile BYTE | gFlags =0x00 |
| static bank1 WORD | gIbut |
| Current touch read. More... | |
| static bank1 WORD | gTbut |
| antiping touch read More... | |
| static bank1 BYTE | gBuf [10] |
| general buffer More... | |
| static bank2 BYTE | gIdx |
| index to build packets More... | |
| static volatile bank1 time_t | gTimeout =0 |
| Protocol Timeout. More... | |
| static volatile bank2 BYTE | gRetry =0 |
| Retry count. More... | |
| volatile bank1 time_t | TIME =0 |
| Timer in unix format. More... | |
| volatile bank1 BYTE | gOut [20] |
| Output buffer. More... | |
| volatile bank1 BYTE | gIn [20] |
| Input buffer. More... | |
| volatile bank2 BYTE | gTXCount =0 |
| Output buffer index. More... | |
| volatile bank2 BYTE | gRXCount =0 |
| Input buffer index. More... | |
| volatile bank2 BYTE | gByte ='A' |
| Input byte. More... | |
| volatile bank2 BYTE | gError =0x00 |
| Error flag state. More... | |
| volatile bank2 BYTE | gSleepTime |
| Count to sleep. More... | |
| volatile BYTE | gSleep =0 |
| Sleep mode enable. More... | |
| volatile bank2 time_t | gTampTime |
| Tamper loop time. More... | |
| volatile bank2 BYTE | gState =FM_IDLE |
| Protocol Receiver state machine. More... | |
| volatile bank2 BYTE | gCrc =0 |
| Protocol Checksum. More... | |
Detailed Description
JADEKU Portable ADQ device for Routines Control.
Copyright (C) 2006-2009, Hernan Monserrat hemonserrat<at>gmail<dot>com
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
- Note
- Platform ADQ128 V2 Embedded Board. HT-PIC V8.05PL2
Definition in file jadeku.c.
Macro Definition Documentation
◆ _USESLEEP
| #define _USESLEEP 1 |
◆ beep
◆ BLONG
◆ BSHORT
◆ INBUFSIZE
◆ OUTBUFSIZE
◆ WLONG
◆ WSHORT
Function Documentation
◆ Add()
|
static |
◆ ccp()
◆ CheckUnits()
|
static |
◆ CRO_Crc()
◆ DoError()
|
static |
◆ DoOK()
|
static |
◆ Init0()
|
static |
◆ Init1()
|
static |
◆ InitialState()
|
static |
◆ InitPacket()
|
static |
◆ isr()
|
static |
◆ main()
| void main | ( | void | ) |
◆ piezo()
◆ Process()
|
static |
◆ Save()
◆ SearchbyID()
◆ SendFlash()
|
static |
◆ SendInfo()
|
static |
◆ SendRegis()
|
static |
◆ setports()
| void setports | ( | void | ) |
◆ SetTime()
|
static |
◆ TestBat()
| void TestBat | ( | void | ) |
◆ xitoa()
converts an integer to an ASCII string representation
- Parameters
-
n - number to be converted s - Buffer to store result pad - right alignment padding
- Returns
- TRUE on packet received, FALSE timeout.
- Remarks
- feed gCpos and gCtime with the received data.
Definition at line 980 of file jadeku.c.









































1.8.14