Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of d7a_1x by
d7a_sys.h
00001 #ifndef _D7A_SYS_H_ 00002 #define _D7A_SYS_H_ 00003 00004 //====================================================================== 00005 // Dynamic Trace Module-IDs 00006 //---------------------------------------------------------------------- 00007 typedef enum{ 00008 TMOD_HAL =0, 00009 TMOD_KAL, 00010 TMOD_RAC, 00011 TMOD_MAC, 00012 TMOD_TRAN, 00013 TMOD_PRES, 00014 TMOD_ALP, 00015 TMOD_TST, 00016 TMOD_DRV, 00017 TMOD_APP, 00018 TMOD_CUP, 00019 TMOD_XCV, 00020 TMOD_D7A, 00021 TMOD_SVC, 00022 00023 KAL_DBG_TLEV_MOD_QTY 00024 }d7a_dbg_tlev_mod_t; 00025 00026 #define _HAL_EVENT_BASE (1 << 10) 00027 #define _BUTTON_EVENT (0 << 5) 00028 00029 enum 00030 { 00031 // Button events 00032 HAL_EVT_BUTTON1 = _HAL_EVENT_BASE+_BUTTON_EVENT, 00033 HAL_EVT_BUTTON2, 00034 HAL_EVT_BUTTON3, 00035 HAL_EVT_BUTTON4, 00036 HAL_EVT_BUTTON5, 00037 HAL_EVT_BUTTON6, 00038 HAL_EVT_BUTTON7, 00039 HAL_EVT_BUTTON8, 00040 HAL_EVT_BUTTON9, 00041 }; 00042 00043 00044 d7a_errors_t d7a_sys_open(void); 00045 d7a_errors_t d7a_sys_close(void); 00046 void d7a_sys_new_pkt(d7a_com_rx_msg_t* pkt); 00047 d7a_com_rx_msg_t* d7a_sys_wait_pkt(uint32_t millisec = osWaitForever); 00048 void d7a_sys_tlev(uint8_t mod, uint16_t lev); 00049 bool d7a_sys_ping_modem(uint32_t millisec = osWaitForever); 00050 void d7a_sys_software_reset(void); 00051 void d7a_sys_button(uint8_t button); 00052 void d7a_sys_xack(void); 00053 00054 00055 00056 00057 #endif
Generated on Sun Jul 17 2022 09:41:51 by
1.7.2
