nidas  v1.2-1520
AltaEnet.h
Go to the documentation of this file.
1 
2 
3 #ifndef _alta_enet_h_
4 #define _alta_enet_h_
5 
6 #include <stdint.h>
7 
11 typedef struct
12 {
13  uint32_t mode; // Should always be 1 for APMP mode.
14  uint32_t seqNum;
15  uint32_t status; // Value of zero is success.
16  uint32_t alta; // Fixed string "ALTA" - 0x414C5441
17  uint32_t reserved1;
18  uint32_t reserved2;
19  uint32_t reserved3;
20  uint32_t payloadSize; // in bytes; 4-1376
21 
22 // These are not really part of the header, but are standard first part of the
23 // payload for the APMP UDP feed
24  uint32_t PEtimeHigh;
25  uint32_t PEtimeLow;
26  uint32_t IRIGtimeHigh; // Julian Day (Year if available).
27  uint32_t IRIGtimeLow; // BCD hour, minute, second.
28 } APMP_hdr;
29 
30 
31 // Alta receive packet for each arinc word.
32 typedef struct
33 {
34  uint32_t control; // 0x80000000 is error bit (0=ok, 1=err)
35  uint32_t timeHigh;
36  uint32_t timeLow; // 20ns / 50Mhz interval timer.
37  uint32_t data;
38 } rxp;
39 
40 
41 // Repackaged RXP to pass from UDPARincSensor to DSMArincSensor.
42 typedef struct
43 {
44  uint32_t time; // Milliseconde since midnight.
45  uint32_t data; // Arinc 429 word.
46 } txp;
47 
48 
49 #endif
uint32_t status
Definition: AltaEnet.h:15
uint32_t reserved3
Definition: AltaEnet.h:19
uint32_t timeHigh
Definition: AltaEnet.h:35
uint32_t reserved2
Definition: AltaEnet.h:18
uint32_t mode
Definition: AltaEnet.h:13
uint32_t data
Definition: AltaEnet.h:45
uint32_t alta
Definition: AltaEnet.h:16
Definition: AltaEnet.h:32
Definition: AltaEnet.h:42
uint32_t PEtimeHigh
Definition: AltaEnet.h:24
uint32_t IRIGtimeLow
Definition: AltaEnet.h:27
uint32_t IRIGtimeHigh
Definition: AltaEnet.h:26
uint32_t control
Definition: AltaEnet.h:34
uint32_t data
Definition: AltaEnet.h:37
uint32_t payloadSize
Definition: AltaEnet.h:20
uint32_t reserved1
Definition: AltaEnet.h:17
Alta APMP packet header.
Definition: AltaEnet.h:11
uint32_t PEtimeLow
Definition: AltaEnet.h:25
uint32_t timeLow
Definition: AltaEnet.h:36
uint32_t time
Definition: AltaEnet.h:44
uint32_t seqNum
Definition: AltaEnet.h:14