<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Develop my own Driver</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/ca287c2165/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/ca287c2165/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/ca287c2165/</id><updated>2022-08-04T04:33:27.592000Z</updated><subtitle>Recent posts to Develop my own Driver</subtitle><entry><title>Develop my own Driver</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/ca287c2165/?limit=25#fab2/6483" rel="alternate"/><published>2022-08-04T04:33:27.592000Z</published><updated>2022-08-04T04:33:27.592000Z</updated><author><name>huunghiaubot</name><uri>https://forge.codesys.com/u/huunghiaubot/</uri></author><id>https://forge.codesys.com067b8365f29282b2145cc2f58a41b4f85a80d989</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks for your support!&lt;br/&gt;
Now I created a driver and add it under SPI Master. &lt;br/&gt;
Is it possible to use SPI out of SPI master in the root tree project? My idea is creating devices which can add a like EtherCAT or profibus but using SPI protocol.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Develop my own Driver</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/ca287c2165/?limit=25#fab2" rel="alternate"/><published>2022-07-07T09:53:43.776000Z</published><updated>2022-07-07T09:53:43.776000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.comd21d81d63b5eff5ec2af30e72e0c984a1bff48b8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;start here:&lt;br/&gt;
&lt;a href="https://forge.codesys.com/drv/io-drivers/doc/Generic/"&gt;https://forge.codesys.com/drv/io-drivers/doc/Generic/&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Develop my own Driver</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/ca287c2165/?limit=25#4d60" rel="alternate"/><published>2022-07-07T06:59:14.099000Z</published><updated>2022-07-07T06:59:14.099000Z</updated><author><name>huunghiaubot</name><uri>https://forge.codesys.com/u/huunghiaubot/</uri></author><id>https://forge.codesys.com1c1fa7d4b0f9493b1ff17dcbfa5fa468ebc44d05</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi all,&lt;br/&gt;
I want to write my own SPI driver on CODESYS to interface with my STM32 custom board. I spend some time reading example libraries ( Adafruit_PWM, MCP23S17 ....), Here is my doubts.&lt;br/&gt;
1. What is _iState? "_iState := 10;, _iState := 1000;", Where are the numbers "10,1000" come from? What do they mean?, How many states does CODESYS support?&lt;br/&gt;
2. When will AfterReadInputs and BeforeWriteOuputs be called? Do they call in sequence? &lt;br/&gt;
3. What happen if I use more than 1 driver on the same SPI driver? Which driver will be called first?&lt;br/&gt;
4. What are the essential configs I need to do in Initialize Method?&lt;br/&gt;
5. Is there any official document talking clear about how to write a lib on CODESYS?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>