diff options
author | Aki Niemi <aki.niemi@nokia.com> | 2010-01-08 10:53:42 +0200 |
---|---|---|
committer | Aki Niemi <aki.niemi@nokia.com> | 2010-01-11 10:51:00 +0200 |
commit | c03cdaed9a16559e40360a601c07dbfacbce24ad (patch) | |
tree | 8e1f7a30b4495ba61eb5aaabab966eff74f54815 /drivers/isimodem/info.h | |
parent | 06afe598f542eb4dc8a17fb4e80bf440f85f7e27 (diff) | |
download | ofono-c03cdaed9a16559e40360a601c07dbfacbce24ad.tar.bz2 |
Split ISI codepoints to separate files
Also, adding infrastructure for debugging ISI messages, with APIs for
turning most common fields into human readable string format.
Diffstat (limited to 'drivers/isimodem/info.h')
-rw-r--r-- | drivers/isimodem/info.h | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/drivers/isimodem/info.h b/drivers/isimodem/info.h new file mode 100644 index 00000000..759721c9 --- /dev/null +++ b/drivers/isimodem/info.h @@ -0,0 +1,73 @@ +/* + * This file is part of oFono - Open Source Telephony + * + * Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * version 2 as published by the Free Software Foundation. + * + * This program 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 this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +#ifndef __ISIMODEM_INFO_H +#define __ISIMODEM_INFO_H + +#ifdef __cplusplus +extern "C" { +#endif + +#define PN_PHONE_INFO 0x1B +#define INFO_TIMEOUT 5 + +enum info_isi_cause { + INFO_OK = 0x00, + INFO_FAIL = 0x01, + INFO_NO_NUMBER = 0x02, + INFO_NOT_SUPPORTED = 0x03 +}; + +enum info_message_id { + INFO_SERIAL_NUMBER_READ_REQ = 0x00, + INFO_SERIAL_NUMBER_READ_RESP = 0x01, + INFO_VERSION_READ_REQ = 0x07, + INFO_VERSION_READ_RESP = 0x08, + INFO_PRODUCT_INFO_READ_REQ = 0x15, + INFO_PRODUCT_INFO_READ_RESP = 0x16, + INFO_COMMON_MESSAGE = 0xF0 +}; + +enum info_subblock { + INFO_SB_PRODUCT_INFO_NAME = 0x01, + INFO_SB_PRODUCT_INFO_MANUFACTURER = 0x07, + INFO_SB_SN_IMEI_PLAIN = 0x41, + INFO_SB_MCUSW_VERSION = 0x48 +}; + +enum info_product_info_type { + INFO_PRODUCT_NAME = 0x01, + INFO_PRODUCT_MANUFACTURER = 0x07 +}; + +enum info_serial_number_type { + INFO_SN_IMEI_PLAIN = 0x41 +}; + +enum info_version_type { + INFO_MCUSW = 0x01 +}; + +#ifdef __cplusplus +}; +#endif + +#endif /* !__ISIMODEM_INFO_H */ |