app.h File Reference

JADEKU project defines and dependency headers. More...

#include <pic.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "pgrl.h"
#include "sci.h"
#include "delay.h"
#include "onewire.h"
#include "spi.h"
#include "at45xx.h"
#include "time.h"
#include "fs.h"
Include dependency graph for app.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define VERSION   0x05
 required for the ffs More...
 
#define LB1   RB1
 O. More...
 
#define LB2   RB2
 O. More...
 
#define TOUCH   RB0
 I. More...
 
#define TAMP   RB5
 I. More...
 
#define WAKE   RB4
 I. More...
 
#define F_TAMP   0x01
 Tamper (case open) More...
 
#define F_VSENS   0x02
 Low Battery. More...
 
#define F_INTR   0x04
 Touch present. More...
 
#define F_PCMD   0x08
 Command to process. More...
 
#define F_WAITACK   0x10
 Waiting ACK. More...
 
#define F_DOWN   0x20
 Download REGIS Db. More...
 
#define F_SPACE   0x40
 Available space warn. More...
 
#define F_NEXT   0x80
 Send next reg. More...
 
#define FN_TAMP   0
 
#define FN_VSENS   1
 
#define FN_INTR   2
 
#define FN_PCMD   3
 
#define FN_WAITACK   4
 
#define FN_DOWN   5
 
#define FN_SPACE   6
 
#define FN_NEXT   7
 
#define GE_FILE   0
 Error on file operation. More...
 
#define GE_LTA   1
 Error on comm. More...
 
#define GE_NOSPACE   2
 No enogh disk space. More...
 
#define CR_STX   0x02
 
#define CR_ETX   0x03
 
#define CR_ACK   0x06
 
#define CR_NAK   0x15
 
#define FM_IDLE   0x00
 
#define FM_INIT   0x01
 
#define FM_END   0x02
 
#define CR_START   'E'
 
#define CR_DEV   '1'
 
#define CR_INIT0   'A'
 
#define CR_INIT1   'B'
 
#define CR_ENABLE   '4'
 
#define CR_DISABLE   '5'
 
#define CR_NUM   'R'
 
#define CR_DOWN   '0'
 
#define CR_DELETE   '2'
 
#define CR_RESET   137
 
#define CR_DATETIME   '1'
 
#define CR_FORMAT   'F'
 -> STX|E|1|F|x|x|x|ETX|XOR <- ACK More...
 
#define CR_INFO   'I'
 -> STX|E|1|I|ETX|XOR <- ACK > STX|I|n|x|x|x|e|e|e|ETX|XOR More...
 
#define CR_FF   'D'
 -> STX|E|1|D|ETX|XOR <- ACK > STX|nnnnnnn|ETX|XOR More...
 

Variables

volatile BYTE gFlags
 

Detailed Description

JADEKU project defines and dependency headers.

This file is part of 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/.

Definition in file app.h.

Macro Definition Documentation

◆ CR_ACK

#define CR_ACK   0x06

Definition at line 93 of file app.h.

◆ CR_DATETIME

#define CR_DATETIME   '1'

Definition at line 111 of file app.h.

◆ CR_DELETE

#define CR_DELETE   '2'

Definition at line 109 of file app.h.

◆ CR_DEV

#define CR_DEV   '1'

Definition at line 101 of file app.h.

◆ CR_DISABLE

#define CR_DISABLE   '5'

Definition at line 106 of file app.h.

◆ CR_DOWN

#define CR_DOWN   '0'

Definition at line 108 of file app.h.

◆ CR_ENABLE

#define CR_ENABLE   '4'

Definition at line 105 of file app.h.

◆ CR_ETX

#define CR_ETX   0x03

Definition at line 92 of file app.h.

◆ CR_FF

#define CR_FF   'D'

-> STX|E|1|D|ETX|XOR <- ACK > STX|nnnnnnn|ETX|XOR

Definition at line 118 of file app.h.

◆ CR_FORMAT

#define CR_FORMAT   'F'

-> STX|E|1|F|x|x|x|ETX|XOR <- ACK

new commands

Definition at line 116 of file app.h.

◆ CR_INFO

#define CR_INFO   'I'

-> STX|E|1|I|ETX|XOR <- ACK > STX|I|n|x|x|x|e|e|e|ETX|XOR

Definition at line 117 of file app.h.

◆ CR_INIT0

#define CR_INIT0   'A'

Definition at line 103 of file app.h.

◆ CR_INIT1

#define CR_INIT1   'B'

Definition at line 104 of file app.h.

◆ CR_NAK

#define CR_NAK   0x15

Definition at line 94 of file app.h.

◆ CR_NUM

#define CR_NUM   'R'

Definition at line 107 of file app.h.

◆ CR_RESET

#define CR_RESET   137

Definition at line 110 of file app.h.

◆ CR_START

#define CR_START   'E'

Definition at line 100 of file app.h.

◆ CR_STX

#define CR_STX   0x02

CRONOS Protocol defines

Definition at line 91 of file app.h.

◆ F_DOWN

#define F_DOWN   0x20

Download REGIS Db.

Definition at line 70 of file app.h.

◆ F_INTR

#define F_INTR   0x04

Touch present.

Definition at line 67 of file app.h.

◆ F_NEXT

#define F_NEXT   0x80

Send next reg.

Definition at line 72 of file app.h.

◆ F_PCMD

#define F_PCMD   0x08

Command to process.

Definition at line 68 of file app.h.

◆ F_SPACE

#define F_SPACE   0x40

Available space warn.

Definition at line 71 of file app.h.

◆ F_TAMP

#define F_TAMP   0x01

Tamper (case open)

Definition at line 65 of file app.h.

◆ F_VSENS

#define F_VSENS   0x02

Low Battery.

Definition at line 66 of file app.h.

◆ F_WAITACK

#define F_WAITACK   0x10

Waiting ACK.

Definition at line 69 of file app.h.

◆ FM_END

#define FM_END   0x02

Definition at line 98 of file app.h.

◆ FM_IDLE

#define FM_IDLE   0x00

Definition at line 96 of file app.h.

◆ FM_INIT

#define FM_INIT   0x01

Definition at line 97 of file app.h.

◆ FN_DOWN

#define FN_DOWN   5

Definition at line 80 of file app.h.

◆ FN_INTR

#define FN_INTR   2

Definition at line 77 of file app.h.

◆ FN_NEXT

#define FN_NEXT   7

Definition at line 82 of file app.h.

◆ FN_PCMD

#define FN_PCMD   3

Definition at line 78 of file app.h.

◆ FN_SPACE

#define FN_SPACE   6

Definition at line 81 of file app.h.

◆ FN_TAMP

#define FN_TAMP   0

Definition at line 75 of file app.h.

◆ FN_VSENS

#define FN_VSENS   1

Definition at line 76 of file app.h.

◆ FN_WAITACK

#define FN_WAITACK   4

Definition at line 79 of file app.h.

◆ GE_FILE

#define GE_FILE   0

Error on file operation.

Definition at line 84 of file app.h.

◆ GE_LTA

#define GE_LTA   1

Error on comm.

Definition at line 85 of file app.h.

◆ GE_NOSPACE

#define GE_NOSPACE   2

No enogh disk space.

Definition at line 86 of file app.h.

◆ LB1

#define LB1   RB1

O.

Flash control BUZZER and LED

Definition at line 50 of file app.h.

◆ LB2

#define LB2   RB2

O.

Definition at line 51 of file app.h.

◆ TAMP

#define TAMP   RB5

I.

Comparator

Definition at line 62 of file app.h.

◆ TOUCH

#define TOUCH   RB0

I.

iButton

Definition at line 56 of file app.h.

◆ VERSION

#define VERSION   0x05

required for the ffs

Definition at line 26 of file app.h.

◆ WAKE

#define WAKE   RB4

I.

Definition at line 63 of file app.h.

Variable Documentation

◆ gFlags

volatile BYTE gFlags

Variables

Definition at line 81 of file jadeku.c.