• Main Page
  • Modules
  • Index
  • File List
  • Globals

hal/nrf24le1/hal_pof.c

Go to the documentation of this file.
00001 /* Copyright (c) 2009 Nordic Semiconductor. All Rights Reserved.
00002  *
00003  * The information contained herein is confidential property of Nordic 
00004  * Semiconductor ASA.Terms and conditions of usage are described in detail 
00005  * in NORDIC SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT. 
00006  *
00007  * Licensees are granted free, non-transferable use of the information. NO
00008  * WARRENTY of ANY KIND is provided. This heading must NOT be removed from
00009  * the file.
00010  *              
00011  * $LastChangedRevision: 133 $
00012  */ 
00013 
00018 #include "nrf24le1.h"
00019 #include "hal_pof.h"
00020 
00021 void hal_pof_enable(bool enable)
00022 {
00023     if(enable)
00024         POFCON |= 0x80;
00025     else
00026         POFCON &= ~0x80;
00027 }
00028 
00029 void hal_pof_set_threshold(hal_pof_threshold_t threshold)
00030 {
00031     POFCON &= ~0x60;
00032     POFCON |= ((uint8_t)threshold & 0x60);
00033 }
00034 
00035 bool hal_pof_warning(void)
00036 {
00037     if(POFCON & 0x10)
00038         return true;
00039     else
00040         return false;
00041 }

Generated on Fri Apr 20 2012 14:11:45 for nRFGo SDK by  doxygen 1.7.2