[phy] add support for OQPSK modulation in 915MHz band (#3378)

This commit is contained in:
Zhanglong Xia
2019-03-08 08:09:55 -08:00
committed by Jonathan Hui
parent 4610811781
commit 96725a985e
43 changed files with 571 additions and 179 deletions
+3 -2
View File
@@ -559,7 +559,8 @@ void Interpreter::ProcessChannel(int argc, char *argv[])
mServer->OutputFormat("count: %lu\r\n", otChannelMonitorGetSampleCount(mInstance));
mServer->OutputFormat("occupancies:\r\n");
for (uint8_t channel = OT_RADIO_CHANNEL_MIN; channel <= OT_RADIO_CHANNEL_MAX; channel++)
for (uint8_t channel = otLinkGetPhyChannelMin(mInstance); channel <= otLinkGetPhyChannelMax(mInstance);
channel++)
{
uint32_t occupancy = otChannelMonitorGetChannelOccupancy(mInstance, channel);
@@ -3404,7 +3405,7 @@ void Interpreter::HandleEnergyReport(uint32_t aChannelMask, const uint8_t *aEner
for (uint8_t i = 0; i < aEnergyListLength; i++)
{
mServer->OutputFormat("%d ", aEnergyList[i]);
mServer->OutputFormat("%d ", static_cast<int8_t>(aEnergyList[i]));
}
mServer->OutputFormat("\r\n");