src/sim_sms.c File Reference

#include <ccid.h>
#include "sim-internal.h"
Include dependency graph for sim_sms.c:

Go to the source code of this file.

Functions

static void decode_7bit (const uint8_t *inp, size_t len)
static uint8_t hi_nibble (uint8_t byte)
static uint8_t lo_nibble (uint8_t byte)
const char * number_type (uint8_t type)
const char * number_plan (uint8_t type)
const char * fmt_number (uint8_t type, uint8_t len, const uint8_t *ptr)
void _sms_decode (struct _sms *sms, const uint8_t *ptr)

Function Documentation

void _sms_decode ( struct _sms sms,
const uint8_t *  ptr 
)
static void decode_7bit ( const uint8_t *  inp,
size_t  len 
) [static]

Definition at line 10 of file sim_sms.c.

Referenced by _sms_decode().

Here is the caller graph for this function:

const char* fmt_number ( uint8_t  type,
uint8_t  len,
const uint8_t *  ptr 
)

Definition at line 85 of file sim_sms.c.

References GSM_NUMBER_INTL, GSM_NUMBER_TYPE_MASK, hi_nibble(), and lo_nibble().

Referenced by _sms_decode().

Here is the call graph for this function:

Here is the caller graph for this function:

static uint8_t hi_nibble ( uint8_t  byte  )  [static]

Definition at line 31 of file sim_sms.c.

Referenced by _sms_decode(), and fmt_number().

Here is the caller graph for this function:

static uint8_t lo_nibble ( uint8_t  byte  )  [static]

Definition at line 36 of file sim_sms.c.

Referenced by _sms_decode(), and fmt_number().

Here is the caller graph for this function:

const char* number_plan ( uint8_t  type  ) 

Definition at line 63 of file sim_sms.c.

References GSM_PLAN_ERMES, GSM_PLAN_ISDN, GSM_PLAN_MASK, GSM_PLAN_NATIONAL, GSM_PLAN_PRIVATE, GSM_PLAN_TELEX, GSM_PLAN_UNKNOWN, and GSM_PLAN_X121.

Referenced by _sms_decode().

Here is the caller graph for this function:

const char* number_type ( uint8_t  type  ) 

Definition at line 41 of file sim_sms.c.

References GSM_NUMBER_ABBREV, GSM_NUMBER_ALNUM, GSM_NUMBER_INTL, GSM_NUMBER_NATIONAL, GSM_NUMBER_NET_SPEC, GSM_NUMBER_RESERVED, GSM_NUMBER_SUBSCR, GSM_NUMBER_TYPE_MASK, and GSM_NUMBER_UNKNOWN.

Referenced by _sms_decode().

Here is the caller graph for this function:

Generated on Sun Jan 2 08:36:02 2011 for ccid-utils by  doxygen 1.6.3