Interface: tos.chips.cc2420.interfaces.CC2420Packet

interface CC2420Packet

Author:
Jonathan Hui <jhui@archrock.com>
David Moss
Chad Metcalf

Commands
command uint8_t getLqi(message_t *p_msg) Get lqi value for a given packet.
command uint8_t getPower(message_t *p_msg) Get transmission power setting for current packet.
command int8_t getRssi(message_t *p_msg) Get rssi value for a given packet.
command void setPower(message_t *p_msg, uint8_t power) Set transmission power for a given packet.

Commands - Details

getLqi

command uint8_t getLqi(message_t *p_msg)

Get lqi value for a given packet. For received packets, it is the link quality indicator value when receiving that packet. For sent packets, it is the link quality indicator value of the ack if an ack was received.

getPower

command uint8_t getPower(message_t *p_msg)

Get transmission power setting for current packet.

Parameters:
the - message

getRssi

command int8_t getRssi(message_t *p_msg)

Get rssi value for a given packet. For received packets, it is the received signal strength when receiving that packet. For sent packets, it is the received signal strength of the ack if an ack was received.

setPower

command void setPower(message_t *p_msg, uint8_t power)

Set transmission power for a given packet. Valid ranges are between 0 and 31.

Parameters:
p_msg - the message.
power - transmission power.