|
SDK for TESAIoT Dev Kit
API reference & tutorials (ModusToolbox)
|
Functions | |
| bool | optiga_manager_init (callback_handler_t callback, void *context) |
| Bring up the OPTIGA stack (idempotent); task context only — false if the chip did not answer. | |
| optiga_util_t * | optiga_manager_acquire (void) |
| The shared optiga_util instance; NULL until optiga_manager_init() has run. | |
| void | optiga_manager_release (void) |
| Release the acquired instance — exactly one per non-NULL acquire, on every exit. | |
| bool | optiga_manager_lock (void) |
| Take the manager mutex; false when never initialised — the real "is the manager up?" test. | |
| void | optiga_manager_unlock (void) |
| One unlock per successful lock, every early exit included; release a touch hold first. | |
| bool | optiga_chip_enter (void) |
| Open a chip session (re-entrant per task); false is fatal for this call — and NOT an init check. | |
| void | optiga_chip_exit (void) |
| One exit per successful enter; never call it after a failed enter. | |
Seven functions — ownership of the single OPTIGA instance. The chip is one device behind one I2C bus, shared by the MQTT/TLS path, the HSM provisioning screen and the MicroPython optiga module; everything that touches it goes through here. Three of the seven are aliases of one another in the archive — optiga_manager_release(), optiga_manager_unlock() and optiga_chip_exit() all decrement the same re-entrant depth counter — which is why the pairing rules on each entry are strict.
| bool optiga_manager_init | ( | callback_handler_t | callback, |
| void * | context ) |
Bring up the OPTIGA stack (idempotent); task context only — false if the chip did not answer.
Bring up the OPTIGA stack. Returns false if the chip did not answer.
| optiga_util_t * optiga_manager_acquire | ( | void | ) |
The shared optiga_util instance; NULL until optiga_manager_init() has run.
The shared optiga_util instance, or NULL before init.
| void optiga_manager_release | ( | void | ) |
Release the acquired instance — exactly one per non-NULL acquire, on every exit.
Release the instance taken with optiga_manager_acquire().
| bool optiga_manager_lock | ( | void | ) |
Take the manager mutex; false when never initialised — the real "is the manager up?" test.
Take and release the manager mutex. Task context only.
| void optiga_manager_unlock | ( | void | ) |
One unlock per successful lock, every early exit included; release a touch hold first.
| bool optiga_chip_enter | ( | void | ) |
Open a chip session (re-entrant per task); false is fatal for this call — and NOT an init check.
Open and close a chip session around a burst of operations.
| void optiga_chip_exit | ( | void | ) |
One exit per successful enter; never call it after a failed enter.