mbgtools-lx  4.2.8
extiohlp.h
Go to the documentation of this file.
1 
2 /**************************************************************************
3  *
4  * $Id: extiohlp.h 1.3.1.5.1.89 2018/06/05 12:59:22 martin TRASH $
5  *
6  * Copyright (c) Meinberg Funkuhren, Bad Pyrmont, Germany
7  *
8  * Description:
9  * Definitions and prototypes for extiohlp.c.
10  *
11  * -----------------------------------------------------------------------
12  * $Log: extiohlp.h $
13  * Revision 1.3.1.5.1.89 2018/06/05 12:59:22 martin
14  * Doxygen fixes.
15  * Revision 1.3.1.5.1.88 2018/06/05 09:41:56 philipp
16  * Added XFeature database
17  * Revision 1.3.1.5.1.87 2018/06/01 12:20:23 martin
18  * Updated function prototypes due to doxygen fixes.
19  * Revision 1.3.1.5.1.86 2018/05/29 08:14:11 martin
20  * Removed conditional function mbgextio_set_chk_tstr().
21  * Revision 1.3.1.5.1.85 2018/04/26 05:00:17 philipp
22  * Refactoring I/O helper structures and API
23  * Revision 1.3.1.5.1.84 2018/04/03 09:56:03 thomas-b
24  * Fixed/Improved several TLV API functions
25  * Revision 1.3.1.5.1.83 2018/03/26 08:06:51 thomas-b
26  * Added function mbgextio_get_all_firmware_info
27  * Revision 1.3.1.5.1.82 2018/03/15 14:03:31 philipp
28  * Added syslog option to monitoring feature
29  * Revision 1.3.1.5.1.81 2018/02/28 16:51:21 martin
30  * Doxygen fixes.
31  * Revision 1.3.1.5.1.80 2018/02/07 08:28:35 philipp
32  * Fixed potential file TLV size mismatch
33  * Revision 1.3.1.5.1.79 2018/02/06 12:39:08 philipp
34  * Added service feature and API
35  * Revision 1.3.1.5.1.78 2017/12/20 13:41:27 thomas-b
36  * Fixed and renamed mbgextio_req_generic_file to mbgextio_req_file
37  * Revision 1.3.1.5.1.77 2017/11/02 09:21:00 thomas-b
38  * Added functions mbgextio_get_all_user_info and mbgextio_save_all_user_info
39  * Revision 1.3.1.5.1.76 2017/07/20 06:17:16 philipp
40  * - Refactored monitoring events
41  * - Added xfeature tainted config
42  * - Removed obsolete code
43  * - Added mbglib xmt helper function
44  * Revision 1.3.1.5.1.75 2017/07/12 14:19:59 udo
45  * *** empty log message ***
46  * Revision 1.3.1.5.1.74 2017/06/07 13:59:34 philipp
47  * Added monitoring callback to TLV transmit chunk function
48  * Revision 1.3.1.5.1.73 2017/06/07 13:32:29 thomas-b
49  * Added function mbgextio_xmt_blob for the TLV API
50  * Revision 1.3.1.5.1.72 2017/05/17 15:39:32 martin
51  * Doxygen fixes.
52  * Revision 1.3.1.5.1.71 2017/05/10 15:21:34 martin
53  * Tiny cleanup.
54  * Revision 1.3.1.5.1.70 2017/03/27 10:37:41 thomas-b
55  * Added function mbgextio_get_all_ptp_v1_common_datasets
56  * Revision 1.3.1.5.1.69 2017/03/22 09:46:16 thomas-b
57  * Added function mbgextio_save_all_io_port_info
58  * Revision 1.3.1.5.1.68 2017/03/20 10:10:02 martin
59  * Fixed build without _PRELIMINARY_CODE.
60  * Revision 1.3.1.5.1.67 2017/03/08 12:37:51 thomas-b
61  * Added set bit for transaction type in mbgextio_begin_transaction
62  * Revision 1.3.1.5.1.66 2017/02/22 08:32:20 thomas-b
63  * Extended get and set of ALL_MONITORING_INFO by event structures
64  * Added get function for ALL_MONITORING_STATUS
65  * Revision 1.3.1.5.1.65 2017/02/16 12:59:52 thomas-b
66  * Renamed mbgextio_get_ptp_v2_common_datasets to mbgextio_get_all_ptp_v2_common_datasets
67  * Use ALL_PTP_V2_COMMON_DATASETS structure instead of MBG_PTP_V2_COMMON_DATASETS
68  * Revision 1.3.1.5.1.64 2017/02/16 09:32:33 thomas-b
69  * Added function mbgextio_get_ptp_v2_common_datasets
70  * Revision 1.3.1.5.1.63 2017/02/15 14:00:07 martin
71  * Fixed function prototypes.
72  * Revision 1.3.1.5.1.62 2017/02/08 13:15:44 thomas-b
73  * Added functions to get and save all monitoring, especially SNMP, configuration
74  * Revision 1.3.1.5.1.61 2016/12/08 14:46:26 martin
75  * Updated function prototypes.
76  * Revision 1.3.1.5.1.60 2016/11/22 12:40:47Z philipp
77  * Added I/O port helper functions
78  * Revision 1.3.1.5.1.59 2016/10/27 08:01:37 martin
79  * Doxygen fixes.
80  * Updated function prototypes.
81  * Revision 1.3.1.5.1.58 2016/10/25 07:48:28 martin
82  * Doxygen fixes.
83  * Revision 1.3.1.5.1.57 2016/10/21 09:39:43 thomas-b
84  * Added function mbgextio_get_all_xbp_info
85  * Revision 1.3.1.5.1.56 2016/10/19 14:33:07 thomas-b
86  * Added functions mbgextio_get_all_ucap_net_info and mbgextio_save_all_ucap_net_info
87  * Revision 1.3.1.5.1.55 2016/09/29 14:35:11 thomas-b
88  * Moved new get and set functions for NET_CFG_API stage 2 to mbgextio
89  * Revision 1.3.1.5.1.54 2016/09/29 12:16:37 thomas-b
90  * Added set functions for NET_CFG_API stage 2
91  * Revision 1.3.1.5.1.53 2016/09/29 09:09:03 thomas-b
92  * Added more functions for NET_CFG_API stage 2, especially status
93  * Revision 1.3.1.5.1.52 2016/09/29 06:13:06 philipp
94  * Added support for beginning / ending typed transactions
95  * Revision 1.3.1.5.1.51 2016/09/29 05:56:59 thomas-b
96  * Added first functions for NET_CFG_API stage 2
97  * Revision 1.3.1.5.1.50 2016/09/27 09:27:53 udo
98  * added new function mbgextio_req_generic_file()
99  * Revision 1.3.1.5.1.49 2016/06/28 13:39:21 philipp
100  * Added missing include files if _USE_SERIAL_IO is 0
101  * Revision 1.3.1.5.1.48 2016/06/21 12:06:46 thomas-b
102  * Moved mbgextio_calloc_ucap_entry to cfg_hlp so it can be used in deviohlp as well
103  * Revision 1.3.1.5.1.47 2016/06/21 08:41:30 thomas-b
104  * Removed old mbgextio_get_all_ucap_info function and static flag from mbgextio_calloc_ucap_entry
105  * Revision 1.3.1.5.1.46 2016/06/15 14:03:56 thomas-b
106  * Added function mbgextio_get_all_ucap_info
107  * Revision 1.3.1.5.1.45 2016/05/30 14:25:41 daniel
108  * Added missing code for HPS firmware rollback
109  * Revision 1.3.1.5.1.44 2016/05/30 13:57:59 daniel
110  * Support firmware rollback
111  * Revision 1.3.1.5.1.43 2016/05/26 10:59:27 thomas-b
112  * Added parameter ALL_NTP_CFG_INFO to mbgextio_get_all_ntp_status
113  * Moved check functions of specific features to cfg_hlp
114  * Revision 1.3.1.5.1.42 2016/05/25 08:43:37 philipp
115  * Redesign of ALL_[xxx]_[XXX] structures and (helper) functions
116  * Revision 1.3.1.5.1.41 2016/05/23 08:58:17 philipp
117  * New function mbgextio_get_all_gpio_state
118  * Revision 1.3.1.5.1.40 2016/05/23 08:24:17 philipp
119  * New function mbgextio_get_all_ims_state
120  * Revision 1.3.1.5.1.39 2016/05/11 13:21:36 thomas-b
121  * Implemented mbgextio_get_all_net_status_info
122  * Revision 1.3.1.5.1.38 2016/05/04 13:07:50 thomas-b
123  * Added function mbgextio_save_all_net_cfg_info
124  * Revision 1.3.1.5.1.37 2016/04/27 07:12:03 thomas-b
125  * Improved comments for mbgextio_get_all_net_cfg_info
126  * Revision 1.3.1.5.1.36 2016/04/26 14:42:57 thomas-b
127  * Added function mbgextio_get_all_net_cfg_info
128  * Revision 1.3.1.5.1.35 2016/04/25 14:47:43 martin
129  * *** empty log message ***
130  * Revision 1.3.1.5.1.34 2016/04/22 07:11:51 philipp
131  * Use pointer to pointer in get_all_* functions
132  * Revision 1.3.1.5.1.33 2016/04/22 05:01:49 thomas-b
133  * Added function mbgextio_save_all_ntp_cfg_info
134  * Revision 1.3.1.5.1.32 2016/04/20 14:54:33 thomas-b
135  * Added functions mbgextio_get_all_ntp_cfg_info and mbgextio_get_all_ntp_status
136  * Revision 1.3.1.5.1.31 2016/04/20 12:37:56 thomas-b
137  * Moved free functions for ALL_XMULTI_REF_INFO and ALL_XMULTI_REF_STATUS to cfg_hlp
138  * Revision 1.3.1.5.1.30 2016/04/18 14:07:04 thomas-b
139  * Changed comment
140  * Revision 1.3.1.5.1.29 2016/04/18 12:57:45 thomas-b
141  * Renamed mbgextio_set_all_xmulti_ref_settings to mbgextio_save_all_xmulti_ref_info
142  * Revision 1.3.1.5.1.28 2016/04/15 11:12:26 thomas-b
143  * Changed xmulti ref functions to alloc/free the whole struct
144  * Revision 1.3.1.5.1.27 2016/04/13 07:16:48 thomas-b
145  * Added function mbgextio_set_all_xmulti_ref_settings
146  * Revision 1.3.1.5.1.26 2016/04/12 13:28:40 philipp
147  * New helper functions to get all feature related structures at once
148  * Revision 1.3.1.5.1.25 2016/04/12 08:26:10 thomas-b
149  * Added mbgextio_get_all_xmulti_ref_info and mbgextio_get_all_xmulti_ref_status and appropriate free functions
150  * Revision 1.3.1.5.1.24 2016/04/11 11:14:39 daniel
151  * Support incremental update
152  * Revision 1.3.1.5.1.23 2016/03/22 11:51:42 thomas-b
153  * Moved new xport functions and structure definitions to mbgextio
154  * Revision 1.3.1.5.1.22 2016/03/18 07:10:18Z thomas-b
155  * Renamed new xport functions and structures
156  * Revision 1.3.1.5.1.21 2016/03/17 07:11:36 thomas-b
157  * Added functions mbgextio_setup_xport_list and mbgextio_free_xport_list
158  * Will have to be extended for use under Windows
159  * Revision 1.3.1.5.1.20 2016/03/16 13:47:15 martin
160  * *** empty log message ***
161  * Revision 1.3.1.5.1.19 2016/03/14 09:46:35 marvin
162  * Added function to set all ptp settings.
163  * Revision 1.3.1.5.1.18 2016/02/18 15:52:32Z daniel
164  * Account for diag file and license upgrade
165  * Revision 1.3.1.5.1.17 2016/02/15 12:13:23 daniel
166  * Updated function prototypes
167  * Revision 1.3.1.5.1.16 2015/12/01 11:34:06 martin
168  * *** empty log message ***
169  * Revision 1.3.1.5.1.15 2015/11/30 07:06:36 philipp
170  * Access function for control message's opaque / internal USB device info structure
171  * Revision 1.3.1.5.1.14 2015/11/26 16:19:26 martin
172  * Reworked check feature API causing some other API calls to be
173  * simplified/changed since receiver info is now stored inside
174  * the message control block.
175  * Revision 1.3.1.5.1.13 2015/11/25 10:59:52 philipp
176  * Extended TLV xmt functions by uid parameter
177  * Revision 1.3.1.5.1.12 2015/11/24 13:13:07 philipp
178  * Added / redesigned TLV functions
179  * Revision 1.3.1.5.1.11 2015/11/23 15:08:41 daniel
180  * More work on TLV stuff
181  * Revision 1.3.1.5.1.10 2015/11/23 14:17:02 philipp
182  * Moved TLV related sending / receiving functions to here
183  * Revision 1.3.1.5.1.9 2015/10/19 16:42:16 martin
184  * *** empty log message ***
185  * Revision 1.3.1.5.1.8 2015/10/19 09:35:10 martin
186  * *** empty log message ***
187  * Revision 1.3.1.5.1.7 2015/10/09 11:09:13 martin
188  * *** empty log message ***
189  * Revision 1.3.1.5.1.6 2015/10/07 16:03:21 martin
190  * *** empty log message ***
191  * Revision 1.3.1.5.1.5 2015/10/07 09:59:01 martin
192  * More common GNSS support.
193  * Revision 1.3.1.5.1.4 2015/10/06 14:12:27 martin
194  * Account for library module chk_tstr renamed to mbg_tstr.
195  * Revision 1.3.1.5.1.3 2015/09/07 13:24:10 martin
196  * Revision 1.3.1.5.1.2 2015/01/21 13:24:47 marvin
197  * Added XBP Adress specifier to mbgextio functions.
198  * Revision 1.3.1.5.1.1 2014/10/31 12:03:34Z martin
199  * Started to support XBP addressing.
200  * Revision 1.3.1.5 2014/03/18 11:17:00 gregoire
201  * Revision 1.3.1.4 2014/03/17 14:51:50Z martin
202  * Revision 1.3.1.3 2013/12/19 09:20:12Z martin
203  * Revision 1.3.1.2 2013/12/17 14:57:49Z martin
204  * Revision 1.3.1.1 2013/09/25 11:10:56Z marvin
205  * Added function for all_ptp_cfg_info.
206  * Revision 1.3 2013/02/01 15:52:16Z martin
207  * Updated function prototypes.
208  * Revision 1.2 2012/03/09 08:35:51Z martin
209  * Updated function prototypes.
210  * Revision 1.1 2011/09/21 15:59:59 martin
211  * Initial revision.
212  *
213  **************************************************************************/
214 
215 #ifndef _EXTIOHLP_H
216 #define _EXTIOHLP_H
217 
218 
219 /* Other headers to be included */
220 
221 #include <mbgextio.h>
222 #include <cfg_hlp.h>
223 #include <mbgerror.h>
224 #include <stdio.h>
225 #include <mbgserio.h>
226 
227 #ifdef _EXTIOHLP
228  #define _ext
229  #define _DO_INIT
230 #else
231  #define _ext extern
232 #endif
233 
234 /* Start of header body */
235 
236 #ifdef __cplusplus
237 extern "C" {
238 #endif
239 
240 /* ----- function prototypes begin ----- */
241 
242 /* This section was generated automatically */
243 /* by MAKEHDR, do not remove the comments. */
244 
265  int mbgextio_get_serial_settings( MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, RECEIVER_PORT_CFG *p_rpcfg ) ;
266 
289  int mbgextio_save_serial_settings( MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, RECEIVER_PORT_CFG *p_rpcfg, uint16_t port_idx ) ;
290 
308 
344 
364 
395 
414 
432 
450 
469 
492 
511 
528 
549 
565 
579 
594 
612 
635 
658 
681 
700 
718 
738 
757 
773 
793 
810 
827  _NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_ims_state( MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const ALL_IMS_INFO *info, ALL_IMS_STATE **pp ) ;
828 
845 
864 
881 
898 
915 
931 
947 
963 
980 
997 
1027  int mbgextio_chk_get_all_gnss_info( MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_GNSS_INFO *p_agi ) ;
1028 
1035  void rad_to_dms( const double *rad, DMS *dms, const char prefix ) ;
1036 
1046  void lla_to_dms( POS *pos ) ;
1047 
1065  _NO_MBG_API_ATTR int _MBG_API mbgextio_xmt_ack( MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, GPS_CMD cmd ) ;
1066 
1086  _NO_MBG_API_ATTR int _MBG_API mbgextio_xmt_nack( MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, GPS_CMD cmd, int error ) ;
1087 
1100  _NO_MBG_API_ATTR int _MBG_API mbgextio_begin_transaction( MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, uint16_t type, uint8_t set ) ;
1101 
1115  _NO_MBG_API_ATTR int _MBG_API mbgextio_end_transaction( MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, uint16_t type, int rc) ;
1116 
1133 
1151 
1160 
1169 
1180 
1193  _NO_MBG_API_ATTR int _MBG_API mbgextio_xmt_tlv_chunk( MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const void *buf, size_t buflen, void *user_data, void (*func) (const MBG_TLV_HDR*, void*)) ;
1194 
1205  _NO_MBG_API_ATTR int _MBG_API mbgextio_do_xmt_file( MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, FILE *f, uint32_t bytes) ;
1206 
1220  _NO_MBG_API_ATTR int _MBG_API mbgextio_xmt_file( MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const char *file, const char *rev, const char *dest_path, MBG_TLV_TYPE tlv_feat_type, MBG_TLV_UID uid ) ;
1221 
1234  _NO_MBG_API_ATTR int _MBG_API mbgextio_xmt_tlv_buffer( MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const void *buffer, size_t size, MBG_TLV_TYPE tlv_feat_type, MBG_TLV_UID uid) ;
1235 
1249  _NO_MBG_API_ATTR int _MBG_API mbgextio_xmt_tlv_blob( MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const void *blob, size_t size, MBG_TLV_UID uid, void *user_data, void (*func) (const MBG_TLV_HDR*, void*)) ;
1250 
1261  _NO_MBG_API_ATTR int _MBG_API mbgextio_xmt_cmd_line( MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const char *cmd_line, MBG_TLV_UID uid ) ;
1262 
1276  _NO_MBG_API_ATTR int _MBG_API mbgextio_req_file( MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const char *src_file, const char *dest_file, void **dest_buf, size_t *dest_buf_len, MBG_TLV_UID uid ) ;
1277 
1289  _NO_MBG_API_ATTR int _MBG_API mbgextio_req_all_timemon_status( MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, void *buf, uint16_t num_elem, size_t buflen) ;
1290 
1302  _NO_MBG_API_ATTR int _MBG_API mbgextio_req_file_with_cmd( MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const char *dest_path, MBG_TLV_TYPE tlv_feat_type, MBG_TLV_UID uid ) ;
1303 
1314  _NO_MBG_API_ATTR int _MBG_API mbgextio_xmt_tlv_cmd( MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_TLV_TYPE tlv_feat_type, MBG_TLV_UID uid ) ;
1315 
1321  _NO_MBG_API_ATTR int _MBG_API mbgextio_xmt_fw_update( MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const char *file, const char *rev, const char *dest_path, MBG_TLV_UID uid ) ;
1322 
1329 
1335  _NO_MBG_API_ATTR int _MBG_API mbgextio_xmt_binary_file( MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const char *file, const char *dest_path, MBG_TLV_UID uid ) ;
1336 
1342  _NO_MBG_API_ATTR int _MBG_API mbgextio_apply_license_file( MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const char *file, MBG_TLV_UID uid ) ;
1343 
1349  _NO_MBG_API_ATTR int _MBG_API mbgextio_xmt_diag_file( MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const char *file, MBG_TLV_UID uid ) ;
1350 
1356  _NO_MBG_API_ATTR int _MBG_API mbgextio_req_diag_file( MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const char *dest_path, MBG_TLV_UID uid ) ;
1357 
1368  _NO_MBG_API_ATTR int _MBG_API mbgextio_tlv_to_struct( MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, void *buf, size_t buflen ) ;
1369 
1383  _NO_MBG_API_ATTR int _MBG_API mbgextio_tlv_to_mem( MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, void **buf ) ;
1384 
1388  _NO_MBG_API_ATTR int _MBG_API mbgextio_tlv_to_file( MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const char *file ) ;
1389 
1390 
1391 /* ----- function prototypes end ----- */
1392 
1393 #ifdef __cplusplus
1394 }
1395 #endif
1396 
1397 
1398 /* End of header body */
1399 
1400 #undef _ext
1401 #undef _DO_INIT
1402 
1403 #endif /* _EXTIOHLP_H */
MBG_DATABASE_INFO info
Definition: cfg_hlp.h:736
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_ims_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_IMS_INFO **pp)
Read all IMS related information / configuration into an ALL_IMS_INFO structure.
_NO_MBG_API_ATTR int _MBG_API mbgextio_xmt_tlv_buffer(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const void *buffer, size_t size, MBG_TLV_TYPE tlv_feat_type, MBG_TLV_UID uid)
Send buffer to a host.
_NO_MBG_API_ATTR int _MBG_API mbgextio_save_all_svc_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const ALL_SERVICE_INFO *p)
Write all service configuration to a device.
_NO_MBG_API_ATTR int _MBG_API mbgextio_xmt_tlv_blob(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const void *blob, size_t size, MBG_TLV_UID uid, void *user_data, void(*func)(const MBG_TLV_HDR *, void *))
Send a file with a specific command to a host.
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_io_ports(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_MBG_IO_PORTS **pp)
Read all I/O port related information to an ALL_MBG_IO_PORTS structure.
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_syslog_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_SYSLOG_INFO **p)
Read all syslog configuration into an ALL_SYSLOG_INFO structure.
_NO_MBG_API_ATTR int _MBG_API mbgextio_req_file_with_cmd(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const char *dest_path, MBG_TLV_TYPE tlv_feat_type, MBG_TLV_UID uid)
Request a file with a specific command from a host.
_NO_MBG_API_ATTR int _MBG_API mbgextio_save_all_monitoring_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_MONITORING_INFO *p)
Write all monitoring configuration to a device.
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_svc_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_SERVICE_INFO **p)
Read all user info and store it into a newly allocated or reused ALL_USER_INFO.
_NO_MBG_API_ATTR int _MBG_API mbgextio_xmt_tlv_announce(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const MBG_TLV_ANNOUNCE *p)
Send a MBG_TLV_ANNOUNCE structure to a host.
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_gpio_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_GPIO_INFO **pp)
Read all GPIO related information / configuration into an ALL_GPIO_INFO structure.
All XBP information of a XBP supporting device.
Definition: cfg_hlp.h:207
_NO_MBG_API_ATTR int _MBG_API mbgextio_xmt_tlv_cmd(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_TLV_TYPE tlv_feat_type, MBG_TLV_UID uid)
Send a tlv cmd to a host.
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_net_status_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_NET_STATUS_INFO **p)
Read current network status into an ALL_NET_STATUS_INFO structure.
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_net_cfg_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_NET_CFG_INFO **p)
Read all network configuration into an ALL_NET_CFG_INFO structure.
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_ptp_cfg_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_PTP_CFG_INFO *p)
Read all PTP configuration into an ALL_PTP_CFG_INFO structure.
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_io_port_status(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_MBG_IO_PORTS *p)
Read all I/O port related status information to an ALL_MBG_IO_PORTS structure.
unsigned short uint16_t
Definition: words.h:213
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_snmp_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_SNMP_INFO **p)
Read all SNMP configuration into an ALL_SNMP_INFO structure.
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_ptp_v1_common_datasets(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_PTP_V1_COMMON_DATASETS **p)
Read all PTPv1 common datasets into a newly or re-allocated ALL_PTP_V1_COMMON_DATASETS structure...
_NO_MBG_API_ATTR int _MBG_API mbgextio_save_all_ptp_cfg_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const ALL_PTP_CFG_INFO *p)
Write all PTP settings to a device.
_NO_MBG_API_ATTR int _MBG_API mbgextio_save_all_net_cfg_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_NET_CFG_INFO *p)
Write all network settings to a device.
_NO_MBG_API_ATTR int _MBG_API mbgextio_xmt_cmd_line(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const char *cmd_line, MBG_TLV_UID uid)
Send a cmd line to a host.
int mbgextio_save_serial_settings(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, RECEIVER_PORT_CFG *p_rpcfg, uint16_t port_idx)
Send the configuration settings for a single serial port to a device.
_NO_MBG_API_ATTR int _MBG_API mbgextio_tlv_to_file(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const char *file)
Read TLV into a single file. See mbgextio_tlv_to_mem ::TODO.
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_events(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const ALL_MONITORING_INFO *info, ALL_EVENTS **p)
Read all events into an ALL_EVENTS structure.
#define _NO_MBG_API_ATTR
Definition: mbg_tgt.h:1032
uint16_t GPS_CMD
The type of a GPS command code.
Definition: gpsdefs.h:719
_NO_MBG_API_ATTR int _MBG_API mbgextio_save_all_ucap_net_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_UCAP_NET_INFO *p)
Write all user capture network settings to a device.
uint32_t MBG_TLV_TYPE
A data type to hold one of the MBG_TLV_TYPES or MBG_TLV_FEAT_TYPES.
Definition: gpsdefs.h:18088
_NO_MBG_API_ATTR int _MBG_API mbgextio_xmt_file(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const char *file, const char *rev, const char *dest_path, MBG_TLV_TYPE tlv_feat_type, MBG_TLV_UID uid)
Send a file with a specific command to a host.
All monitoring information.
Definition: cfg_hlp.h:346
Summary information on all supported GNSS systems.
Definition: cfg_hlp.h:447
int mbgextio_get_serial_settings(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, RECEIVER_PORT_CFG *p_rpcfg)
Read all serial port settings and supported configuration parameters.
_NO_MBG_API_ATTR int _MBG_API mbgextio_begin_transaction(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, uint16_t type, uint8_t set)
Begin a transaction.
Geographic longitude or latitude in [degrees, minutes, seconds].
Definition: mbggeo.h:90
_NO_MBG_API_ATTR int _MBG_API mbgextio_end_transaction(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, uint16_t type, int rc)
End a transaction.
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_xmulti_ref_status(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const ALL_XMULTI_REF_INFO *info, ALL_XMULTI_REF_STATUS **p)
Read all XMR status info into a newly or re-allocated ALL_XMULTI_REF_STATUS.
_NO_MBG_API_ATTR int _MBG_API mbgextio_save_all_ntp_cfg_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_NTP_CFG_INFO *p)
Write all NTP settings to a device.
_NO_MBG_API_ATTR int _MBG_API mbgextio_apply_license_file(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const char *file, MBG_TLV_UID uid)
Wrapper function for mbgextio_xmt_file ::TODO.
_NO_MBG_API_ATTR int _MBG_API mbgextio_tlv_to_mem(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, void **buf)
Read TLV into memory.
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_ucap_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_UCAP_INFO **p)
Read all user capture information and store it into a newly allocated or reused ALL_UCAP_INFO.
int mbgextio_chk_get_all_gnss_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_GNSS_INFO *p_agi)
Read or setup all GNSS status information.
A generic message send and receive control structure.
Definition: gpsserio.h:1972
All network configuration parameters.
Definition: cfg_hlp.h:236
All PTPv2 common datasets for a PTP device.
Definition: cfg_hlp.h:419
void lla_to_dms(POS *pos)
Convert mathematic coords to to geographic coords.
_NO_MBG_API_ATTR int _MBG_API mbgextio_save_all_syslog_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const ALL_SYSLOG_INFO *p)
Write all syslog configuration from an ALL_SYSLOG_INFO structure.
_NO_MBG_API_ATTR MBG_TLV_RCV_STATE *_MBG_API mbgextio_get_tlv_rcv_state(MBG_MSG_CTL *pmctl)
Get control message&#39;s internal TLV state.
All PTP configuration parameters.
Definition: cfg_hlp.h:369
Structure containing state information while reading TLV data.
Definition: gpsdefs.h:18330
_NO_MBG_API_ATTR int _MBG_API mbgextio_save_all_xmulti_ref_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_XMULTI_REF_INFO *p)
Set all extended multi ref settings to a device.
_NO_MBG_API_ATTR int _MBG_API mbgextio_xmt_diag_file(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const char *file, MBG_TLV_UID uid)
Wrapper function for mbgextio_xmt_file ::TODO move to firmware-specific module.
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_firmware_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_FIRMWARE_INFO **p)
Read all FW management info into a newly or re-allocated ALL_FIRMWARE_INFO structure.
_NO_MBG_API_ATTR int _MBG_API mbgextio_xmt_binary_file(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const char *file, const char *dest_path, MBG_TLV_UID uid)
Wrapper function for mbgextio_xmt_file ::TODO.
unsigned char uint8_t
Definition: words.h:210
All PTPv1 common datasets for a PTP device.
Definition: cfg_hlp.h:393
_NO_MBG_API_ATTR int _MBG_API mbgextio_req_file(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const char *src_file, const char *dest_file, void **dest_buf, size_t *dest_buf_len, MBG_TLV_UID uid)
Request a generic file of a target.
_NO_MBG_API_ATTR int _MBG_API mbgextio_xmt_ack(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, GPS_CMD cmd)
Transmit an ACK response to the sender.
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_user_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_USER_INFO **p)
Read all user info and store it into a newly allocated or reused ALL_USER_INFO.
_NO_MBG_API_ATTR MBG_USB_DEV_INFO *_MBG_API mbgextio_get_usb_dev_info(MBG_MSG_CTL *pmctl)
Get control message&#39;s internal USB device info structure.
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_ptp_v2_common_datasets(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_PTP_V2_COMMON_DATASETS **p)
Read all PTPv2 common datasets into a newly or re-allocated ALL_PTP_V2_COMMON_DATASETS structure...
_NO_MBG_API_ATTR int _MBG_API mbgextio_req_all_timemon_status(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, void *buf, uint16_t num_elem, size_t buflen)
Request full timemon-status of a timemon-device.
A geographic position represented in different formats.
Definition: mbggeo.h:113
uint32_t MBG_TLV_UID
A data type used to hold a unique ID (UID) for a TLV transaction.
Definition: gpsdefs.h:18075
A structure initiating a TLV transfer.
Definition: gpsdefs.h:18348
_NO_MBG_API_ATTR int _MBG_API mbgextio_xmt_fw_rollback(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_TLV_UID uid)
Wrapper function for mbgextio_xmt_tlv_cmd.
_NO_MBG_API_ATTR int _MBG_API mbgextio_save_all_io_ports(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const ALL_MBG_IO_PORTS *p)
Write all I/O port related configuration to a device.
_NO_MBG_API_ATTR int _MBG_API mbgextio_xmt_fw_update(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const char *file, const char *rev, const char *dest_path, MBG_TLV_UID uid)
Wrapper function for mbgextio_xmt_file ::TODO.
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_ims_state(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const ALL_IMS_INFO *info, ALL_IMS_STATE **pp)
Read all IMS related states into an ALL_IMS_STATE structure.
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_ntp_status(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const ALL_NTP_CFG_INFO *info, ALL_NTP_STATUS **p)
Read all NTP status info into a newly or re-allocated ALL_NTP_STATUS structure.
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_xbp_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_XBP_INFO **p)
Read all XBP information from a device into a newly or re-allocated ALL_XBP_INFO structure.
All SNMP configuration information.
Definition: cfg_hlp.h:258
_NO_MBG_API_ATTR int _MBG_API mbgextio_tlv_to_struct(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, void *buf, size_t buflen)
Read TLV data into a single structure.
_NO_MBG_API_ATTR int _MBG_API mbgextio_do_xmt_file(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, FILE *f, uint32_t bytes)
Send a file to a host.
#define _MBG_API
Definition: mbg_tgt.h:1020
_NO_MBG_API_ATTR int _MBG_API mbgextio_xmt_tlv_chunk(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const void *buf, size_t buflen, void *user_data, void(*func)(const MBG_TLV_HDR *, void *))
Send a buffer with variable length to a host.
TLV header structure containing information on current TLV transaction.
Definition: gpsdefs.h:18371
An XBP address specifier.
Definition: gpsdefs.h:17861
_NO_MBG_API_ATTR int _MBG_API mbgextio_save_all_database_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const ALL_DATABASE_INFO *p)
Write all database configurations from an ALL_DATABASE_INFO structure.
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_gpio_state(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const ALL_GPIO_INFO *info, ALL_GPIO_STATE **pp)
Read all GPIO related state information to an ALL_GPIO_STATE structure.
_NO_MBG_API_ATTR int _MBG_API mbgextio_save_all_user_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_USER_INFO *p)
Write all user configuration to a device.
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_database_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_DATABASE_INFO **p)
Read all database related info into an ALL_DATABASE_INFO structure.
_NO_MBG_API_ATTR int _MBG_API mbgextio_save_all_snmp_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_SNMP_INFO *p)
Write all SNMP settings to a device.
void rad_to_dms(const double *rad, DMS *dms, const char prefix)
Convert a mathematical angle [rad] to a geographic angle [degree, minute, second].
_NO_MBG_API_ATTR int _MBG_API mbgextio_xmt_nack(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, GPS_CMD cmd, int error)
Transmit a NACK response to the sender.
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_ntp_cfg_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_NTP_CFG_INFO **p)
Read all NTP configuration into a newly or re-allocated ALL_NTP_CFG_INFO structure.
_NO_MBG_API_ATTR int _MBG_API mbgextio_save_all_events_settings(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const ALL_EVENTS *p)
Write all event related configurations to a device.
int MBG_USB_DEV_INFO
Definition: mbgextio.h:450
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_xmulti_ref_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_XMULTI_REF_INFO **p)
Read all XMR info into a newly or re-allocated ALL_XMULTI_REF_INFO.
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_monitoring_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_MONITORING_INFO **p)
Read all monitoring configuration into an ALL_MONITORING_INFO structure.
_NO_MBG_API_ATTR int _MBG_API mbgextio_req_diag_file(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const char *dest_path, MBG_TLV_UID uid)
Wrapper function.
_NO_MBG_API_ATTR int _MBG_API mbgextio_get_all_ucap_net_info(MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, ALL_UCAP_NET_INFO **p)
Read all user capture network info and store it into a newly allocated or reused ALL_UCAP_NET_INFO.
All configuration parameters for all serial ports.
Definition: cfg_hlp.h:190