Library "OSP ResultCodes aoresult", usually abbreviated to "aoresult", is one of the aolibs; short for Arduino OSP libraries from ams-OSRAM. This suite implements support for chips that use the Open System Protocol, like the AS1163 ("SAID") or the OSIRE E3731i ("RGBi"). The landing page for the aolibs is on GitHub.
Library aoresult is at the base of the dependency graph. It contains (defines) a list of all error codes that may occur in any of the aolibs. As a result, library aoresult is relatively empty.
This library comes with the following examples. You can find them in the Arduino IDE via File > Examples > OSP ResultCodes aoresult > ...
- aoresult_demo
This demo shows how to use the result codes from the aoresult lib. It also demonstrates the "assert" feature.
The header aoresult.h contains the API of this library. The header contains little documentation; for that see the aoresult.cpp source file.
Here is a quick overview:
-
aoresult_t
the global list of error codes in the aolibs (enumeration data type). -
aoresult_to_str()
converts an error code to a (short) string or a (longer) description. -
AORESULT_ASSERT(cond)
Checks ifcond
holds, if not, prints error toSerial
, and stops. -
Finally, there is the macro
AORESULT_VERSION
, which identifies the version of the library.
-
2024 July 7, 0.2.0
- Arduino name changed from
OSP Result codes - aoresult
toOSP ResultCodes aoresult
. - Renamed dir
extra
toextras
.
- Arduino name changed from
-
2024 July 3, 0.1.11
license.txt
,aoresult_demo.ino
line endings changed from LF to CR+LF.
-
2024 July 02, 0.1.10
- Initial release candidate.
(end)