44 unsigned int timeout = 1000)
48 mask = swapBytes32(mask);
50 return xbee.sendATCommand(
"CM", &response,
51 reinterpret_cast<uint8_t*
>(&mask), 4, timeout);
65 unsigned int timeout = 1000)
69 for (
int i = 0; i < 30; i++)
70 val &= ((uint32_t)channels[i]) << i;
106 unsigned int timeout = 1000)
108 uint8_t param = (uint8_t)dataRate80kbps;
111 return xbee.sendATCommand(
"BR", &response, ¶m, 1, timeout);
124 return xbee.sendATCommand(
"WR", &response,
nullptr, 0, timeout);
138 unsigned int timeout = 1000)
141 if (xbee.sendATCommand(
"ED", &response, &duration, 1, timeout))
146 for (
int i = 0; i < 30; i++)
148 energyDetectData[i] =
bool enableAllChannels(Xbee &xbee, unsigned int timeout=1000)
Enable communication on all available channels. Equivalent to calling setChannelMask(xbee,...
bool writeToMemory(Xbee &xbee, unsigned int timeout=1000)
Writes parameter values to non-volatile memory so that parameter modifications persist through subseq...
bool disableFrequencyHopping(Xbee &xbee, unsigned int timeout=1000)
Disables frequency hopping by allowing communication only on channel #29. Equivalent to calling setCh...
bool setDataRate(Xbee &xbee, bool dataRate80kbps, unsigned int timeout=1000)
Configures the desired xbee data rate.
bool energyDetect(Xbee &xbee, int *energyDetectData, uint8_t duration, unsigned int timeout=1000)
Performs an energy detect scan on all channels.
bool setChannelMask(Xbee &xbee, uint32_t mask, unsigned int timeout=1000)
Enables or disable the specified channels. Channel 9 and 24 are always disabled due to regulatory lim...
Driver for the VN100S IMU.
uint16_t getCommandDataLength() const
uint8_t * getCommandDataPointer()