Committer:
yangcq88517
Date:
Wed Mar 30 20:44:56 2016 +0000
Revision:
9:6e4ef3c302b4
Parent:
8:4da2ac03e35e
Address.cpp static broadcast variable fix

Who changed what in which revision?

UserRevisionLine numberNew contents of line
yangcq88517 8:4da2ac03e35e 1 #ifndef UK_AC_HERTS_SMARTLAB_XBEE_ZigBeePins
yangcq88517 8:4da2ac03e35e 2 #define UK_AC_HERTS_SMARTLAB_XBEE_ZigBeePins
yangcq88517 8:4da2ac03e35e 3
yangcq88517 8:4da2ac03e35e 4 #include "Pin.h"
yangcq88517 8:4da2ac03e35e 5
yangcq88517 8:4da2ac03e35e 6 /**
yangcq88517 8:4da2ac03e35e 7 * Pin configuration information for XBee S2 modules.
yangcq88517 8:4da2ac03e35e 8 */
yangcq88517 8:4da2ac03e35e 9 class ZigBeePins
yangcq88517 8:4da2ac03e35e 10 {
yangcq88517 8:4da2ac03e35e 11 public:
yangcq88517 8:4da2ac03e35e 12
yangcq88517 8:4da2ac03e35e 13 /** VCC - - Power supply.
yangcq88517 8:4da2ac03e35e 14 * Poor power supply can lead to poor radio performance especially if the supply voltage is not kept within tolerance or is excessively noisy. To help reduce noise a 1uF and 8.2pF capacitor are recommended to be placed as near to pin1 on the PCB as possible. If using a switching regulator for your power supply, switching frequencies above 500 kHz are preferred. Power supply ripple should be limited to a maximum 50 mV peak to peak.
yangcq88517 8:4da2ac03e35e 15 */
yangcq88517 8:4da2ac03e35e 16 static Pin * P1_VCC;
yangcq88517 8:4da2ac03e35e 17
yangcq88517 8:4da2ac03e35e 18 /// DOUT Output Output UART Data Out.
yangcq88517 8:4da2ac03e35e 19 static Pin * P2_DOUT;
yangcq88517 8:4da2ac03e35e 20
yangcq88517 8:4da2ac03e35e 21 /// DIN / CONFIG(active low) Input Input UART Data In
yangcq88517 8:4da2ac03e35e 22 static Pin * P3_DIN_CONFIG;
yangcq88517 8:4da2ac03e35e 23
yangcq88517 8:4da2ac03e35e 24 /// DIO12 Both Disabled Digital I/O 12.
yangcq88517 8:4da2ac03e35e 25 static Pin * P4_DIO12;
yangcq88517 8:4da2ac03e35e 26
yangcq88517 8:4da2ac03e35e 27 /**
yangcq88517 8:4da2ac03e35e 28 * RESET Both Open-Collector with pull-up
yangcq88517 8:4da2ac03e35e 29 * Module Reset (reset pulse must be at least 200 ns).
yangcq88517 8:4da2ac03e35e 30 */
yangcq88517 8:4da2ac03e35e 31 static Pin * P5_RESET;
yangcq88517 8:4da2ac03e35e 32
yangcq88517 8:4da2ac03e35e 33 /// RSSI PWM / DIO10 Both Output RX Signal Strength Indicator / Digital IO.
yangcq88517 8:4da2ac03e35e 34 static Pin * P6_RSSI_PWM_DIO10;
yangcq88517 8:4da2ac03e35e 35
yangcq88517 8:4da2ac03e35e 36 /// DIO11 Both Input Digital I/O 11.
yangcq88517 8:4da2ac03e35e 37 static Pin * P7_PWM_DIO11;
yangcq88517 8:4da2ac03e35e 38
yangcq88517 8:4da2ac03e35e 39 /// [reserved] - Disabled Do not connect.
yangcq88517 8:4da2ac03e35e 40 static Pin * P8_RESERVED;
yangcq88517 8:4da2ac03e35e 41
yangcq88517 8:4da2ac03e35e 42 /// DTR(avtive low) / SLEEP_RQ/ DIO8 Both Input Pin Sleep Control Line or Digital IO 8.
yangcq88517 8:4da2ac03e35e 43 static Pin * P9_DTR_SLEEP_DIO8;
yangcq88517 8:4da2ac03e35e 44
yangcq88517 8:4da2ac03e35e 45 /// GND - - Ground.
yangcq88517 8:4da2ac03e35e 46 static Pin * P10_GND;
yangcq88517 8:4da2ac03e35e 47
yangcq88517 8:4da2ac03e35e 48 /// DIO4 Both Disabled Digital I/O 4.
yangcq88517 8:4da2ac03e35e 49 static Pin * P11_DIO4;
yangcq88517 8:4da2ac03e35e 50
yangcq88517 8:4da2ac03e35e 51 /// CTS(active low) / DIO7 Both Output Clear-to-Send Flow Control or Digital I/O 7. CTS, if enabled, is an output.
yangcq88517 8:4da2ac03e35e 52 static Pin * P12_CTS_DIO7;
yangcq88517 8:4da2ac03e35e 53
yangcq88517 8:4da2ac03e35e 54 /// ON / SLEEP(active low) Output Output Module Status Indicator or Digital I/O 9.
yangcq88517 8:4da2ac03e35e 55 static Pin * P13_ON_SLEEP;
yangcq88517 8:4da2ac03e35e 56
yangcq88517 8:4da2ac03e35e 57 /// VREF Input - Not used for EM250. Used for programmable secondary processor. For compatibility with other XBee modules, we recommend connecting this pin voltage reference if Analog sampling is desired. Otherwise, connect to GND.
yangcq88517 8:4da2ac03e35e 58 static Pin * P14_VREF;
yangcq88517 8:4da2ac03e35e 59
yangcq88517 8:4da2ac03e35e 60 /// Associate / DIO5 Both Output Associated Indicator, Digital I/O 5.
yangcq88517 8:4da2ac03e35e 61 static Pin * P15_ASSOCIATE_DIO5;
yangcq88517 8:4da2ac03e35e 62
yangcq88517 8:4da2ac03e35e 63 /// RTS(active low) / DIO6 Both Input Request-to-Send Flow Control, Digital I/O 6. RTS, if enabled, is an input.
yangcq88517 8:4da2ac03e35e 64 static Pin * P16_RTS_DIO6;
yangcq88517 8:4da2ac03e35e 65
yangcq88517 8:4da2ac03e35e 66 /// AD3 / DIO3 Both Disabled Analog Input 3 or Digital I/O 3.
yangcq88517 8:4da2ac03e35e 67 static Pin * P17_AD3_DIO3;
yangcq88517 8:4da2ac03e35e 68
yangcq88517 8:4da2ac03e35e 69 /// AD2 / DIO2 Both Disabled Analog Input 2 or Digital I/O 2.
yangcq88517 8:4da2ac03e35e 70 static Pin * P18_AD2_DIO2;
yangcq88517 8:4da2ac03e35e 71
yangcq88517 8:4da2ac03e35e 72 /// AD1 / DIO1 Both Disabled Analog Input 1 or Digital I/O 1.
yangcq88517 8:4da2ac03e35e 73 static Pin * P19_AD1_DIO1;
yangcq88517 8:4da2ac03e35e 74
yangcq88517 8:4da2ac03e35e 75 /// AD0 / DIO0 / Commissioning Button Both Disabled Analog Input 0, Digital IO 0, or Commissioning Button.
yangcq88517 8:4da2ac03e35e 76 static Pin * P20_AD0_DIO0_COMMISSIONONG_BUTTON;
yangcq88517 8:4da2ac03e35e 77 };
yangcq88517 8:4da2ac03e35e 78
yangcq88517 8:4da2ac03e35e 79 #endif