mipi的dsi全称_高通mipi dsi代码理解

在bootloader是lcd代码

长类型代码:

示例:static char video_on_cmd[] = {0x03, 0x00, 0x29, 0xC0, 0xFF, 0x12, 0x87 ,0xFF};

说明:4字节Hdr,Hdr=2长度+1类型+1标记,数据6~65541

---------------------Package Header------------

长度:0x03,0x00

类型:0x29  //Long Write

标记:0xC0 //第30位是长类型标记,31位结束标记

----------------------Data----------------------------

命令:0xFF

参数:0x12, 0x87

对齐:0xFF //4字节对齐

短类型代码:

示例:static char test_cmd[4] = {0xA1, 0x01, 0x14,0xA0};

说明:4字节,2位数据+1类型+1标记

--------------------Package Header--------------

命令:0xA1

参数:0x01

类型:0x14 //DCS_READ,1parameters

标记:0xA0

我理解高通平台和mipi协议标准有出入.

mipi协议标准:

Short Packet Structure

Packet Header (4 bytes)

Data Identifier (DI) * 1byte: Contains the Virtual Channel[7:6] and Data Type[5:0].

Packet Data * 2byte:Length is fixed at two bytes

Error Correction Code (ECC) * 1byte:allows single-bit errors to be corrected and 2-bit errors to be detected.

Packet Size

Fixed length 4 bytes

The first byte of any packet is the DI (Data Identifier) byte.

DI[7:6]:These two bits identify the data as directed to one of four virtual channels.

DI[5:0]:These six bits specify the Data Type.

Long Packet Structure

Data Identifier (DI) * 1byte:Contains the Virtual Channel[7:6] and Data Type[5:0]. Word Count (WC) * 2byte:defines the number of bytes in the Data Payload. Error Correction Code (ECC) * 1byte:allows single-bit errors to be corrected and 2-bit errors to be detected. Data Payload (0~65535 bytes) Length = WC × bytes Packet Footer (2 bytes):Checksum If the payload has length 0, then the Checksum calculation results in FFFFh If the Checksum isn’t calculated, the Checksum value is 0000h Packet Size 4 + (0~65535) + 2 = 6 ~ 65541 bytes

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值