#include <ccid.h>
#include "sim-internal.h"
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) |
void _sms_decode | ( | struct _sms * | sms, | |
const uint8_t * | ptr | |||
) |
Definition at line 119 of file sim_sms.c.
References _sms::data, decode_7bit(), fmt_number(), hi_nibble(), lo_nibble(), number_plan(), number_type(), _sms::sender, _sms::sender_len, _sms::sender_type, SIM_SMS_STATUS_FREE, SIM_SMS_STATUS_READ, SIM_SMS_STATUS_SENT, SIM_SMS_STATUS_UNREAD, SIM_SMS_STATUS_UNSENT, _sms::sms_deliver, SMS_TP_MMS, SMS_TP_MTI, SMS_TP_RP, SMS_TP_SRI, SMS_TP_UDHI, _sms::smsc, _sms::smsc_len, _sms::smsc_type, _sms::status, _sms::timestamp, _sms::tp_dcs, _sms::tp_pid, and _sms::uda.
Referenced by sim_sms_restore().
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().
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().
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().
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().
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().
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().