mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-23 01:29:33 +00:00
added declaration for simple_cc2420_get_txpower.
This commit is contained in:
parent
057cd5ac05
commit
8a38ffea87
@ -28,7 +28,7 @@
|
||||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* @(#)$Id: simple-cc2420.c,v 1.22 2008/01/15 08:52:16 nvt-se Exp $
|
||||
* @(#)$Id: simple-cc2420.c,v 1.23 2008/01/15 08:53:52 nvt-se Exp $
|
||||
*/
|
||||
/*
|
||||
* This code is almost device independent and should be easy to port.
|
||||
@ -600,7 +600,7 @@ simple_cc2420_set_txpower(u8_t power)
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
int
|
||||
simple_cc2420_get_txpower()
|
||||
simple_cc2420_get_txpower(void)
|
||||
{
|
||||
return (int)(getreg(CC2420_TXCTRL) & 0x001f);
|
||||
}
|
||||
|
@ -28,7 +28,7 @@
|
||||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: simple-cc2420.h,v 1.7 2008/01/07 14:41:34 adamdunkels Exp $
|
||||
* $Id: simple-cc2420.h,v 1.8 2008/01/15 08:53:52 nvt-se Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -66,6 +66,7 @@ extern const struct radio_driver simple_cc2420_driver;
|
||||
* \param power Between 1 and 31.
|
||||
*/
|
||||
void simple_cc2420_set_txpower(u8_t power);
|
||||
int simple_cc2420_get_txpower(void);
|
||||
#define SIMPLE_CC2420_TXPOWER_MAX 31
|
||||
#define SIMPLE_CC2420_TXPOWER_MIN 0
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user