This short program illustrates how to use the DS130x_I2C library. My objective is to share the same RTC with Microchip 18F MCU.

Dependencies:   mbed DebugLibrary

Committer:
Yann
Date:
Fri Feb 11 10:17:20 2011 +0000
Revision:
1:995212d326ca
Parent:
0:f30e2135b0db
V0.0.0.2

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Yann 0:f30e2135b0db 1 #include "UMTSStick.h"
Yann 0:f30e2135b0db 2
Yann 0:f30e2135b0db 3 const UMTSSwitchingInfo UMTSwitchingTable[UMTS_SWITCHING_COUNT] = {
Yann 0:f30e2135b0db 4
Yann 0:f30e2135b0db 5 /*
Yann 0:f30e2135b0db 6 struct UMTSSwitchingInfo
Yann 0:f30e2135b0db 7 {
Yann 0:f30e2135b0db 8 uint16_t cdfsVid;
Yann 0:f30e2135b0db 9 uint16_t cdfsPid;
Yann 0:f30e2135b0db 10 uint16_t serialVid;
Yann 0:f30e2135b0db 11 uint16_t serialPidList[16];
Yann 0:f30e2135b0db 12 byte targetClass;
Yann 0:f30e2135b0db 13 bool huaweiPacket;
Yann 0:f30e2135b0db 14 byte cdfsPacket[31];
Yann 0:f30e2135b0db 15 };
Yann 0:f30e2135b0db 16 */
Yann 0:f30e2135b0db 17
Yann 0:f30e2135b0db 18 //Huawei E220, E230, E270, E870
Yann 0:f30e2135b0db 19 { 0x12d1, 0x1003, 0, {0}, 0xFF, true, {0} },
Yann 0:f30e2135b0db 20
Yann 0:f30e2135b0db 21 //Huawei E1550, E270+
Yann 0:f30e2135b0db 22 { 0x12d1, 0x1446, 0x12d1, {0x1001, 0x1406, 0x140c, 0x14ac/*, 0x1003*/}, 0, false, { 0x55, 0x53, 0x42, 0x43, 0x12, 0x34, 0x56, 0x78, 0, 0, 0, 0, 0, 0, 0, 0x11, 0x06, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }
Yann 0:f30e2135b0db 23
Yann 0:f30e2135b0db 24 };