http://erika.tuxfamily.org/wiki/index.php?title=AUTOSAR-like_SPI_Driver&feed=atom&action=historyAUTOSAR-like SPI Driver - Revision history2024-03-29T01:37:07ZRevision history for this page on the wikiMediaWiki 1.16.4http://erika.tuxfamily.org/wiki/index.php?title=AUTOSAR-like_SPI_Driver&diff=5335&oldid=prevGiuseppe Serano: /* Std_StatusType Spi_GetHWUnitStatus(Spi_HWUnitType HWUnit) = */2013-07-18T10:43:49Z<p><span class="autocomment">Std_StatusType Spi_GetHWUnitStatus(Spi_HWUnitType HWUnit) =</span></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 10:43, 18 July 2013</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 954:</td>
<td colspan="2" class="diff-lineno">Line 954:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>The SPI Handler/Driver shall have been initialized before the function ''Spi_SyncTransmit()'' is called, otherwise ''E_NOT_OK'' shall be returned.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>The SPI Handler/Driver shall have been initialized before the function ''Spi_SyncTransmit()'' is called, otherwise ''E_NOT_OK'' shall be returned.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>=== ''Std_StatusType Spi_GetHWUnitStatus(Spi_HWUnitType HWUnit)'' ====</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">=</ins>=== ''Std_StatusType Spi_GetHWUnitStatus(Spi_HWUnitType HWUnit)'' ====</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div> #include "Spi.h"</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div> #include "Spi.h"</div></td></tr>
</table>Giuseppe Seranohttp://erika.tuxfamily.org/wiki/index.php?title=AUTOSAR-like_SPI_Driver&diff=5332&oldid=prevGiuseppe Serano: /* SPI LEVEL0 SyncTransmit */2013-07-18T09:36:55Z<p><span class="autocomment">SPI LEVEL0 SyncTransmit</span></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 09:36, 18 July 2013</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 1,167:</td>
<td colspan="2" class="diff-lineno">Line 1,167:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Example''': Channels ID 0 to 3 belong to Job ID 1 (higher priority), Channels ID 4 to 10 belong to Job ID 2 (Lower priority). These Jobs belong to the same Sequence ID 0.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Example''': Channels ID 0 to 3 belong to Job ID 1 (higher priority), Channels ID 4 to 10 belong to Job ID 2 (Lower priority). These Jobs belong to the same Sequence ID 0.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>[[File<del class="diffchange diffchange-inline">:</del>:Spi_WSR_nC_nJ_1S_Seq_Dia.png]]</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>[[File:Spi_WSR_nC_nJ_1S_Seq_Dia.png]]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>==== Setup/SyncTransmit (EB): Many Channels, many Jobs and one Sequence ====</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>==== Setup/SyncTransmit (EB): Many Channels, many Jobs and one Sequence ====</div></td></tr>
<tr><td colspan="2" class="diff-lineno">Line 1,175:</td>
<td colspan="2" class="diff-lineno">Line 1,175:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Example''': Channels ID 0 to 3 belong to Job ID 1 (higher priority), Channels ID 4 to 10 belong to Job ID 2 (Lower priority). These Jobs belong to the same Sequence ID 0.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Example''': Channels ID 0 to 3 belong to Job ID 1 (higher priority), Channels ID 4 to 10 belong to Job ID 2 (Lower priority). These Jobs belong to the same Sequence ID 0.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>[[File<del class="diffchange diffchange-inline">:</del>:Spi_SS_nC_nJ_1S_Seq_Dia.png]]</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>[[File:Spi_SS_nC_nJ_1S_Seq_Dia.png]]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== Build ==</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== Build ==</div></td></tr>
</table>Giuseppe Seranohttp://erika.tuxfamily.org/wiki/index.php?title=AUTOSAR-like_SPI_Driver&diff=5327&oldid=prevGiuseppe Serano: /* SPI Setup/AsyncTransmit (EB) */2013-07-18T09:32:56Z<p><span class="autocomment">SPI Setup/AsyncTransmit (EB)</span></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 09:32, 18 July 2013</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 1,127:</td>
<td colspan="2" class="diff-lineno">Line 1,127:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Example''': Channel ID 2 belongs to Job ID 1 which belongs to Sequence ID 0.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Example''': Channel ID 2 belongs to Job ID 1 which belongs to Sequence ID 0.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>[[File<del class="diffchange diffchange-inline">:</del>:Spi_SA_1C_1J_1S_Seq_Dia.png]]</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>[[File:Spi_SA_1C_1J_1S_Seq_Dia.png]]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>==== Many Channels, one Job then one Sequence ====</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>==== Many Channels, one Job then one Sequence ====</div></td></tr>
<tr><td colspan="2" class="diff-lineno">Line 1,135:</td>
<td colspan="2" class="diff-lineno">Line 1,135:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Example''': Channels ID 2 & 3 belong to Job ID 1 which belongs to Sequence ID 0.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Example''': Channels ID 2 & 3 belong to Job ID 1 which belongs to Sequence ID 0.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>[[File<del class="diffchange diffchange-inline">:</del>:Spi_SA_nC_1J_1S_Seq_Dia.png]]</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>[[File:Spi_SA_nC_1J_1S_Seq_Dia.png]]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>==== Many Channels, many Jobs and one Sequence ====</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>==== Many Channels, many Jobs and one Sequence ====</div></td></tr>
<tr><td colspan="2" class="diff-lineno">Line 1,143:</td>
<td colspan="2" class="diff-lineno">Line 1,143:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Example''': Channels ID 0 to 3 belong to Job ID 1 (higher priority), Channels ID 4 to 10 belong to Job ID 2 (Lower priority) which has not an end notification function. These Jobs belong to the same Sequence ID 0.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Example''': Channels ID 0 to 3 belong to Job ID 1 (higher priority), Channels ID 4 to 10 belong to Job ID 2 (Lower priority) which has not an end notification function. These Jobs belong to the same Sequence ID 0.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>[[File<del class="diffchange diffchange-inline">:</del>:Spi_SA_nC_nJ_1S_Seq_Dia.png]]</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>[[File:Spi_SA_nC_nJ_1S_Seq_Dia.png]]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>==== Many Channels, many Jobs and many Sequences ====</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>==== Many Channels, many Jobs and many Sequences ====</div></td></tr>
<tr><td colspan="2" class="diff-lineno">Line 1,151:</td>
<td colspan="2" class="diff-lineno">Line 1,151:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Example''': Channels ID 0 to 3 belong to Job ID 1 (high priority 2), Channels ID 4 to 10 belong to Job ID 2 (Low priority 1) which has not an end notification function. These Jobs belong to the same Sequence ID 0 which is configured as interruptible. Channels ID 11 to 13 belong to Job ID 0 (higher priority 3) which belongs to Sequence ID 1 which is configured as not interruptible.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Example''': Channels ID 0 to 3 belong to Job ID 1 (high priority 2), Channels ID 4 to 10 belong to Job ID 2 (Low priority 1) which has not an end notification function. These Jobs belong to the same Sequence ID 0 which is configured as interruptible. Channels ID 11 to 13 belong to Job ID 0 (higher priority 3) which belongs to Sequence ID 1 which is configured as not interruptible.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>[[File<del class="diffchange diffchange-inline">:</del>:Spi_SA_nC_nJ_nS_Seq_Dia.png]]</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>[[File:Spi_SA_nC_nJ_nS_Seq_Dia.png]]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=== Mixed Jobs Transmission ===</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=== Mixed Jobs Transmission ===</div></td></tr>
</table>Giuseppe Seranohttp://erika.tuxfamily.org/wiki/index.php?title=AUTOSAR-like_SPI_Driver&diff=5325&oldid=prevGiuseppe Serano: /* = Many Channels, many Jobs and many Sequences */2013-07-18T09:28:52Z<p><span class="autocomment">= Many Channels, many Jobs and many Sequences</span></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 09:28, 18 July 2013</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 1,105:</td>
<td colspan="2" class="diff-lineno">Line 1,105:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[File:Spi_WAR_nC_nJ_1S_Seq_Dia.png]]</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[File:Spi_WAR_nC_nJ_1S_Seq_Dia.png]]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>==== Many Channels, many Jobs and many Sequences ===</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>==== Many Channels, many Jobs and many Sequences <ins class="diffchange diffchange-inline">=</ins>===</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>The following sequence diagram shows an example of ''Spi_WriteIB()'' / ''Spi_AsyncTransmit()'' / ''Spi_ReadIB()'' calls for Sequences transmission. Write or Read steps could be skipped when Jobs are just reading or writing respectively.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>The following sequence diagram shows an example of ''Spi_WriteIB()'' / ''Spi_AsyncTransmit()'' / ''Spi_ReadIB()'' calls for Sequences transmission. Write or Read steps could be skipped when Jobs are just reading or writing respectively.</div></td></tr>
</table>Giuseppe Seranohttp://erika.tuxfamily.org/wiki/index.php?title=AUTOSAR-like_SPI_Driver&diff=5319&oldid=prevGiuseppe Serano: /* Functions Definitions */2013-07-18T09:26:14Z<p><span class="autocomment">Functions Definitions</span></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 09:26, 18 July 2013</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 570:</td>
<td colspan="2" class="diff-lineno">Line 570:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Parameters''':</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Parameters''':</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* ''ConfigPtr'': Pointer to configuration set. </div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>* ''ConfigPtr'': Pointer to configuration set. </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Returns''':</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Returns''':</div></td></tr>
<tr><td colspan="2" class="diff-lineno">Line 637:</td>
<td colspan="2" class="diff-lineno">Line 637:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Parameters''':</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Parameters''':</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* ''Channel'':Channel ID.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>* ''Channel'': <ins class="diffchange diffchange-inline"> </ins>Channel ID.</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* ''DataBufferPtr'':Pointer to source data buffer.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>* ''DataBufferPtr'': Pointer to source data buffer.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Returns''':</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Returns''':</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* ''E_OK'': Write command has been accepted</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>* ''E_OK'': <ins class="diffchange diffchange-inline"> </ins>Write command has been accepted</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* ''E_NOT_OK'': Write command has not been accepted</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>* ''E_NOT_OK'': <ins class="diffchange diffchange-inline"> </ins>Write command has not been accepted</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Service for writing one or more data to an IB SPI Handler/Driver Channel specified by parameter.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Service for writing one or more data to an IB SPI Handler/Driver Channel specified by parameter.</div></td></tr>
<tr><td colspan="2" class="diff-lineno">Line 679:</td>
<td colspan="2" class="diff-lineno">Line 679:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Parameters''':</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Parameters''':</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* ''Sequence'': Sequence ID</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>* ''Sequence'': Sequence ID</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Returns''':</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Returns''':</div></td></tr>
<tr><td colspan="2" class="diff-lineno">Line 732:</td>
<td colspan="2" class="diff-lineno">Line 732:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Parameters''':</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Parameters''':</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* ''Channel'':Channel ID.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>* ''Channel'': <ins class="diffchange diffchange-inline"> </ins>Channel ID.</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* ''DataBufferPtr'':Pointer to destination data buffer in RAM.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>* ''DataBufferPtr'': Pointer to destination data buffer in RAM.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Returns''':</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Returns''':</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* ''E_OK'': Read command has been accepted</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>* ''E_OK'': <ins class="diffchange diffchange-inline"> </ins>Read command has been accepted</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* ''E_NOT_OK'': Read command has not been accepted</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>* ''E_NOT_OK'': <ins class="diffchange diffchange-inline"> </ins>Read command has not been accepted</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Service for reading synchronously one or more data from an IB SPI Handler/Driver Channel specified by parameter.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Service for reading synchronously one or more data from an IB SPI Handler/Driver Channel specified by parameter.</div></td></tr>
<tr><td colspan="2" class="diff-lineno">Line 772:</td>
<td colspan="2" class="diff-lineno">Line 772:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Parameters''':</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Parameters''':</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* ''Channel'':Channel ID.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>* ''Channel'': <ins class="diffchange diffchange-inline"> </ins>Channel ID.</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* ''SrcDataBufferPtr'':Pointer to source data buffer.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>* ''SrcDataBufferPtr'': Pointer to source data buffer.</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* ''DesDataBufferPtr'':Pointer to destination data buffer in RAM.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>* ''DesDataBufferPtr'': Pointer to destination data buffer in RAM.</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* ''Length'':Length (in bytes) of the data to be transmitted from SrcDataBufferPtr and/or received from DesDataBufferPtr</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>* ''Length'': <ins class="diffchange diffchange-inline"> </ins>Length (in bytes) of the data to be transmitted from SrcDataBufferPtr and/or received from DesDataBufferPtr</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>** Min.: 1</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>** Min.: 1</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>** Max.: Max of data specified at configuration for this channel</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>** Max.: Max of data specified at configuration for this channel</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Returns''':</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Returns''':</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* ''E_OK'': Setup command has been accepted</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>* ''E_OK'': <ins class="diffchange diffchange-inline"> </ins>Setup command has been accepted</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* ''E_NOT_OK'': Setup command has not been accepted</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>* ''E_NOT_OK'': <ins class="diffchange diffchange-inline"> </ins>Setup command has not been accepted</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Service to setup the buffers and the length of data for the EB SPI Handler/Driver Channel specified.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Service to setup the buffers and the length of data for the EB SPI Handler/Driver Channel specified.</div></td></tr>
<tr><td colspan="2" class="diff-lineno">Line 842:</td>
<td colspan="2" class="diff-lineno">Line 842:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Parameters''':</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Parameters''':</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* ''Job'':Job ID.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>* ''Job'': Job ID.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Returns''':</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Returns''':</div></td></tr>
<tr><td colspan="2" class="diff-lineno">Line 870:</td>
<td colspan="2" class="diff-lineno">Line 870:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Parameters''':</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Parameters''':</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* ''Sequence'':Sequence ID.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>* ''Sequence'': Sequence ID.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Returns''':</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Returns''':</div></td></tr>
<tr><td colspan="2" class="diff-lineno">Line 898:</td>
<td colspan="2" class="diff-lineno">Line 898:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Parameters''':</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Parameters''':</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* ''VersionInfoPtr'':Pointer to where to store the version information of this module.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>* ''VersionInfoPtr'': Pointer to where to store the version information of this module.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Returns''':</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Returns''':</div></td></tr>
<tr><td colspan="2" class="diff-lineno">Line 922:</td>
<td colspan="2" class="diff-lineno">Line 922:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Parameters''':</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Parameters''':</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* ''Sequence'':Sequence ID</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>* ''Sequence'': Sequence ID</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Returns''':</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Returns''':</div></td></tr>
</table>Giuseppe Seranohttp://erika.tuxfamily.org/wiki/index.php?title=AUTOSAR-like_SPI_Driver&diff=5314&oldid=prevGiuseppe Serano at 09:15, 18 July 20132013-07-18T09:15:40Z<p></p>
<a href="http://erika.tuxfamily.org/wiki/index.php?title=AUTOSAR-like_SPI_Driver&diff=5314&oldid=5313">Show changes</a>Giuseppe Seranohttp://erika.tuxfamily.org/wiki/index.php?title=AUTOSAR-like_SPI_Driver&diff=5313&oldid=prevGiuseppe Serano: /* API Specification */2013-07-17T16:53:09Z<p><span class="autocomment">API Specification</span></p>
<a href="http://erika.tuxfamily.org/wiki/index.php?title=AUTOSAR-like_SPI_Driver&diff=5313&oldid=5312">Show changes</a>Giuseppe Seranohttp://erika.tuxfamily.org/wiki/index.php?title=AUTOSAR-like_SPI_Driver&diff=5312&oldid=prevGiuseppe Serano: /* File Structure */2013-07-17T16:34:31Z<p><span class="autocomment">File Structure</span></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 16:34, 17 July 2013</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 266:</td>
<td colspan="2" class="diff-lineno">Line 266:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== File Structure ==</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== File Structure ==</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">[[File:SPI_File_Structure.png]]</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== API Specification ==</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== API Specification ==</div></td></tr>
</table>Giuseppe Seranohttp://erika.tuxfamily.org/wiki/index.php?title=AUTOSAR-like_SPI_Driver&diff=5311&oldid=prevGiuseppe Serano at 16:25, 17 July 20132013-07-17T16:25:46Z<p></p>
<a href="http://erika.tuxfamily.org/wiki/index.php?title=AUTOSAR-like_SPI_Driver&diff=5311&oldid=5279">Show changes</a>Giuseppe Seranohttp://erika.tuxfamily.org/wiki/index.php?title=AUTOSAR-like_SPI_Driver&diff=5279&oldid=prevGiuseppe Serano: /* Interrupts */2013-07-17T05:46:17Z<p><span class="autocomment">Interrupts</span></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 05:46, 17 July 2013</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 95:</td>
<td colspan="2" class="diff-lineno">Line 95:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>==== Interrupts ====</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>==== Interrupts ====</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>In order to use the AUTOSAR SPI driver, the AUTOSAR <del class="diffchange diffchange-inline">DMA </del>driver must be enabled and configured too. Moreover an ISR object must be added to OSEK/VDX configuration for every TI Stellaris SSI harware unit configured and :</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>In order to use the AUTOSAR SPI driver, the AUTOSAR <ins class="diffchange diffchange-inline">SPI </ins>driver must be enabled and configured too. Moreover an ISR object must be added to OSEK/VDX configuration for every TI Stellaris SSI harware unit configured and :</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div> ISR Spi_HwUnit_<Hardware Unit Number>_ISR {</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div> ISR Spi_HwUnit_<Hardware Unit Number>_ISR {</div></td></tr>
</table>Giuseppe Serano