| 数据搜索系统,热门电子元器件搜索 |
|
AN3985 数据表(PDF) 13 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3985 数据表(HTML) 13 Page - STMicroelectronics |
|
13 / 105 page ![]() AN3985 CR95HF low level layer Doc ID 022255 Rev 2 13/105 4 CR95HF low level layer This layer is composed of: ● the lib_CR95HF.c source file ● the lib_CR95HF.h include file 4.1 Overview This layer supports all the commands defined in the CR95HF datasheet. Each CR95HF command corresponds to a specific function. As an example, the function calling the ECHO command is u8 CR95HF_Echo (void). Additional functions are described in Table 8: CR95HF layer additional functions. Application developers can use the functions described in Table 7: CR95HF layer functions based on CR95HF commands to create their own higher level functions. Refer to the CR95HF datasheet for more details on the commands. 4.2 Structures 4.2.1 Command format A command from MCU to CR95HF is composed of three fields: ● command code ● length ● data The dedicated structure is CR95HF_CommandSending. Table 2 lists the fields of a generic command to CR95HF, the number of bytes and the name of the dedicated structure member. The structure definition of a command to CR95HF is: typedef struct { u8 cmd_code; u8 data_length; u8 data[MAX_DATASENT_LENGTH]; }CR95HF_CommandSending; Table 2. Command fields formats Field Length Dedicated structure Command code 1 byte cmd_code Length 1 byte data_lenght Data Up to 255 bytes data |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |