ICAROUS
All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Modules Pages
Classes | Macros | Functions | Variables
apInterface.h File Reference

function declarations, definitions of macros, datastructures and global variables for the apInterface application More...

#include "cfe.h"
#include "cfe_error.h"
#include "cfe_evs.h"
#include "cfe_sb.h"
#include "cfe_es.h"
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include "network_includes.h"
#include "apInterface_events.h"
#include "Icarous_msg.h"
#include "traffic_msg.h"
#include "Icarous_msgids.h"
#include "sch_msgids.h"
#include "traffic_msgids.h"
#include "port_lib.h"

Go to the source code of this file.

Classes

struct  appdataInt_t
 Structure to hold app data. More...
 

Macros

#define APINTERFACE_PIPE_NAME   "APFLTPLAN"
 
#define APINTERFACE_PIPE_DEPTH   100
 
#define SCH_APINTERFACE_PIPE1_NAME   "SCH_AUTOPILOT"
 

Functions

void APINTERFACE_AppMain (void)
 This is the main entry point for your application that will be used by cFS. More...
 
void APINTERFACE_AppInit (void)
 Initialize app data: set up pipes, subscribe to messages, read table, initialize data. More...
 
void APINTERFACE_AppCleanUp (void)
 
void APINTERFACE_InitializeAPPorts ()
 Open ports to autopilot and intialize ports here. More...
 
void APINTERFACE_ProcessAPData (void)
 Read data from the autopilot and construct software bus messages. More...
 
void APINTERFACE_ProcessSBData (void)
 Read data from software bus and send data to autopilot. More...
 
void APINTERFACE_GetADSBData ()
 Read ADSB data from ADSB transponder and publish traffic data on software bus. More...
 
int32_t ApInterfaceTableValidationFunc (void *TblPtr)
 

Variables

appdataInt_t appdataApIntf
 

Function Documentation

◆ APINTERFACE_AppCleanUp()

void APINTERFACE_AppCleanUp ( void  )

Clean up variables

◆ APINTERFACE_AppInit()

void APINTERFACE_AppInit ( void  )

Initialize app properties

◆ APINTERFACE_AppMain()

void APINTERFACE_AppMain ( void  )

Entry point for app

◆ APINTERFACE_GetADSBData()

void APINTERFACE_GetADSBData ( )

Process ADSB data

◆ APINTERFACE_InitializeAPPorts()

void APINTERFACE_InitializeAPPorts ( )

Initialize ports to the autopilot

◆ APINTERFACE_ProcessAPData()

void APINTERFACE_ProcessAPData ( void  )

Process data from the autopilot

◆ APINTERFACE_ProcessSBData()

void APINTERFACE_ProcessSBData ( void  )

Process data from the SB message

◆ ApInterfaceTableValidationFunc()

int32_t ApInterfaceTableValidationFunc ( void *  TblPtr)

Validate table data

Parameters
*TblPtrpointer to table