Skip to content

Commit

Permalink
SILKIT-1486: RPC example with lifecycle + overhaul of docs overview (…
Browse files Browse the repository at this point in the history
…#750)
  • Loading branch information
KonradBkd authored and GitHub Enterprise committed Feb 5, 2024
1 parent ed038bb commit b235091
Show file tree
Hide file tree
Showing 13 changed files with 1,175 additions and 1,028 deletions.
13 changes: 13 additions & 0 deletions docs/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,19 @@ All notable changes to the Vector SIL Kit project shall be documented in this fi

The format is based on `Keep a Changelog (http://keepachangelog.com/en/1.0.0/) <http://keepachangelog.com/en/1.0.0/>`_.

[4.0.45] - Unreleased
---------------------

Changed
~~~~~~~

- Add links to API sections in the documentation overview


Added
~~~~~

- RPC usage example with lifecycle

[4.0.45] - UNRELEASED
---------------------
Expand Down
2 changes: 2 additions & 0 deletions docs/api/can.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _chap:can-service-api:

===================
CAN Service API
===================
Expand Down
174 changes: 87 additions & 87 deletions docs/api/capi-lin.rst
Original file line number Diff line number Diff line change
@@ -1,87 +1,87 @@
LIN C API
---------

.. contents::
:local:
:depth: 3

The LIN API for the C language provides communication in a LIN bus master/slave-architecture.
The functionality is analogous to the C++ API described in :ref:`sec:lin`.

LIN Controller
~~~~~~~~~~~~~~

**A LIN controller is created with the following function:**

.. doxygenfunction:: SilKit_LinController_Create

**A LIN controller's configuration is handed over to the function:**

.. doxygenfunction:: SilKit_LinController_Init

**The following set of functions can be used to add and remove event handlers on the controller:**

.. doxygenfunction:: SilKit_LinController_AddFrameStatusHandler
.. doxygenfunction:: SilKit_LinController_AddGoToSleepHandler
.. doxygenfunction:: SilKit_LinController_AddWakeupHandler
.. doxygenfunction:: SilKit_LinController_RemoveFrameStatusHandler
.. doxygenfunction:: SilKit_LinController_RemoveGoToSleepHandler
.. doxygenfunction:: SilKit_LinController_RemoveWakeupHandler

**The following functions operate on a configured controller:**

.. doxygenfunction:: SilKit_LinController_Status
.. doxygenfunction:: SilKit_LinController_SetFrameResponse
.. doxygenfunction:: SilKit_LinController_SendFrame
.. doxygenfunction:: SilKit_LinController_SendFrameHeader
.. doxygenfunction:: SilKit_LinController_GoToSleep
.. doxygenfunction:: SilKit_LinController_GoToSleepInternal
.. doxygenfunction:: SilKit_LinController_Wakeup
.. doxygenfunction:: SilKit_LinController_WakeupInternal

**The following functions are experimental and might be changed or removed in future versions:**

.. doxygenfunction:: SilKit_Experimental_LinController_AddLinSlaveConfigurationHandler
.. doxygenfunction:: SilKit_Experimental_LinController_RemoveLinSlaveConfigurationHandler
.. doxygenfunction:: SilKit_Experimental_LinController_GetSlaveConfiguration

Data Structures
~~~~~~~~~~~~~~~
.. doxygenstruct:: SilKit_LinControllerConfig
:members:
.. doxygenstruct:: SilKit_LinFrame
:members:
.. doxygenstruct:: SilKit_LinFrameResponse
:members:
.. doxygenstruct:: SilKit_Experimental_LinSlaveConfiguration
:members:
.. doxygenstruct:: SilKit_LinFrameStatusEvent
:members:
.. doxygenstruct:: SilKit_LinWakeupEvent
:members:
.. doxygenstruct:: SilKit_LinGoToSleepEvent
:members:

**The following data structures are experimental and might be changed or removed in future versions:**

.. doxygenstruct:: SilKit_Experimental_LinSlaveConfigurationEvent
:members:

.. doxygentypedef:: SilKit_Experimental_LinSlaveConfigurationHandler_t

Enumerations and Typedefs
~~~~~~~~~~~~~~~~~~~~~~~~~
.. doxygentypedef:: SilKit_LinController
.. doxygentypedef:: SilKit_LinControllerStatus
.. doxygentypedef:: SilKit_LinControllerMode
.. doxygentypedef:: SilKit_LinBaudRate
.. doxygentypedef:: SilKit_LinFrameResponseMode
.. doxygentypedef:: SilKit_LinId
.. doxygentypedef:: SilKit_LinChecksumModel
.. doxygentypedef:: SilKit_LinFrameResponseType
.. doxygentypedef:: SilKit_LinFrameStatus
.. doxygentypedef:: SilKit_LinDataLength

.. doxygentypedef:: SilKit_LinFrameStatusHandler_t
.. doxygentypedef:: SilKit_LinGoToSleepHandler_t
.. doxygentypedef:: SilKit_LinWakeupHandler_t
LIN C API
---------

.. contents::
:local:
:depth: 3

The LIN API for the C language provides communication in a LIN bus master/slave-architecture.
The functionality is analogous to the C++ API described in :ref:`chap:lin-service-api`.

LIN Controller
~~~~~~~~~~~~~~

**A LIN controller is created with the following function:**

.. doxygenfunction:: SilKit_LinController_Create

**A LIN controller's configuration is handed over to the function:**

.. doxygenfunction:: SilKit_LinController_Init

**The following set of functions can be used to add and remove event handlers on the controller:**

.. doxygenfunction:: SilKit_LinController_AddFrameStatusHandler
.. doxygenfunction:: SilKit_LinController_AddGoToSleepHandler
.. doxygenfunction:: SilKit_LinController_AddWakeupHandler
.. doxygenfunction:: SilKit_LinController_RemoveFrameStatusHandler
.. doxygenfunction:: SilKit_LinController_RemoveGoToSleepHandler
.. doxygenfunction:: SilKit_LinController_RemoveWakeupHandler

**The following functions operate on a configured controller:**

.. doxygenfunction:: SilKit_LinController_Status
.. doxygenfunction:: SilKit_LinController_SetFrameResponse
.. doxygenfunction:: SilKit_LinController_SendFrame
.. doxygenfunction:: SilKit_LinController_SendFrameHeader
.. doxygenfunction:: SilKit_LinController_GoToSleep
.. doxygenfunction:: SilKit_LinController_GoToSleepInternal
.. doxygenfunction:: SilKit_LinController_Wakeup
.. doxygenfunction:: SilKit_LinController_WakeupInternal

**The following functions are experimental and might be changed or removed in future versions:**

.. doxygenfunction:: SilKit_Experimental_LinController_AddLinSlaveConfigurationHandler
.. doxygenfunction:: SilKit_Experimental_LinController_RemoveLinSlaveConfigurationHandler
.. doxygenfunction:: SilKit_Experimental_LinController_GetSlaveConfiguration

Data Structures
~~~~~~~~~~~~~~~
.. doxygenstruct:: SilKit_LinControllerConfig
:members:
.. doxygenstruct:: SilKit_LinFrame
:members:
.. doxygenstruct:: SilKit_LinFrameResponse
:members:
.. doxygenstruct:: SilKit_Experimental_LinSlaveConfiguration
:members:
.. doxygenstruct:: SilKit_LinFrameStatusEvent
:members:
.. doxygenstruct:: SilKit_LinWakeupEvent
:members:
.. doxygenstruct:: SilKit_LinGoToSleepEvent
:members:

**The following data structures are experimental and might be changed or removed in future versions:**

.. doxygenstruct:: SilKit_Experimental_LinSlaveConfigurationEvent
:members:

.. doxygentypedef:: SilKit_Experimental_LinSlaveConfigurationHandler_t

Enumerations and Typedefs
~~~~~~~~~~~~~~~~~~~~~~~~~
.. doxygentypedef:: SilKit_LinController
.. doxygentypedef:: SilKit_LinControllerStatus
.. doxygentypedef:: SilKit_LinControllerMode
.. doxygentypedef:: SilKit_LinBaudRate
.. doxygentypedef:: SilKit_LinFrameResponseMode
.. doxygentypedef:: SilKit_LinId
.. doxygentypedef:: SilKit_LinChecksumModel
.. doxygentypedef:: SilKit_LinFrameResponseType
.. doxygentypedef:: SilKit_LinFrameStatus
.. doxygentypedef:: SilKit_LinDataLength

.. doxygentypedef:: SilKit_LinFrameStatusHandler_t
.. doxygentypedef:: SilKit_LinGoToSleepHandler_t
.. doxygentypedef:: SilKit_LinWakeupHandler_t
Loading

0 comments on commit b235091

Please sign in to comment.