{"id":43223,"date":"2023-10-01T07:48:04","date_gmt":"2023-09-30T23:48:04","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=43223"},"modified":"2023-10-01T07:48:04","modified_gmt":"2023-09-30T23:48:04","slug":"mzlqmljtdgnhyf","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/43223.html","title":{"rendered":"mbus_ctrl\u6307\u4ee4\uff1a\u5168\u9762\u4e86\u89e3\u5b83\u7684\u529f\u80fd\u548c\u7528\u6cd5"},"content":{"rendered":"

  mbus_ctrl\u6307\u4ee4\u662f\u4e00\u4e2a\u7528\u4e8e\u7ba1\u7406\u548c\u63a7\u5236\u4e3b\u673a\u603b\u7ebf\uff08MBus\uff09\u7684\u6307\u4ee4\uff0c\u5b83\u53ef\u4ee5\u7528\u6765\u64cd\u4f5c\u548c\u63a7\u5236MBus\u4e0a\u7684\u8bbe\u5907\u3002<\/strong>\u5b83\u53ef\u4ee5\u652f\u6301\u591a\u79cdMBus\u603b\u7ebf\u7c7b\u578b\uff0c\u5982I2C\uff0cSPI\uff0cCAN\u548cGPIO\u3002mbus_ctrl\u6307\u4ee4\u53ef\u4ee5\u7528\u6765\u63a7\u5236mbus\u603b\u7ebf\u4e0a\u7684\u8bbe\u5907\uff0c\u4ece\u800c\u5b9e\u73b0\u66f4\u9ad8\u6548\u7684\u8bbe\u5907\u7ba1\u7406\u548c\u63a7\u5236\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecdmbus_ctrl\u6307\u4ee4\u7684\u529f\u80fd\u548c\u7528\u6cd5\u3002<\/p>\n

mbus_ctrl\u6307\u4ee4\u7684\u529f\u80fd<\/h2>\n

  1.\u652f\u6301\u591a\u79cdMBus\u603b\u7ebf\u7c7b\u578b<\/h3>\n

  mbus_ctrl\u6307\u4ee4\u652f\u6301\u591a\u79cdMBus\u603b\u7ebf\u7c7b\u578b\uff0c\u5305\u62ecI2C\uff0cSPI\uff0cCAN\u548cGPIO\u7b49\u3002\u8fd9\u4f7f\u5f97mbus_ctrl\u6307\u4ee4\u53ef\u4ee5\u975e\u5e38\u65b9\u4fbf\u5730\u4e0e\u5404\u79cdMBus\u603b\u7ebf\u8bbe\u5907\u8fdb\u884c\u901a\u4fe1\u548c\u63a7\u5236\u3002<\/p>\n

  2.\u652f\u6301\u591a\u79cd\u63a7\u5236\u6a21\u5f0f<\/h3>\n

  mbus_ctrl\u6307\u4ee4\u652f\u6301\u591a\u79cd\u63a7\u5236\u6a21\u5f0f\uff0c\u5982\u8f6e\u8be2\u6a21\u5f0f\uff0c\u4e2d\u65ad\u6a21\u5f0f\u548c\u4e3b\u52a8\u6a21\u5f0f\u7b49\u3002\u8fd9\u4e9b\u63a7\u5236\u6a21\u5f0f\u53ef\u4ee5\u66f4\u597d\u5730\u6ee1\u8db3\u4e0d\u540c\u5e94\u7528\u573a\u666f\u7684\u9700\u6c42\uff0c\u6709\u6548\u63d0\u9ad8\u8bbe\u5907\u7684\u63a7\u5236\u6548\u7387\u3002<\/p>\n

  3.\u652f\u6301\u5b9a\u65f6\u4efb\u52a1<\/h3>\n

  mbus_ctrl\u6307\u4ee4\u652f\u6301\u5b9a\u65f6\u4efb\u52a1\uff0c\u53ef\u4ee5\u5b9e\u73b0\u5b9a\u65f6\u6267\u884c\u6307\u5b9a\u7684\u64cd\u4f5c\uff0c\u4ece\u800c\u66f4\u597d\u5730\u6ee1\u8db3\u7cfb\u7edf\u7684\u5b9a\u65f6\u8981\u6c42\u3002<\/p>\n

  4.\u652f\u6301\u591a\u79cd\u786c\u4ef6\u5e73\u53f0<\/h3>\n

  mbus_ctrl\u6307\u4ee4\u652f\u6301\u591a\u79cd\u786c\u4ef6\u5e73\u53f0\uff0c\u5982ARM\uff0cMIPS\uff0cX86\uff0cPowerPC\u7b49\uff0c\u53ef\u4ee5\u66f4\u597d\u5730\u6ee1\u8db3\u4e0d\u540c\u786c\u4ef6\u5e73\u53f0\u7684\u9700\u6c42\u3002<\/p>\n

mbus_ctrl\u6307\u4ee4\u7684\u7528\u6cd5<\/h2>\n

  1.\u6307\u4ee4\u53c2\u6570<\/h3>\n

  mbus_ctrl\u6307\u4ee4\u652f\u6301\u591a\u79cd\u53c2\u6570\uff0c\u5982\u63a7\u5236\u6a21\u5f0f\uff0c\u8bbe\u5907\u5730\u5740\uff0c\u6570\u636e\u957f\u5ea6\u7b49\u3002\u8fd9\u4e9b\u53c2\u6570\u53ef\u4ee5\u6839\u636e\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\u8fdb\u884c\u8bbe\u7f6e\uff0c\u4ece\u800c\u5b9e\u73b0\u66f4\u9ad8\u6548\u7684\u63a7\u5236\u6548\u679c\u3002<\/p>\n

  2.\u6307\u4ee4\u683c\u5f0f<\/h3>\n

  mbus_ctrl\u6307\u4ee4\u7684\u683c\u5f0f\u4e3a\uff1ambus_ctrl [\u53c2\u6570]\u3002\u5176\u4e2d\uff0c\u53c2\u6570\u53ef\u4ee5\u6839\u636e\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\u8fdb\u884c\u8bbe\u7f6e\uff0c\u4ece\u800c\u5b9e\u73b0\u66f4\u9ad8\u6548\u7684\u63a7\u5236\u6548\u679c\u3002<\/p>\n

  3.\u6307\u4ee4\u793a\u4f8b<\/h3>\n

  mbus_ctrl -d 0x10 -l 1 -m 0 -r 0x00 -w 0x01 \u3002\u8be5\u6307\u4ee4\u7684\u4f5c\u7528\u662f\uff1a\u4f7f\u7528\u8f6e\u8be2\u6a21\u5f0f\uff0c\u4ece\u8bbe\u5907\u5730\u57400x10\u5f00\u59cb\uff0c\u8bfb\u53d61\u5b57\u8282\u7684\u6570\u636e\uff0c\u5e76\u5c06\u5176\u5199\u51650x01\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  mbus_ctrl\u6307\u4ee4\u662f\u4e00\u4e2a\u7528\u4e8e\u7ba1\u7406\u548c\u63a7\u5236\u4e3b\u673a\u603b\u7ebf\uff08MBus\uff09\u7684\u6307\u4ee4\uff0c\u5b83\u53ef\u4ee5\u7528\u6765\u64cd\u4f5c\u548c\u63a7\u5236MBus\u4e0a\u7684\u8bbe\u5907\u3002<\/strong>mbus_ctrl\u6307\u4ee4\u652f\u6301\u591a\u79cdMBus\u603b\u7ebf\u7c7b\u578b\uff0c\u652f\u6301\u591a\u79cd\u63a7\u5236\u6a21\u5f0f\uff0c\u652f\u6301\u5b9a\u65f6\u4efb\u52a1\uff0c\u652f\u6301\u591a\u79cd\u786c\u4ef6\u5e73\u53f0\u3002mbus_ctrl\u6307\u4ee4\u7684\u53c2\u6570\u548c\u683c\u5f0f\u4e5f\u975e\u5e38\u7b80\u5355\uff0c\u53ef\u4ee5\u6ee1\u8db3\u4e0d\u540c\u5e94\u7528\u573a\u666f\u7684\u9700\u6c42\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

mbus_ctrl\u6307\u4ee4\u662f\u4e00\u4e2a\u7528\u4e8e\u7ba1\u7406\u548c\u63a7\u5236\u4e3b\u673a\u603b\u7ebf\uff08MBus\uff09\u7684\u6307\u4ee4\uff0c\u5b83\u53ef\u4ee5\u7528\u6765\u64cd\u4f5c\u548c\u63a7\u5236MBus\u4e0a\u7684\u8bbe\u5907\u3002\u5b83\u53ef\u4ee5\u652f\u6301\u591a\u79cdMBus\u603b\u7ebf\u7c7b<\/p>\n","protected":false},"author":1,"featured_media":4132,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"categories":[36],"tags":[291],"class_list":["post-43223","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-mbus"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/43223","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/comments?post=43223"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/43223\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media\/4132"}],"wp:attachment":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media?parent=43223"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=43223"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=43223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}