85 lines
2.7 KiB
C
85 lines
2.7 KiB
C
/*
|
|
* Copyright (C) 2009 Mamadou Diop.
|
|
*
|
|
* Contact: Mamadou Diop <diopmamadou(at)doubango.org>
|
|
*
|
|
* This file is part of Open Source Doubango Framework.
|
|
*
|
|
* DOUBANGO is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* DOUBANGO is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with DOUBANGO.
|
|
*
|
|
*/
|
|
|
|
/**@file tsms_tpdu_deliver.h
|
|
* @brief SMS TPDU SMS-DELIVER message as per 3GPP TS 23.040 section 9.2.2.1.
|
|
*
|
|
* @author Mamadou Diop <diopmamadou(at)doubango.org>
|
|
*
|
|
* @date Created: Sat Nov 8 16:54:58 2009 mdiop
|
|
*/
|
|
#ifndef TINYSMS_TSMS_TPDU_DELIVER_H
|
|
#define TINYSMS_TSMS_TPDU_DELIVER_H
|
|
|
|
#include "tinysms_config.h"
|
|
|
|
#include "tinySMS/tsms_common.h"
|
|
|
|
|
|
TSMS_BEGIN_DECLS
|
|
|
|
/** SMS TPDU SMS-DELIVER message as per 3GPP TS 23.040 section 9.2.2.1.
|
|
*/
|
|
typedef struct tsms_tpdu_deliver_s
|
|
{
|
|
TSMS_DECLARE_TPDU_MESSAGE;
|
|
|
|
/** TP More Messages to Send (M - 1b)
|
|
* Parameter indicating whether or not there are more messages to send. */
|
|
unsigned mms:1;
|
|
/** TP-Loop-Prevention (O - 1b)
|
|
* Parameter indicating that SMS applications should inhibit forwarding or automatic message generation that could cause infinite looping. */
|
|
unsigned lp:2;
|
|
/** TP Reply Path (M - 1b)
|
|
* Parameter indicating the request for Reply Path. */
|
|
unsigned rp:1;
|
|
/** TP User Data Header Indicator (O - 1b)
|
|
* Parameter indicating that Reply Path exists. */
|
|
unsigned udhi:1;
|
|
/** TP Status Report Indicator (O - 1b)
|
|
* Parameter indicating if the SME has requested a status report. */
|
|
unsigned sri:1;
|
|
/** TP Originating Address (M - 2-12o)
|
|
* Address of the originating SME. */
|
|
tsms_address_t* oa;
|
|
/** TP Protocol Identifier (M - o)
|
|
* Parameter identifying the above layer protocol, if any. */
|
|
uint8_t pid;
|
|
/** TP Data Coding Scheme (M - o)
|
|
* Parameter identifying the coding scheme within the TP-User-Data. */
|
|
uint8_t dcs;
|
|
/** TP Service Centre Time Stamp (M - 7o)
|
|
* Parameter identifying time when the SC received the message. */
|
|
uint8_t scts[7];
|
|
/** TP User Data Length (M - I)
|
|
* Parameter indicating the length of the TP User Data field to follow. */
|
|
unsigned udl;
|
|
/** TP User Data (O - v)
|
|
* User data. */
|
|
uint8_t* ud;
|
|
}
|
|
tsms_tpdu_deliver_t;
|
|
|
|
TSMS_END_DECLS
|
|
|
|
#endif /* TINYSMS_TSMS_TPDU_DELIVER_H */
|