{"id":234211,"date":"2024-09-29T20:26:35","date_gmt":"2024-09-29T20:26:35","guid":{"rendered":"https:\/\/www.emtrion.de\/spi-under-linux-2\/"},"modified":"2024-10-24T07:35:37","modified_gmt":"2024-10-24T07:35:37","slug":"spi-under-linux-2","status":"publish","type":"page","link":"https:\/\/www.emtrion.de\/en\/spi-under-linux-2\/","title":{"rendered":"SPI under Linux"},"content":{"rendered":"<p>The first possibility to access SPI devices under Linux is using a kernel driver for your device.<\/p>\n<p>In case you want to access SPI from userspace, you have to use the spidev driver.<\/p>\n<p>Accessing SPI via the spidev driver requires a custom program.<\/p>\n<p>&nbsp;<\/p>\n<p>The interface is documented at:<\/p>\n<p><a title=\"spidev\" href=\"https:\/\/www.kernel.org\/doc\/Documentation\/spi\/spidev\">https:\/\/www.kernel.org\/doc\/Documentation\/spi\/spidev<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The first possibility to access SPI devices under Linux is using a kernel driver for your device. In case you want to access SPI from userspace, you have to use the spidev driver. Accessing SPI via the spidev driver requires a custom program. &nbsp; The interface is documented at: https:\/\/www.kernel.org\/doc\/Documentation\/spi\/spidev<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"class_list":["post-234211","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>SPI under Linux - emtrion<\/title>\n<meta name=\"description\" content=\"Access SPI devices on Linux via kernel drivers or the spidev driver for user-space programs. Detailed interface documentation is available on kernel.org.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.emtrion.de\/en\/spi-under-linux-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SPI under Linux - emtrion\" \/>\n<meta property=\"og:description\" content=\"Access SPI devices on Linux via kernel drivers or the spidev driver for user-space programs. Detailed interface documentation is available on kernel.org.\" \/>\n<meta property=\"og:site_name\" content=\"emtrion\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-24T07:35:37+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.emtrion.de\\\/en\\\/spi-under-linux-2\\\/\",\"url\":\"https:\\\/\\\/www.emtrion.de\\\/en\\\/spi-under-linux-2\\\/\",\"name\":\"SPI under Linux - emtrion\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.emtrion.de\\\/en\\\/#website\"},\"datePublished\":\"2024-09-29T20:26:35+00:00\",\"dateModified\":\"2024-10-24T07:35:37+00:00\",\"description\":\"Access SPI devices on Linux via kernel drivers or the spidev driver for user-space programs. Detailed interface documentation is available on kernel.org.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.emtrion.de\\\/en\\\/spi-under-linux-2\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.emtrion.de\\\/en\\\/spi-under-linux-2\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.emtrion.de\\\/en\\\/spi-under-linux-2\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.emtrion.de\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SPI under Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.emtrion.de\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/www.emtrion.de\\\/en\\\/\",\"name\":\"emtrion\",\"description\":\"Embedded Software and Hardware Development\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.emtrion.de\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SPI under Linux - emtrion","description":"Access SPI devices on Linux via kernel drivers or the spidev driver for user-space programs. Detailed interface documentation is available on kernel.org.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.emtrion.de\/en\/spi-under-linux-2\/","og_locale":"en_US","og_type":"article","og_title":"SPI under Linux - emtrion","og_description":"Access SPI devices on Linux via kernel drivers or the spidev driver for user-space programs. Detailed interface documentation is available on kernel.org.","og_site_name":"emtrion","article_modified_time":"2024-10-24T07:35:37+00:00","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.emtrion.de\/en\/spi-under-linux-2\/","url":"https:\/\/www.emtrion.de\/en\/spi-under-linux-2\/","name":"SPI under Linux - emtrion","isPartOf":{"@id":"https:\/\/www.emtrion.de\/en\/#website"},"datePublished":"2024-09-29T20:26:35+00:00","dateModified":"2024-10-24T07:35:37+00:00","description":"Access SPI devices on Linux via kernel drivers or the spidev driver for user-space programs. Detailed interface documentation is available on kernel.org.","breadcrumb":{"@id":"https:\/\/www.emtrion.de\/en\/spi-under-linux-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.emtrion.de\/en\/spi-under-linux-2\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.emtrion.de\/en\/spi-under-linux-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.emtrion.de\/en\/"},{"@type":"ListItem","position":2,"name":"SPI under Linux"}]},{"@type":"WebSite","@id":"https:\/\/www.emtrion.de\/en\/#website","url":"https:\/\/www.emtrion.de\/en\/","name":"emtrion","description":"Embedded Software and Hardware Development","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.emtrion.de\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.emtrion.de\/en\/wp-json\/wp\/v2\/pages\/234211","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.emtrion.de\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.emtrion.de\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.emtrion.de\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.emtrion.de\/en\/wp-json\/wp\/v2\/comments?post=234211"}],"version-history":[{"count":1,"href":"https:\/\/www.emtrion.de\/en\/wp-json\/wp\/v2\/pages\/234211\/revisions"}],"predecessor-version":[{"id":234212,"href":"https:\/\/www.emtrion.de\/en\/wp-json\/wp\/v2\/pages\/234211\/revisions\/234212"}],"wp:attachment":[{"href":"https:\/\/www.emtrion.de\/en\/wp-json\/wp\/v2\/media?parent=234211"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}