Common Data Structures

group group_crypto_config_structure

The Crypto initialization configuration.

note

Should be the same for the Crypto Server and Crypto Client initialization.

Typedefs

typedef void (*cy_crypto_callback_ptr_t)(void)

The Crypto user callback function type.

Callback is called at the end of Crypto calculation.

struct cy_stc_crypto_config_t
#include <cy_crypto_common.h>

The Crypto configuration structure.

Public Members

uint32_t ipcChannel

Defines the IPC channel used for client-server data exchange.

uint32_t acquireNotifierChannel

Specifies the IPC notifier channel (IPC interrupt structure number) to notify server that data for the operation is prepared.

uint32_t releaseNotifierChannel

Specifies the IPC notifier channel (IPC interrupt structure number) to notify client that operation is complete and data is valid.

cy_stc_sysint_t releaseNotifierConfig

Specifies the release notifier interrupt configuration.

It used for internal purposes and user doesn’t fill it.

cy_crypto_callback_ptr_t userCompleteCallback

User callback function.

If this field is NOT NULL, it called when Crypto operation is complete.

cy_israddress userGetDataHandler

Server-side user IRQ handler function, called when data for the operation is prepared to process.

  • If this field is NULL, server will use own interrupt handler to get data.

  • If this field is not NULL, server will call this interrupt handler. This interrupt handler must call the Cy_Crypto_Server_GetDataHandler to get data to process.

    Note: In the second case user should process data separately and clear interrupt by calling Cy_Crypto_Server_Process. This model is used in the multitasking environment.

cy_israddress userErrorHandler

Server-side user IRQ handler function, called when a Crypto hardware error occurs (interrupt was raised).

  • If this field is NULL - server will use own interrupt handler for error processing.

  • If this field is not NULL - server will call this interrupt handler. This interrupt handler must call the Cy_Crypto_Server_ErrorHandler to clear the interrupt.

cy_stc_sysint_t acquireNotifierConfig

Specifies the prepared data notifier interrupt configuration.

It used for internal purposes and user doesn’t fill it.

cy_stc_sysint_t cryptoErrorIntrConfig

Specifies the hardware error processing interrupt configuration.

It used for internal purposes and user doesn’t fill it.