XBee and XBee-PRO ZigBee RF modules provide cost-effective wireless connectivity to electronic devices. They are interoperable with other ZigBee PRO feature set devices, including devices from other vendors.
PinConfigurationRequest.h
00001 #ifndef UK_AC_HERTS_SMARTLAB_XBEE_PinConfigurationRequest 00002 #define UK_AC_HERTS_SMARTLAB_XBEE_PinConfigurationRequest 00003 00004 #include "Pin.h" 00005 #include "ATCommands.h" 00006 #include "ATCommandRequest.h" 00007 00008 class PinConfigurationRequest : public ATCommandRequest 00009 { 00010 public: 00011 /** 00012 * @param function 00013 *DISABLED = 0x00, 00014 *RESERVED_FOR_PIN_SPECIFIC_ALTERNATE_FUNCTIONALITIES = 0x01, 00015 *ANALOG_INPUT_SINGLE_ENDED = 0x02, 00016 *DIGITAL_INPUT_MONITORED = 0x03, 00017 *DIGITAL_OUTPUT_DEFAULT_LOW = 0x04, 00018 *DIGITAL_OUTPUT_DEFAULT_HIGH = 0x05, 00019 *ALTERNATE_FUNCTIONALITIES_WHERE_APPLICABLE = 0x06//0x06~0x09 00020 */ 00021 PinConfigurationRequest(unsigned char frameID, Pin * pin, unsigned char function) 00022 : ATCommandRequest(frameID, pin->getCommand(), &function, 0, 1) 00023 { } 00024 00025 /** 00026 * @param function 00027 *DISABLED = 0x00, 00028 *RESERVED_FOR_PIN_SPECIFIC_ALTERNATE_FUNCTIONALITIES = 0x01, 00029 *ANALOG_INPUT_SINGLE_ENDED = 0x02, 00030 *DIGITAL_INPUT_MONITORED = 0x03, 00031 *DIGITAL_OUTPUT_DEFAULT_LOW = 0x04, 00032 *DIGITAL_OUTPUT_DEFAULT_HIGH = 0x05, 00033 *ALTERNATE_FUNCTIONALITIES_WHERE_APPLICABLE = 0x06//0x06~0x09 00034 */ 00035 void setPinFunction(unsigned char function) { data[4] = function; } 00036 00037 }; 00038 00039 #endif
Generated on Tue Jul 12 2022 18:56:10 by 1.7.2