1 /* 2 * Copyright 2018 Oticon A/S 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 #ifndef BS_PC_BASE_TYPES_H 7 #define BS_PC_BASE_TYPES_H 8 9 #include "bs_types.h" 10 11 #ifdef __cplusplus 12 extern "C"{ 13 #endif 14 15 typedef uint32_t pc_header_t; 16 17 /** Message headers: **/ 18 /* The device wants to wait */ 19 #define PB_MSG_WAIT 0x01 20 /* The device is disconnecting from the phy or viceversa: */ 21 #define PB_MSG_DISCONNECT 0xFFFF 22 /* The device is disconnecting from the phy, and is requesting the phy to end the simulation ASAP */ 23 #define PB_MSG_TERMINATE 0xFFFE 24 /* The requested time tick has just finished */ 25 #define PB_MSG_WAIT_END 0x81 26 27 /** 28 * Structure following a PB_MSG_WAIT command 29 */ 30 typedef struct __attribute__ ((packed)) { 31 bs_time_t end; 32 } pb_wait_t; 33 34 #ifdef __cplusplus 35 } 36 #endif 37 38 #endif 39