Interface: tos.chips.tda5250.HplTda5250Data

interface HplTda5250Data

Interface for sending and receiving bytes of data over the TDA5250 Radio. This interface lets you receive and send bytes of data. In conjunction to this the HplTda5250DataControl interface is used to switch between receiving and sending.

See:
HplTda5250DataControl
Author:
Kevin Klues (klues@tkn.tu-berlin.de)

Commands
command error_t tx(uint8_t data) Transmit a byte of data over the radio.

Events
event void rxDone(uint8_t data) Signaled when a byte of data has been received from the radio.
event void txReady() Signalled when the next byte can be made ready to transmit.

Commands - Details

tx

command error_t tx(uint8_t data)

Transmit a byte of data over the radio. Before you call this command you must switch the radio to Tx mode via the HplTda5250DataControl interface.

Parameters:
data - The data byte to be transmitted.
Returns:
SUCCESS Byte successfully transmitted. FAIL Byte could not be transmitted.

Events - Details

rxDone

event void rxDone(uint8_t data)

Signaled when a byte of data has been received from the radio. Before you call this command you must switch the radio to Rx mode via the HplTda5250DataControl interface.

Parameters:
data - The data byte received.

txReady

event void txReady()

Signalled when the next byte can be made ready to transmit. Receiving such an event does not guarantee that the previous byte has already been transmitted, just that the next one can now be handed over for transmission.