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