diff options
Diffstat (limited to 'tinySMS/include/tinysms/tpdu/tsms_tpdu_report.h')
-rwxr-xr-x | tinySMS/include/tinysms/tpdu/tsms_tpdu_report.h | 75 |
1 files changed, 37 insertions, 38 deletions
diff --git a/tinySMS/include/tinysms/tpdu/tsms_tpdu_report.h b/tinySMS/include/tinysms/tpdu/tsms_tpdu_report.h index 0eb1874..d42279c 100755 --- a/tinySMS/include/tinysms/tpdu/tsms_tpdu_report.h +++ b/tinySMS/include/tinysms/tpdu/tsms_tpdu_report.h @@ -2,19 +2,19 @@ * 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. * @@ -40,41 +40,40 @@ TSMS_BEGIN_DECLS /** SMS TPDU SMS-DELIVER-REPORT or SMS-SUBMIT-REPORT * message as per 3GPP TS 23.040 section 9.2.2.1a or 9.2.2.2a. */ -typedef struct tsms_tpdu_report_s -{ - TSMS_DECLARE_TPDU_MESSAGE; - - tsms_address_t* smsc; - - /** Indicates whether the Report is for RP-ERROR or not (RP-ACK).*/ - tsk_bool_t error; - - /** TP-User-Data-Header-Indication (O - 1b) - * Parameter indicating that the TP-UD field contains a Header. */ - unsigned udhi:1; - /** TP Failure Cause (M - I) - * Parameter indicating the reason for SMS DELIVER/SUBMIT failure. - See clause 9.2.3.22 */ - uint8_t fcs; - /** TP Parameter Indicator (M - o) - * Parameter indicating the presence of any of the optional parameters which follow. */ - uint8_t pi; - /** TP Service Centre Time Stamp (M - 7o) - * Parameter identifying the time when the SC received the SMS DELIVER/SUBMIT. - * See clause 9.2.3.11. */ - uint8_t scts[7]; - /** TP Protocol Identifier (O - o) - * See clause 9.2.3.9. */ - //(base)uint8_t pid; - /** TP Data Coding Scheme (O - o) - * See clause 9.2.3.10. */ - //(base)uint8_t dcs; - /** TP User Data Length (O- o) - * See clause 9.2.3.16. */ - //(base)uint8_t udl; - /** TP User Data (O - v) - * User data. */ - //(base)tsk_buffer_t* ud; +typedef struct tsms_tpdu_report_s { + TSMS_DECLARE_TPDU_MESSAGE; + + tsms_address_t* smsc; + + /** Indicates whether the Report is for RP-ERROR or not (RP-ACK).*/ + tsk_bool_t error; + + /** TP-User-Data-Header-Indication (O - 1b) + * Parameter indicating that the TP-UD field contains a Header. */ + unsigned udhi:1; + /** TP Failure Cause (M - I) + * Parameter indicating the reason for SMS DELIVER/SUBMIT failure. + See clause 9.2.3.22 */ + uint8_t fcs; + /** TP Parameter Indicator (M - o) + * Parameter indicating the presence of any of the optional parameters which follow. */ + uint8_t pi; + /** TP Service Centre Time Stamp (M - 7o) + * Parameter identifying the time when the SC received the SMS DELIVER/SUBMIT. + * See clause 9.2.3.11. */ + uint8_t scts[7]; + /** TP Protocol Identifier (O - o) + * See clause 9.2.3.9. */ + //(base)uint8_t pid; + /** TP Data Coding Scheme (O - o) + * See clause 9.2.3.10. */ + //(base)uint8_t dcs; + /** TP User Data Length (O- o) + * See clause 9.2.3.16. */ + //(base)uint8_t udl; + /** TP User Data (O - v) + * User data. */ + //(base)tsk_buffer_t* ud; } tsms_tpdu_report_t; |