]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/rf230/RF230LayerP.nc
implement getChannel and rename interface to RadioChannel
[tinyos-2.x.git] / tos / chips / rf230 / RF230LayerP.nc
index dac7843912cef78dad90011c6f7b35fe716fe547..9c0a3624459c23831c40a21e984dadd8b4e1a340 100644 (file)
@@ -268,6 +268,11 @@ implementation
 
 /*----------------- CHANNEL -----------------*/
 
+       tasklet_async command uint8_t RadioState.getChannel()
+       {
+               return channel;
+       }
+
        tasklet_async command error_t RadioState.setChannel(uint8_t c)
        {
                c &= RF230_CHANNEL_MASK;