From 384f123ae09ed70b0a13a0de186a48ca7abc74ad Mon Sep 17 00:00:00 2001 From: laranjeiro Date: Mon, 9 Feb 2009 13:36:40 +0000 Subject: cesar: Removed the use of the read_word library except in the SAR module. (Closes #278). git-svn-id: svn+ssh://pessac/svn/cesar/trunk@3946 017c9cb6-072f-447c-8318-d5b54f68fe89 --- cesar/interface/inc/interface.h | 2 -- cesar/interface/inc/mme_process.h | 5 +++-- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'cesar/interface/inc') diff --git a/cesar/interface/inc/interface.h b/cesar/interface/inc/interface.h index fcae6f8ae6..bee22e4bfa 100644 --- a/cesar/interface/inc/interface.h +++ b/cesar/interface/inc/interface.h @@ -18,8 +18,6 @@ #include "interface/interface.h" #include "interface/defs-mmtype.h" -#include "lib/read_word.h" - /** * The buffer shall be provided to the CP. * \param ctx the interface context. diff --git a/cesar/interface/inc/mme_process.h b/cesar/interface/inc/mme_process.h index 483c4980a4..94263e68c3 100644 --- a/cesar/interface/inc/mme_process.h +++ b/cesar/interface/inc/mme_process.h @@ -13,6 +13,7 @@ * \ingroup interface * */ +#include "lib/bitstream.h" /** * Interface read the MMtype of the MME. @@ -24,7 +25,7 @@ extern inline uint interface_mmtype_get (u8 *buffer) { dbg_assert (buffer); - return read_u16_from_word (buffer + 0xF); + return bitstream_direct_read (buffer + 0xF, 0, 16); } /** @@ -40,7 +41,7 @@ extern inline uint interface_moduleid_get (u8 *buffer) { dbg_assert (buffer); - return read_u8_from_word (buffer + 0x13); + return bitstream_direct_read (buffer + 0x13, 0, 8); } /** -- cgit v1.2.3