SZSPTP ez430-RF2480 1.0

ZigBee Sensor Network with synchronized time and time-stamped measurements.
+ Collaboration diagram for System Interface:

Functions

UInt8 ccai_a_sys_reset_req ()
 Reset Request. More...
 
UInt8 ccai_s_sys_version ()
 Version request. More...
 
UInt8 ccai_s_sys_osal_nv_read (UInt16 id, UInt8 offset)
 Read memory request. More...
 
UInt8 ccai_s_sys_osal_nv_write (UInt16 id, UInt8 offset, UInt8 len, char *pBuf)
 Write memory request. More...
 
UInt8 ccai_s_sys_osal_start_timer (UInt8 id, UInt16 timeout)
 Timer start request. More...
 
UInt8 ccai_s_sys_osal_stop_timer (UInt8 id)
 Stop timer request. More...
 
UInt8 ccai_s_sys_random ()
 Random request. More...
 
UInt8 ccai_s_sys_adc_read (UInt8 channel, UInt8 resolution)
 Read ADC request. More...
 
UInt8 ccai_s_sys_gpio (UInt8 operation, UInt8 value)
 GPIO access request. More...
 
UInt8 ccai_a_sys_test_rf (UInt8 testMode, UInt16 frequency, UInt8 txPower)
 RF test configuration. More...
 
UInt8 ccai_s_sys_test_loopback (UInt8 len, char *pBuf)
 Loopback test request. More...
 

Detailed Description

Function Documentation

UInt8 ccai_a_sys_reset_req ( )

Reset Request.

Request CC2480 to reset (software reset).

Returns
1 if sent, 0 if fail (fail if SPI is busy).

Definition at line 852 of file cc2480ai.c.

References spi_reqBegin(), spi_reqData(), and spi_reqEnd().

+ Here is the call graph for this function:

UInt8 ccai_a_sys_test_rf ( UInt8  testMode,
UInt16  frequency,
UInt8  txPower 
)

RF test configuration.

Configure the CC2480 RF test modes.

Parameters
[in]testModeType of test mode to configure the CC2480 device.
[in]frequencyFrequency of operation.
[in]txPowerRF transmit power only for transmitting modes.
Returns
1 if sent, 0 if fail (fail if SPI is busy).

Definition at line 1166 of file cc2480ai.c.

References spi_reqBegin(), spi_reqData(), and spi_reqEnd().

+ Here is the call graph for this function:

UInt8 ccai_s_sys_adc_read ( UInt8  channel,
UInt8  resolution 
)

Read ADC request.

Request to read from CC2480 ADC.

Parameters
[in]channelSelects the channel of the ADC (determine inputs).
See also
Channels of the ADC of the CC2480.
Parameters
[in]resolutionResolution, in bits, of the ADC.
See also
Resolution of the CC2480 ADC.
Returns
1 if sent, 0 if fail (fail if SPI is busy).

Definition at line 1099 of file cc2480ai.c.

References spi_reqBegin(), spi_reqData(), and spi_reqEnd().

+ Here is the call graph for this function:

UInt8 ccai_s_sys_gpio ( UInt8  operation,
UInt8  value 
)

GPIO access request.

Command to access the CC2480 GPIO.

Parameters
[in]operationOperation on the GPIO.
[in]valueBit positions that receives the command.
Returns
1 if sent, 0 if fail (fail if SPI is busy).

Definition at line 1132 of file cc2480ai.c.

References spi_reqBegin(), spi_reqData(), and spi_reqEnd().

+ Here is the call graph for this function:

UInt8 ccai_s_sys_osal_nv_read ( UInt16  id,
UInt8  offset 
)

Read memory request.

Request to read CC2480 NV Memory.

Parameters
[in]idAttribute id of the NV item.
[in]offsetOffset in bytes from the beginning or the NV value.
Returns
1 if sent, 0 if fail (fail if SPI is busy).

Definition at line 923 of file cc2480ai.c.

References spi_reqBegin(), spi_reqData(), and spi_reqEnd().

+ Here is the call graph for this function:

UInt8 ccai_s_sys_osal_nv_write ( UInt16  id,
UInt8  offset,
UInt8  len,
char *  pBuf 
)

Write memory request.

Request to write CC2480 NV memory.

Parameters
[in]idAttribute id of the NV item.
[in]offsetOffset in bytes from the beginning or the NV value.
[in]lenlength of the NV value.
[in]pBufpointer to the data to write.
Returns
1 if sent, 0 if fail (fail if SPI is busy).

Definition at line 958 of file cc2480ai.c.

References spi_reqBegin(), spi_reqData(), and spi_reqEnd().

+ Here is the call graph for this function:

UInt8 ccai_s_sys_osal_start_timer ( UInt8  id,
UInt16  timeout 
)

Timer start request.

Request to start a software timer.

Parameters
[in]idId of the timer event, (0-3).
[in]timeoutAmount of time (ms) to the event expire.
Returns
1 if sent, 0 if fail (fail if SPI is busy).

Definition at line 996 of file cc2480ai.c.

References spi_reqBegin(), spi_reqData(), and spi_reqEnd().

+ Here is the call graph for this function:

UInt8 ccai_s_sys_osal_stop_timer ( UInt8  id)

Stop timer request.

Request to stop a previously scheduled software timer.

Parameters
[in]idId of the timer event, (0-3).
Returns
1 if sent, 0 if fail (fail if SPI is busy).

Definition at line 1028 of file cc2480ai.c.

References spi_reqBegin(), spi_reqData(), and spi_reqEnd().

+ Here is the call graph for this function:

UInt8 ccai_s_sys_random ( )

Random request.

Request to read a 16 bit random number.

Returns
1 if sent, 0 if fail (fail if SPI is busy).

Definition at line 1068 of file cc2480ai.c.

References spi_reqBegin(), and spi_reqEnd().

+ Here is the call graph for this function:

UInt8 ccai_s_sys_test_loopback ( UInt8  len,
char *  pBuf 
)

Loopback test request.

Request to test the physical interface, SPI or UART.

Parameters
[in]lenLength of the data to use on test.
[in]pBufPointer to the data to use on test.
Returns
1 if sent, 0 if fail (fail if SPI is busy or len > 253).

Definition at line 1189 of file cc2480ai.c.

References spi_reqBegin(), spi_reqData(), and spi_reqEnd().

+ Here is the call graph for this function:

UInt8 ccai_s_sys_version ( )

Version request.

Request software version information.

Returns
1 if sent, 0 if fail (fail if SPI is busy).

Definition at line 892 of file cc2480ai.c.

References spi_reqBegin(), and spi_reqEnd().

+ Here is the call graph for this function: