return sizeof(rf212packet_header_t) - 1 + TOSH_DATA_LENGTH + sizeof(ieee154_footer_t);
}
- async command uint8_t RF212DriverConfig.getDefaultChannel()
- {
- return RF212_DEF_CHANNEL;
- }
-
async command bool RF212DriverConfig.requiresRssiCca(message_t* msg)
{
return call IEEE154Packet.isDataFrame(msg);
*/
async command uint8_t getMaxLength();
- /**
- * This command is used at power up to set the default channel.
- * The default CC2420 channel is 26.
- */
- async command uint8_t getDefaultChannel();
-
/**
* Returns TRUE if before sending this message we should make sure that
* the channel is clear via a very basic (and quick) RSSI check.
writeRegister(RF212_PHY_TX_PWR, RF212_DEF_RFPOWER);
txPower = RF212_DEF_RFPOWER;
- channel = call RF212DriverConfig.getDefaultChannel() & RF212_CHANNEL_MASK;
+ channel = RF212_DEF_CHANNEL & RF212_CHANNEL_MASK;
writeRegister(RF212_PHY_CC_CCA, RF212_CCA_MODE_VALUE | channel);
call SLP_TR.set();
return sizeof(rf230packet_header_t) - 1 + TOSH_DATA_LENGTH + sizeof(ieee154_footer_t);
}
- async command uint8_t RF230DriverConfig.getDefaultChannel()
- {
- return RF230_DEF_CHANNEL;
- }
-
async command bool RF230DriverConfig.requiresRssiCca(message_t* msg)
{
return call IEEE154Packet.isDataFrame(msg);
*/
async command uint8_t getMaxLength();
- /**
- * This command is used at power up to set the default channel.
- * The default CC2420 channel is 26.
- */
- async command uint8_t getDefaultChannel();
-
/**
* Returns TRUE if before sending this message we should make sure that
* the channel is clear via a very basic (and quick) RSSI check.
writeRegister(RF230_PHY_TX_PWR, RF230_TX_AUTO_CRC_ON | (RF230_DEF_RFPOWER & RF230_TX_PWR_MASK));
txPower = RF230_DEF_RFPOWER & RF230_TX_PWR_MASK;
- channel = call RF230DriverConfig.getDefaultChannel() & RF230_CHANNEL_MASK;
+ channel = RF230_DEF_CHANNEL & RF230_CHANNEL_MASK;
writeRegister(RF230_PHY_CC_CCA, RF230_CCA_MODE_VALUE | channel);
call SLP_TR.set();