|
hsw-nbt 1.2.0
OPTIGA Authenticate NBT Host Library for C
|
Collection of the NBT configuration commands. More...
#include "infineon/ifx-apdu-protocol.h"#include "infineon/ifx-protocol.h"#include "infineon/ifx-utils.h"#include "infineon/nbt-apdu-lib.h"#include "infineon/nbt-apdu.h"Go to the source code of this file.
Macros | |
| #define | NBT_GET_CONFIGURATION UINT8_C(0x01) |
| Identifier for command get configuration. | |
| #define | NBT_SET_CONFIGURATION UINT8_C(0x02) |
| Identifier for command set configuration. | |
| #define | NBT_SELECT_CONFIGURATOR UINT8_C(0x03) |
| Identifier for command select configurator. | |
Functions | |
| ifx_status_t | nbt_select_configurator_application (nbt_cmd_t *self) |
| Selects the NBT configurator application. | |
| ifx_status_t | nbt_set_configuration_bytes (nbt_cmd_t *self, uint16_t config_tag, const ifx_blob_t *config_value) |
| Issues the set configuration command with configuration data as byte array. | |
| ifx_status_t | nbt_set_configuration (nbt_cmd_t *self, uint16_t config_tag, uint8_t config_value) |
| Issues the set configuration command with configuration data as byte. | |
| ifx_status_t | nbt_get_configuration (nbt_cmd_t *self, uint16_t config_tag) |
| Issues the get configuration command. | |
Collection of the NBT configuration commands.
Definition in file nbt-cmd-config.h.
| #define NBT_GET_CONFIGURATION UINT8_C(0x01) |
Identifier for command get configuration.
Definition at line 26 of file nbt-cmd-config.h.
| #define NBT_SELECT_CONFIGURATOR UINT8_C(0x03) |
Identifier for command select configurator.
Definition at line 36 of file nbt-cmd-config.h.
| #define NBT_SET_CONFIGURATION UINT8_C(0x02) |
Identifier for command set configuration.
Definition at line 31 of file nbt-cmd-config.h.
Enumeration defines the tag values of communication interface.
Definition at line 240 of file nbt-cmd-config.h.
Enumeration defines the tag values of Flash Loader.
| Enumerator | |
|---|---|
| NBT_FLASH_LOADER_ENABLE | Tag value of Flash Loader - Enable |
| NBT_FLASH_LOADER_DISABLE | Tag value of Flash Loader - Disable |
Definition at line 117 of file nbt-cmd-config.h.
| enum nbt_gpio_assert_tags |
Enumeration defines the tag values of GPIO assert level.
| Enumerator | |
|---|---|
| NBT_GPIO_ASSERT_LOW_LEVEL_ACTIVE | Tag value for GPIO assert level - Low active |
| NBT_GPIO_ASSERT_HIGH_LEVEL_ACTIVE | Tag value for GPIO assert level - High active |
Definition at line 148 of file nbt-cmd-config.h.
Enumeration defines the tag values of GPIO function.
Definition at line 129 of file nbt-cmd-config.h.
| enum nbt_gpio_output_tags |
Enumeration defines the tag values of GPIO output type.
| Enumerator | |
|---|---|
| NBT_GPIO_OUTPUT_TYPE_PUSH_PULL | Tag value for GPIO output type - Push pull |
| NBT_GPIO_OUTPUT_TYPE_OPEN_DRAIN | Tag value for GPIO output type - Open drain |
Definition at line 160 of file nbt-cmd-config.h.
| enum nbt_gpio_pull_tags |
Enumeration defines the tag values of GPIO pull type.
| Enumerator | |
|---|---|
| NBT_GPIO_NO_PULL | Tag value for GPIO pull type - No pull |
| NBT_GPIO_PULL_UP | Tag value for GPIO pull type - Pull up |
| NBT_GPIO_PULL_DOWN | Tag value for GPIO pull type - Pull down |
Definition at line 172 of file nbt-cmd-config.h.
Enumeration defines the tag values of I2C drive strength.
| Enumerator | |
|---|---|
| NBT_I2C_DRIVE_STRENGTH_WEAK | Tag value for I2C drive strength - Weak |
| NBT_I2C_DRIVE_STRENGTH_STRONG | Tag value for I2C drive strength - Strong |
Definition at line 203 of file nbt-cmd-config.h.
| enum nbt_i2c_speed_tags |
Enumeration defines the tag values of I2C speed.
| Enumerator | |
|---|---|
| NBT_I2C_SPEED_400_KHZ | Tag value for I2C speed - 400kHz |
| NBT_I2C_SPEED_1000_KHZ | Tag value for I2C speed - 1000kHz |
Definition at line 215 of file nbt-cmd-config.h.
Enumeration defines the tag values of NFC IRQ event.
Definition at line 187 of file nbt-cmd-config.h.
Enumeration defines the tag values of NFC UID type for anti collision.
Definition at line 227 of file nbt-cmd-config.h.
Enumeration defines the tag values of product life cycle.
| Enumerator | |
|---|---|
| NBT_PRODUCT_LIFE_CYCLE_OPERATIONAL | Tag value of product life cycle - Operational |
| NBT_PRODUCT_LIFE_CYCLE_PERSONALIZATION | Tag value of product life cycle - Personalization |
Definition at line 101 of file nbt-cmd-config.h.
Enumeration defines the list of tags available for configuration option.
Definition at line 42 of file nbt-cmd-config.h.
| ifx_status_t nbt_get_configuration | ( | nbt_cmd_t * | self, |
| uint16_t | config_tag ) |
Issues the get configuration command.
This command can be used to get a specific product configuration data.
| [in,out] | self | Command set with communication protocol and response. |
| [in] | config_tag | Tag value of the configuration field to be read. |
| IFX_SUCCESS | : If API operation is successful |
| IFX_ILLEGAL_ARGUMENT | : If invalid/NULL parameter is passed to function |
| IFX_OUT_OF_MEMORY | : If memory allocation fails |
| ifx_status_t nbt_select_configurator_application | ( | nbt_cmd_t * | self | ) |
Selects the NBT configurator application.
| [out] | self | Command set with communication protocol and response. |
| IFX_SUCCESS | : If API operation is successful |
| IFX_ILLEGAL_ARGUMENT | : If invalid/NULL parameter is passed to function |
| IFX_OUT_OF_MEMORY | : If memory allocation fails |
| ifx_status_t nbt_set_configuration | ( | nbt_cmd_t * | self, |
| uint16_t | config_tag, | ||
| uint8_t | config_value ) |
Issues the set configuration command with configuration data as byte.
This command configures the system and lock the configuration by setting product life cycle to operational state.
| [in,out] | self | Command set with communication protocol and response. |
| [in] | config_tag | Tag value of the configuration field to be set. |
| [in] | config_value | Configuration parameters of mentioned tag value that needs to be set as a byte. |
| IFX_SUCCESS | : If API operation is successful |
| IFX_ILLEGAL_ARGUMENT | : If invalid/NULL parameter is passed to function |
| IFX_OUT_OF_MEMORY | : If memory allocation fails |
| ifx_status_t nbt_set_configuration_bytes | ( | nbt_cmd_t * | self, |
| uint16_t | config_tag, | ||
| const ifx_blob_t * | config_value ) |
Issues the set configuration command with configuration data as byte array.
This command can be used to set a specific product configuration data.
| [out] | self | Command set with communication protocol and response. |
| [in] | config_tag | Tag value of the configuration field to be set. |
| [in] | config_value | configuration parameters of mentioned Tag value that needs to be set as a byte array |
| IFX_SUCCESS | : If API operation is successful |
| IFX_ILLEGAL_ARGUMENT | : If invalid/NULL parameter is passed to function |
| IFX_OUT_OF_MEMORY | : If memory allocation fails |