Пример #1
0
int setCCxConfig(){
  // load the appropriate config table
  unsigned char cfg=Config.get(CONFIG_CONFIG_ID);
  CCx.Setup(cfg);  
  setMyAddress();
  setAddressCheck();
  setPowerAmplifier();
  setRFBeeMode();
  return OK;
}
Пример #2
0
// put the rfbee into sleep
int setSleepMode() {
#ifdef DEBUG
	printf("going to sleep\r\n");
#endif
	ccx_strobe(CCx_SIDLE);
	ccx_strobe(CCx_SPWD);
	sleepNow(SLEEP_MODE_IDLE);
	//sleepNow(SLEEP_MODE_PWR_DOWN);
#ifdef DEBUG
	printf("just woke up\r\n");
#endif
	setRFBeeMode();
	setSerialDataMode();
	return NOTHING;
}
Пример #3
0
int setCCxConfig() {
	// load the appropriate config table
	uint8_t cfg = config_get(CONFIG_CONFIG_ID);

	ccx_setup(cfg);
	//ccx_read_setup();
	// and restore the config settings
	setMyAddress();
	setDstAddress();
	setAddressCheck();
	setPowerAmplifier();
	setRFBeeMode();

	return OK;
}