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.

Dependencies:   BufferedArray

Dependents:   MBEDminiproject

Committer:
yangcq88517
Date:
Sat Nov 14 16:42:36 2015 +0000
Revision:
6:5f31ddc17239
Parent:
4:a0f1fba6c2fb
change to unsigned char array

Who changed what in which revision?

UserRevisionLine numberNew contents of line
yangcq88517 0:837e6c48e90d 1 #ifndef UK_AC_HERTS_SMARTLAB_XBEE_RemotePinConfigurationRequest
yangcq88517 0:837e6c48e90d 2 #define UK_AC_HERTS_SMARTLAB_XBEE_RemotePinConfigurationRequest
yangcq88517 0:837e6c48e90d 3
yangcq88517 0:837e6c48e90d 4 #include "Pin.h"
yangcq88517 0:837e6c48e90d 5 #include "Address.h"
yangcq88517 0:837e6c48e90d 6 #include "ATCommands.h"
yangcq88517 0:837e6c48e90d 7 #include "RemoteATCommandRequest.h"
yangcq88517 0:837e6c48e90d 8
yangcq88517 0:837e6c48e90d 9 class RemotePinConfigurationRequest : public RemoteATCommandRequest
yangcq88517 0:837e6c48e90d 10 {
yangcq88517 0:837e6c48e90d 11 public:
yangcq88517 0:837e6c48e90d 12 /**
yangcq88517 0:837e6c48e90d 13 * @param function
yangcq88517 0:837e6c48e90d 14 *DISABLED = 0x00,
yangcq88517 0:837e6c48e90d 15 *RESERVED_FOR_PIN_SPECIFIC_ALTERNATE_FUNCTIONALITIES = 0x01,
yangcq88517 0:837e6c48e90d 16 *ANALOG_INPUT_SINGLE_ENDED = 0x02,
yangcq88517 0:837e6c48e90d 17 *DIGITAL_INPUT_MONITORED = 0x03,
yangcq88517 0:837e6c48e90d 18 *DIGITAL_OUTPUT_DEFAULT_LOW = 0x04,
yangcq88517 0:837e6c48e90d 19 *DIGITAL_OUTPUT_DEFAULT_HIGH = 0x05,
yangcq88517 0:837e6c48e90d 20 *ALTERNATE_FUNCTIONALITIES_WHERE_APPLICABLE = 0x06//0x06~0x09
yangcq88517 0:837e6c48e90d 21 */
yangcq88517 6:5f31ddc17239 22 RemotePinConfigurationRequest(unsigned char frameID, Address * remoteAddress, Pin * pin, unsigned char function)
yangcq88517 4:a0f1fba6c2fb 23 : RemoteATCommandRequest(frameID, remoteAddress, pin->getCommand(), RemoteCommandOptions::ApplyChanges, &function, 0, 1)
yangcq88517 0:837e6c48e90d 24 { }
yangcq88517 0:837e6c48e90d 25
yangcq88517 0:837e6c48e90d 26 /**
yangcq88517 0:837e6c48e90d 27 * @param function
yangcq88517 0:837e6c48e90d 28 *DISABLED = 0x00,
yangcq88517 0:837e6c48e90d 29 *RESERVED_FOR_PIN_SPECIFIC_ALTERNATE_FUNCTIONALITIES = 0x01,
yangcq88517 0:837e6c48e90d 30 *ANALOG_INPUT_SINGLE_ENDED = 0x02,
yangcq88517 0:837e6c48e90d 31 *DIGITAL_INPUT_MONITORED = 0x03,
yangcq88517 0:837e6c48e90d 32 *DIGITAL_OUTPUT_DEFAULT_LOW = 0x04,
yangcq88517 0:837e6c48e90d 33 *DIGITAL_OUTPUT_DEFAULT_HIGH = 0x05,
yangcq88517 0:837e6c48e90d 34 *ALTERNATE_FUNCTIONALITIES_WHERE_APPLICABLE = 0x06//0x06~0x09
yangcq88517 0:837e6c48e90d 35 */
yangcq88517 6:5f31ddc17239 36 void setPinFunction(unsigned char function) { data[15] = function; }
yangcq88517 0:837e6c48e90d 37 };
yangcq88517 0:837e6c48e90d 38
yangcq88517 0:837e6c48e90d 39 #endif