uap.h
Go to the documentation of this file.
1 /*
2  * libasterix
3  * Copyright [2013-2020] SinoATC <http://www.sinoatc.com>.
4  * All Rights Reserved.
5  *
6  * NOTICE: All information contained herein is, and remains
7  * the property of SinoATC and its suppliers, if any.
8  * The intellectual and technical concepts contained herein
9  * are proprietary to Aerosys Corporation and its suppliers and may be
10  * covered by U.S. and Foreign Patents, patents in process,
11  * and are protected by trade secret or copyright law.
12  * Dissemination of this information or reproduction of this material
13  * is strictly forbidden unless prior written permission is obtained
14  * from SinoATC.
15  */
16 
23 #ifndef LIBASTERIX_UAP_H
24 #define LIBASTERIX_UAP_H
25 
26 #include "category.h"
27 #include "dataitem.h"
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
33 typedef unsigned int (*ast_uap_max_frn_func_t)(const ast_category_t category);
34 typedef ast_dataitem_type_t (*ast_uap_func_t)(const ast_category_t category, const unsigned int frn);
35 
36 typedef struct _ast_uap_t
37 {
40 } ast_uap_t;
41 
42 unsigned int ast_uap_max_frn(ast_uap_t uap, const ast_category_t category);
43 
44 AST_API ast_dataitem_type_t ast_uap_get_dataitem(ast_uap_t uap, const ast_category_t category, const unsigned int frn);
45 
46 #ifdef __cplusplus
47  }
48 #endif // extern "C"
49 
50 #endif //LIBASTERIX_UAP_H
51 
52 // vim:set ft=c.doxygen sw=2 sts=2 fenc=utf8:
ast_uap_func_t get_dataitem_func
Definition: uap.h:39
Definition: uap.h:36
ast_dataitem_type_t ast_uap_get_dataitem(ast_uap_t uap, const ast_category_t category, const unsigned int frn)
This file includes the common used data items shares by different categories.
#define AST_API
Definition: platform.h:63
ast_category_t
Definition of category ID.
Definition: category.h:35
unsigned int(* ast_uap_max_frn_func_t)(const ast_category_t category)
Definition: uap.h:33
Implementation of Dataitem concept defined by ASTERIX.
ast_dataitem_type_t
Definition of data item id in each category.
Definition: dataitem.h:67
ast_dataitem_type_t(* ast_uap_func_t)(const ast_category_t category, const unsigned int frn)
Definition: uap.h:34
unsigned int ast_uap_max_frn(ast_uap_t uap, const ast_category_t category)
ast_uap_max_frn_func_t max_frn_func
Definition: uap.h:38