当前位置:文库下载 > 所有分类 > 工程科技 > 电子/电路 > cc1101程序
侵权投诉

cc1101程序

1. //----------------------------------------------------------------------------

2. // Description: This file contains functions that allow the MSP430 device to

3. // access the SPI interface of the CC1100/CC2500. There are multiple

4. // instances of each function; the one to be compiled is selected by the

5. // system variable TI_CC_RF_SER_INTF, defined in "TI_CC_hardware_board.h".

6. //

7. // MSP430/CC1100-2500 Interface Code Library v1.0

8. //

9. // K. Quiring

10. // Texas Instruments, Inc.

11. // July 2006

12. // IAR Embedded Workbench v3.41

13. //----------------------------------------------------------------------------

14.

15.

16. #include "include.h"

17. #include "TI_CC_spi.h"

18.

19.

20. //----------------------------------------------------------------------------

21. // void TI_CC_SPISetup(void)

22. //

23. // DESCRIPTION:

24. // Configures the assigned interface to function as a SPI port and

25. // initializes it.

26. //----------------------------------------------------------------------------

27. // void TI_CC_SPIWriteReg(char addr, char value)

28. //

29. // DESCRIPTION:

30. // Writes "value" to a single configuration register at address "addr".

31. //----------------------------------------------------------------------------

32. // void TI_CC_SPIWriteBurstReg(char addr, char *buffer, char count)

第1页

猜你喜欢

返回顶部