如何学习CC1310程序

Other Parts Discussed in Thread: CC1310

刚开始学习CC1310,上述图片用CCS7的“resource explorer”搜索“CC1310launchpad”出来的程序,在“software”下,“simplelink cc13x0 sdk-v:1.30.00.06”和“TI-RTOS for cc 2650-v2.21.00.06”里都有关于CC1310的例程,请问这些都有什么区别,对于刚开始学习,应该怎么上手,还有例程里的函数接口都是封装好了,好多一下子也不知道什么意思、怎么用。总之,该怎么上手CC1310程序

  • 可以多看下user guide,使用开发板调试,遇到具体问题到硬件, 射频和私有技术板块提问即可

  • 请教一下,在uart中:

    typedef enum UART_DataMode {
    UART_DATA_BINARY = 0, /*!< Data is not processed */
    UART_DATA_TEXT = 1 /*!< Data is processed according to above */
    } UART_DataMode;

    typedef enum UART_ReturnMode { ///只有在 UART_DATA_TEXT模式下使用
    /*! Unblock/callback when buffer is full. */
    UART_RETURN_FULL,

    /*! Unblock/callback when newline character is received. */
    UART_RETURN_NEWLINE
    } UART_ReturnMode;

    typedef enum UART_Echo {
    UART_ECHO_OFF = 0, /*!< Data is not echoed */
    UART_ECHO_ON = 1 /*!< Data is echoed */
    } UART_Echo;

    这两个枚举是什么意思,即

    typedef struct UART_Params {
    UART_Mode readMode; /*!< Mode for all read calls */ UART_MODE_BLOCKING还是 UART_MODE_CALLBACK 即阻塞还是回调模式
    UART_Mode writeMode; /*!< Mode for all write calls */ UART_MODE_BLOCKING还是 UART_MODE_CALLBACK 即阻塞还是回调模式
    unsigned int readTimeout; /*!< Timeout for read semaphore */
    unsigned int writeTimeout; /*!< Timeout for write semaphore */
    UART_Callback readCallback; /*!< Pointer to read callback */ 回调函数接口
    UART_Callback writeCallback; /*!< Pointer to write callback */ 回调函数接口
    UART_ReturnMode readReturnMode; /*!< Receive return mode */
    UART_DataMode readDataMode; /*!< Type of data being read */
    UART_DataMode writeDataMode; /*!< Type of data being written */
    UART_Echo readEcho; /*!< Echo received data back */
    uint32_t baudRate; /*!< Baud rate for UART */ 比特率
    UART_LEN dataLength; /*!< Data length for UART */ 数据位长度
    UART_STOP stopBits; /*!< Stop bits for UART */ 停止位位数
    UART_PAR parityType; /*!< Parity bit type for UART */ 校验位设置
    uintptr_t custom; /*!< Custom argument used by driver
    implementation */
    } UART_Params;

    中的readDataMode, readReturnMode,writeDataMode; readEcho;这四个怎么配置?

    还有readTimeout,writeTimeout怎么设置,代表什么意思?

    谢谢

  • 1. 给你个学习的连接 http://dev.ti.com/tirex/#/?link=Software%2FSimpleLink%20CC13x0%20SDK%2FSimpleLink%20Academy%2FOverview

    2. CC1310 建议发到无线连接-硬件、射频和私有协议论坛