代码拉取完成,页面将自动刷新
同步操作将从 城meto/ohpart_gen_code 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
{
"attributes":{
"relate_path":"//foundation/communication/serial",
"subsys_name":"communication",
"namespace":"SwanLink",
"part_name":"serial",
"key_word":"serial",
"description":"串口通信",
"service_id":"COMMUNICATION_SERIAL_SERVICE_ID(30050)",
"adapted_system":"standard"
},
"memory":{
"rom":"",
"ram":""
},
"typedef":[
{"type":"struct","def":"SerialPort","values":[
]},
{
"type":"enum","def":"SERIAL_PARITY","values":[
{"def":"SERIAL_PARITY_NONE","value":0,"note":"无校验"},
{"def":"SERIAL_PARITY_ODD","value":1,"note":"奇校验"},
{"def":"SERIAL_PARITY_EVEN","value":2,"note":"偶校验"}
]
},
{
"type":"enum","def":"SERIAL_STOPBIT","values":[
{"def":"SERIAL_STOPBIT_1","value":0,"note":"停止位1bit"},
{"def":"SERIAL_STOPBIT_1P5","value":1,"note":"停止位1.5bit"},
{"def":"SERIAL_STOPBIT_2","value":2,"note":"停止位2bit"}
]
}
],
"property":[
{"type":"int","method":"SerialOpen","params":["const char *com"],"note":"打开串口"},
{"type":"void","method":"SerialClose","params":["int fd"],"note":"关闭串口"},
{"type":"int","method":"SerialWrite","params":["int fd","char *buf","int len"],"note":"写数据"},
{"type":"int","method":"SerialRead","params":["int fd","char *buf:out","int maxLen"],"note":"读数据"},
{"type":"bool","method":"SerialSetConfig","params":["int fd","const SerialPort &serial"],"note":"设置参数"},
{"type":"int","method":"SerialGetLastError","params":["int fd","char err[]:out"],"note":"获取错误信息"},
{"type":"bool","method":"SerialCanRead","params":["int fd","int timeout"],"note":"是否有可读的数据"}
]
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。