Hi:

This is part of my application codes.
module zqIntToRfmM
{
  uses {
    interface StdControl as SubControl;
    interface SendMsg as Send;

    interface CC1000Control;
    interface Leds;
  }
  provides {
    interface IntOutput;
    interface StdControl;
  }
}
implementation
{
  bool pending;
  struct TOS_Msg data;
  //uint8_t rfpower;

  command result_t StdControl.init() {
    pending = FALSE;

    call Leds.init();
    call Leds.redOff();
    call Leds.yellowOff();
    call Leds.greenOff();

    call CC1000Control.SetRFPower(0x01);// I think this is the lowest power.
    return call SubControl.init();
  }

I recompile and reinstall using "make install mica2". But seems there is
no change. I found in CC1000ControlM, it seems that the function
"SetRFPower" does not do actual work. The following two commands are
commented out. So I am a little confused about this. Can you tell me why?
Thanks very much.

  command result_t CC1000Control.SetRFPower(uint8_t power) {
    gCurrentParameters[0xb] = power;
    //rfpower = power;
    //call HPLChipcon.write(CC1K_PA_POW,rfpower); // Set power amp value
    return SUCCESS;
  }

Qian



***************************************************
Qian Zheng

Communication Networks
Electrical & Computer Engineering
Michigan Technological University

217 East Street
Houghton, MI, 49931

Office: EERC 716
Phone:  906-487-0023(o)

***************************************************

_______________________________________________
Tinyos-users mailing list
[EMAIL PROTECTED]
http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-users

Reply via email to