ZHDU116G January 2018 – June 2024 CC1312PSIP , CC1312R , CC1352P , CC1352R , CC2642R , CC2642R-Q1 , CC2652P , CC2652PSIP , CC2652R , CC2652RB , CC2652RSIP , CC2662R-Q1
该命令从指定的存储器映射起始地址,以指定的访问类型(8 位或 32 位)读取指定数量的元素,并在单独的通信数据包中返回读取的数据。请求的数据量必须小于通信数据包的最大大小。指定的访问类型必须为 0 或 1。值 0 强制进行 8 位读取访问。值 1 强制进行 32 位读取访问。指定的访问次数给出 8 位或 32 位读取访问的次数。当访问类型 = 0 时,访问次数的最大值为 253。当访问类型 = 1 时,访问次数的最大值为 63。包含该命令的数据包格式如下:
unsigned char ucCommand[9];
ucCommand[0] = <size=9>;
ucCommand[1] = <checksum>;
ucCommand[2] = COMMAND_MEMORY_READ;
ucCommand[3] = Memory Map Address [31:24];
ucCommand[4] = Memory Map Address [23:16];
ucCommand[5] = Memory Map Address [15:8];
ucCommand[6] = Memory Map Address [7:0];
ucCommand[7] = Access Type [7:0];
ucCommand[8] = Number of Accesses [7:0];