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