Defines a platform abstraction layer for the Z-Wave miscellaneous functions, not covered by other modules.
More...
Defines a platform abstraction layer for the Z-Wave miscellaneous functions, not covered by other modules.
◆ zpal_debug_config_t
◆ zpal_soft_reset_info_t
Manufacturer's reset information.
◆ zpal_soft_reset_mfid_t
Manufacturer ID used by zpal_reboot_with_info.
◆ zpal_chip_se_type_t
Defines for identifying the secure element type supported by the chip.
| Enumerator |
|---|
| ZPAL_CHIP_SE_UNKNOWN | Secure element is unknown.
|
| ZPAL_CHIP_SE_MID | Secure element uses mid-level security features.
|
| ZPAL_CHIP_SE_HIGH | Secure element uses high-level security features.
|
◆ zpal_debug_init()
Initialize debug output.
- Parameters
-
| [in] | config | configuration for debug output port. If NULL, default platform configuration will be used. Implementation should usa a UART for output and config should point to a structure of the type zpal_uart_config_t |
- Note
- If another output device than UART wants to be used for debug output, this function is implemented as weak so it can be replaced by a custom implementation in an application
◆ zpal_debug_output()
| void zpal_debug_output |
( |
const uint8_t * | data, |
|
|
uint32_t | length ) |
Output debug logs.
- Parameters
-
| [out] | data | Pointer to debug data. |
| [in] | length | Length of debug data. |
- Note
- This function will use a UART for debug output. If another output device is used for debug this function is implemented as weak so it can be replaced by a custom implementation in an application
◆ zpal_disable_interrupts()
| void zpal_disable_interrupts |
( |
void | | ) |
|
◆ zpal_get_app_version()
| uint32_t zpal_get_app_version |
( |
void | | ) |
|
Get application version.
- Returns
- Application version.
- Note
- This function exists in PAL to allow use app version by external module (e.g. bootloader).
◆ zpal_get_app_version_major()
| uint8_t zpal_get_app_version_major |
( |
void | | ) |
|
Get major part of application version.
- Returns
- Major part of application version.
- Note
- This function exists in PAL to allow use app version by external module (e.g. bootloader).
◆ zpal_get_app_version_minor()
| uint8_t zpal_get_app_version_minor |
( |
void | | ) |
|
Get minor part of application version.
- Returns
- Minor part of application version.
- Note
- This function exists in PAL to allow use app version by external module (e.g. bootloader).
◆ zpal_get_app_version_patch()
| uint8_t zpal_get_app_version_patch |
( |
void | | ) |
|
Get patch part of application version.
- Returns
- Patch part of application version.
- Note
- This function exists in PAL to allow use app version by external module (e.g. bootloader).
◆ zpal_get_chip_revision()
| uint8_t zpal_get_chip_revision |
( |
void | | ) |
|
Get chip revision.
- Returns
- Chip revision.
◆ zpal_get_chip_type()
| uint8_t zpal_get_chip_type |
( |
void | | ) |
|
Get chip type.
- Returns
- Chip type.
◆ zpal_get_hardware_manufacturer_id()
| uint16_t zpal_get_hardware_manufacturer_id |
( |
void | | ) |
|
Get the Hardware Manufacturer ID.
- Returns
- the Hardware Manufacturer ID
◆ zpal_get_manufacturer_specific_chip_info()
| bool zpal_get_manufacturer_specific_chip_info |
( |
uint8_t * | p_info, |
|
|
uint8_t * | p_info_length, |
|
|
uint8_t | info_length_max ) |
Get the Manufacturer Specific Chip Info.
If the Manufacturer Specific Chip Info is not available, the function will provide an info length of zero.
It's up to the ZPAL Manufacturer to fill the fields with info that can be used to distinguish the chip from others in their product catalog. Additionally, they should provide documentation describing the mapping and meaning of these fields.
Example information that could be included: First byte is the chip generation. Second byte is the chip type (module or SoC). Third byte is the chip SKU. Fourth byte is the chip revision.
- Parameters
-
| [out] | p_info | Address of array to where the Manufacturer Specific Chip Info will be written. |
| [out] | p_info_length | Length in bytes of the Manufacturer Specific Chip Info. |
| [in] | info_length_max | Size of the array provided to p_info. |
- Returns
- Returns false if info_length_max is smaller than the required memory, otherwise true.
◆ zpal_get_product_id()
Get product id.
- Parameters
-
| [out] | product_id | Product id. |
- Note
- This function exists in PAL to allow use product id by external module (e.g. bootloader).
◆ zpal_get_secure_element_type()
Get secure element type supported in the chip.
- Returns
- Secure element type supported.
◆ zpal_get_serial_number()
| void zpal_get_serial_number |
( |
uint8_t * | serial_number | ) |
|
Get serial number.
- Parameters
-
| [out] | serial_number | Serial number. |
◆ zpal_get_serial_number_length()
| size_t zpal_get_serial_number_length |
( |
void | | ) |
|
Get serial number length.
- Returns
- Serial number length.
◆ zpal_in_isr()
| bool zpal_in_isr |
( |
void | | ) |
|
Check if in ISR context.
- Returns
- True if the CPU is in handler mode (currently executing an interrupt handler). False if the CPU is in thread mode.
◆ zpal_initiate_shutdown_handler()
| void zpal_initiate_shutdown_handler |
( |
void | | ) |
|
Prepare for shutdown handler.
◆ zpal_psa_set_location_persistent_key()
| void zpal_psa_set_location_persistent_key |
( |
const void * | attributes | ) |
|
Set vendor specific location for storing keys persistently in wrapped or plain form based on the secure element type supported by the chip.
- Parameters
-
◆ zpal_psa_set_location_volatile_key()
| void zpal_psa_set_location_volatile_key |
( |
const void * | attributes | ) |
|
Set vendor specific location for storing keys in volatile memory, in wrapped or plain form based on the secure element type supported by the chip.
- Parameters
-
◆ zpal_reboot_with_info()
Perform a system reboot and provide information about the context.
- Parameters
-
| [in] | manufacturer_id | manufacturer ID identifier. |
| [in] | reset_info | the information to pass to boot. |
◆ zpal_shutdown_handler()
| void zpal_shutdown_handler |
( |
void | | ) |
|