Data Structures | Typedefs | Functions
SecureCallback.h File Reference
#include <stddef.h>
#include <stdint.h>
#include <ti/drivers/utils/List.h>
Include dependency graph for SecureCallback.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  SecureCallback_Object
 
struct  SecureCallback_Config
 

Typedefs

typedef void(* SecureCallback_FuncPtr) (uintptr_t arg)
 
typedef struct SecureCallback_Object SecureCallback_Object
 
typedef SecureCallback_ObjectSecureCallback_Handle
 
typedef struct SecureCallback_Config SecureCallback_Config
 

Functions

void SecureCallback_init (void)
 Initialize SecureCallback driver. More...
 
SecureCallback_Handle SecureCallback_construct (SecureCallback_Object *object, SecureCallback_FuncPtr fxn, uintptr_t arg)
 Construct a callback object and adds it to the servicing list. More...
 
void SecureCallback_destruct (SecureCallback_Object *object)
 Destruct a callback object, removing it from the servicing list. More...
 
void SecureCallback_post (SecureCallback_Handle handle)
 Triggers the dispatcher targeting the specified callback. More...
 

Typedef Documentation

§ SecureCallback_FuncPtr

typedef void(* SecureCallback_FuncPtr) (uintptr_t arg)

§ SecureCallback_Object

§ SecureCallback_Handle

§ SecureCallback_Config

Function Documentation

§ SecureCallback_init()

void SecureCallback_init ( void  )

Initialize SecureCallback driver.

Note
This API is only available to non-secure code. Must be called once prior to invoking any other SecureCallback APIs.

§ SecureCallback_construct()

SecureCallback_Handle SecureCallback_construct ( SecureCallback_Object object,
SecureCallback_FuncPtr  fxn,
uintptr_t  arg 
)

Construct a callback object and adds it to the servicing list.

Note
This API is only available to non-secure code.
Parameters
[in]objectA pointer to a SecureCallback_Object structure.
[in]fxnA pointer to this object's callback function.
[in]argA uint argument passed to the callback function.

§ SecureCallback_destruct()

void SecureCallback_destruct ( SecureCallback_Object object)

Destruct a callback object, removing it from the servicing list.

Note
This API is only available to non-secure code.
Parameters
[in]objectA pointer to a SecureCallback_Object structure.

§ SecureCallback_post()

void SecureCallback_post ( SecureCallback_Handle  handle)

Triggers the dispatcher targeting the specified callback.

Note
This API is available to both non-secure and secure code.
Parameters
[in]handleA SecureCallback_Handle pointer.
Precondition
The callback object must have been created by SecureCallback_construct().
© Copyright 1995-2023, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale