-
Notifications
You must be signed in to change notification settings - Fork 9
/
aprs.h
48 lines (43 loc) · 1.75 KB
/
aprs.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
* Copyright (C) 2014 by KC3ARY Rich Nash
*
* Module modified from code by EA5HAV.
*
*/
/* Credit to the trackuino project written by EA5HAV Javi
*
* 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 2
* 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, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef __APRS_H__
#define __APRS_H__
struct PathAddress
{
const char *callsign;
uint8_t ssid;
};
void aprs_setup(const uint16_t preambleFlags, // number of preambleFlags to send, must be at least 1 to frame packet
const uint8_t pttPin, // Use PTT pin, 0 = do not use PTT
const uint16_t pttDelay, // ms to wait after PTT to transmit
const uint32_t toneLength, const uint32_t silenceLength // Emit sub-audio tone before packet to trigger VOX
);
void aprs_send(const PathAddress * const paths, const int nPaths,
const uint8_t dayOfMonth, const uint8_t hour, const uint8_t min,
const float lat,
const float lon, // degrees
const float altitude, // meters
const uint16_t heading, // degrees
const float speed, const char symbolTableIndicator, const char symbol,
const char * const comment); // Synchronized ... won't return until the entire packet is sent
#endif