platform_types.h 2 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11
/*
                                 platform_types.h
                             -------------------
  AUTHOR  : Lionel GAUTHIER
  COMPANY : EURECOM
  EMAIL   : Lionel.Gauthier@eurecom.fr

 ***************************************************************************/
#ifndef __PLATFORM_TYPES_H__
#    define __PLATFORM_TYPES_H__

12 13
#ifdef USER_MODE
# include "openair_types.h"
14 15 16 17 18 19 20 21 22 23 24 25 26 27
#endif

typedef unsigned char      u8_t;
typedef unsigned short int u16_t;
typedef unsigned int       u32_t;
typedef unsigned long  int u64_t;

typedef signed char        s8_t;
typedef signed short int   s16_t;
typedef signed int         s32_t;
typedef signed long  int   s64_t;

typedef unsigned int       config_action_t;

gauthier's avatar
gauthier committed
28 29
typedef u16_t              sdu_size_t;
typedef s16_t              sdu_ssize_t;
30 31
typedef unsigned int       tbs_size_t;
typedef unsigned int       tb_size_t;
gauthier's avatar
gauthier committed
32 33 34 35 36
typedef u16_t              rb_id_t;
typedef u16_t              srb_id_t;
typedef u32_t              frame_t;
typedef u32_t              sub_frame_t;
typedef u8_t               module_id_t;
37 38 39
typedef unsigned int       mui_t;
typedef unsigned int       confirm_t;
typedef unsigned int       rb_type_t;
gauthier's avatar
gauthier committed
40
typedef unsigned int       logical_chan_id_t;
41 42 43 44
typedef unsigned int       num_tb_t;
typedef unsigned int       crc_t;
typedef unsigned int       rlc_tx_status_t;
typedef unsigned int       rlc_mode_t;
gauthier's avatar
gauthier committed
45 46 47 48 49 50
typedef s16_t              rlc_sn_t;
typedef u16_t              rlc_usn_t;
typedef int                traffic_type_t;
typedef u32_t              mbms_session_id_t;
typedef u16_t              mbms_service_id_t;
typedef u16_t              rnti_t;
51 52 53 54 55 56 57 58 59

typedef signed int         rlc_op_status_t;

typedef unsigned char      crc8_t;
typedef unsigned short     crc16_t;
typedef unsigned int       crc32_t;

typedef signed char        boolean_t;

gauthier's avatar
gauthier committed
60 61 62 63 64 65 66 67 68
typedef enum MBMS_flag_e {
    MBMS_FLAG_NO       = 0,
    MBMS_FLAG_YES      = 1,
} MBMS_flag_t;

typedef enum eNB_flag_e {
    ENB_FLAG_NO       = 0,
    ENB_FLAG_YES      = 1,
} eNB_flag_t;
69 70

// just for integration
gauthier's avatar
gauthier committed
71
extern frame_t    frame;
72 73

#endif