Added LTE time column in itti_analyser.

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4392 818b1a75-f10b-46b9-bf7c-635c3b92a50f
This commit is contained in:
winckel
2013-11-14 07:46:06 +00:00
parent a58a5bc8c7
commit cce6793d0b
6 changed files with 89 additions and 14 deletions
@@ -11,6 +11,9 @@
#include "xml_parse.h"
types_t *messages_id_enum = NULL;
types_t *lte_time_type = NULL;
types_t *lte_time_frame_type = NULL;
types_t *lte_time_slot_type = NULL;
types_t *origin_task_id_type = NULL;
types_t *destination_task_id_type = NULL;
types_t *instance_type = NULL;
@@ -74,6 +77,30 @@ int locate_type(const char *type_name, types_t *head, types_t **type) {
return (next_type == NULL) ? RC_FAIL : RC_OK;
}
uint32_t get_lte_frame(buffer_t *buffer) {
uint32_t value = 0;
if (lte_time_type !=NULL)
{
/* Fetch instance value */
buffer_fetch_bits (buffer, lte_time_type->offset + lte_time_frame_type->offset, lte_time_frame_type->child->child->size, &value);
}
return value;
}
uint32_t get_lte_slot(buffer_t *buffer) {
uint32_t value = 0;
if (lte_time_type !=NULL)
{
/* Fetch instance value */
buffer_fetch_bits (buffer, lte_time_type->offset + lte_time_slot_type->offset, lte_time_slot_type->child->child->size, &value);
}
return value;
}
uint32_t get_message_id(types_t *head, buffer_t *buffer, uint32_t *message_id) {
uint32_t value;
@@ -2,6 +2,9 @@
#define LOCATE_ROOT_H_
extern types_t *messages_id_enum;
extern types_t *lte_time_type;
extern types_t *lte_time_frame_type;
extern types_t *lte_time_slot_type;
extern types_t *origin_task_id_type;
extern types_t *destination_task_id_type;
extern types_t *instance_type;
@@ -10,6 +13,10 @@ int locate_root(const char *root_name, types_t *head, types_t **root);
int locate_type(const char *type_name, types_t *head, types_t **type);
uint32_t get_lte_frame(buffer_t *buffer);
uint32_t get_lte_slot(buffer_t *buffer);
uint32_t get_message_id(types_t *head, buffer_t *buffer, uint32_t *message_id);
char *message_id_to_string(uint32_t message_id);