-
-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Siddharth Chandrasekaran <[email protected]>
- Loading branch information
Showing
8 changed files
with
155 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
LibOSDP App Events | ||
================== | ||
|
||
LibOSDP exposes the following structures thought ``osdp.h``. This document | ||
attempts to document each of its members. The following structure is used as a | ||
wrapper for all the events for convenience. | ||
|
||
.. code:: c | ||
struct osdp_event { | ||
enum osdp_event_type type; // Used to select specific event in union | ||
union { | ||
struct osdp_event_keypress keypress; | ||
struct osdp_event_cardread cardread; | ||
struct osdp_event_mfgrep mfgrep; | ||
struct osdp_status_report status; | ||
}; | ||
}; | ||
Below are the structure of each of the event structures. | ||
|
||
|
||
Key press Event | ||
--------------- | ||
|
||
.. doxygenstruct:: osdp_event_keypress | ||
:members: | ||
|
||
Card read Event | ||
--------------- | ||
|
||
.. doxygenstruct:: osdp_event_cardread | ||
:members: | ||
|
||
Manufacture specific reply Event | ||
-------------------------------- | ||
|
||
.. doxygenstruct:: osdp_event_mfgrep | ||
:members: | ||
|
||
Status report request Event | ||
--------------------------- | ||
|
||
.. doxygenstruct:: osdp_status_report | ||
:members: | ||
|
||
.. doxygenenum:: osdp_status_report_type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,5 @@ API | |
peripheral-device | ||
miscellaneous | ||
command-structure | ||
event-structure | ||
channel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters