2 * (C) 2010 Holger Hans Peter Freyther
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 #include <osmocom/gsm/protocol/gsm_03_41.h>
25 static uint8_t smscb_msg[] = { 0x40, 0x10, 0x05, 0x0d, 0x01, 0x11 };
27 int main(int argc, char **argv)
29 struct gsm341_ms_message *msg;
31 msg = (struct gsm341_ms_message *) smscb_msg;
32 printf("(srl) GS: %d MSG_CODE: %d UPDATE: %d\n",
33 msg->serial.gs, GSM341_MSG_CODE(msg), msg->serial.update);
34 printf("(msg) msg_id: %d\n", htons(msg->msg_id));
35 printf("(dcs) group: %d language: %d\n",
36 msg->dcs.language, msg->dcs.group);
37 printf("(pge) page total: %d current: %d\n",
38 msg->page.total, msg->page.current);