S32 SDK
csec_hal.c File Reference
#include "csec_hal.h"

Go to the source code of this file.

Macros

#define CSEC_UPPER_HALF_MASK   (0xFFFF0000U)
 
#define CSEC_UPPER_HALF_SHIFT   (0x10U)
 
#define CSEC_LOWER_HALF_MASK   (0xFFFFU)
 
#define CSEC_LOWER_HALF_SHIFT   (0U)
 

Functions

void CSEC_HAL_WriteCommandBytes (uint8_t offset, const uint8_t *bytes, uint8_t numBytes)
 Writes command bytes to CSE_PRAM. More...
 
void CSEC_HAL_WriteCommandHalfWord (uint8_t offset, uint16_t halfWord)
 Writes a command half word to CSE_PRAM. More...
 
void CSEC_HAL_WriteCommandByte (uint8_t offset, uint8_t byte)
 Writes a command byte to CSE_PRAM. More...
 
void CSEC_HAL_WriteCommandWords (uint8_t offset, const uint32_t *words, uint8_t numWords)
 Writes command words to CSE_PRAM. More...
 
void CSEC_HAL_ReadCommandBytes (uint8_t offset, uint8_t *bytes, uint8_t numBytes)
 Reads command bytes from CSE_PRAM. More...
 
uint16_t CSEC_HAL_ReadCommandHalfWord (uint8_t offset)
 Reads a command half word from CSE_PRAM. More...
 
uint8_t CSEC_HAL_ReadCommandByte (uint8_t offset)
 Reads a command byte from CSE_PRAM. More...
 
void CSEC_HAL_ReadCommandWords (uint8_t offset, uint32_t *words, uint8_t numWords)
 Reads command words from CSE_PRAM. More...
 
START_FUNCTION_DEFINITION_RAMSECTION void CSEC_HAL_WriteCmdAndWait (csec_cmd_t funcId, csec_func_format_t funcFormat, csec_call_sequence_t callSeq, csec_key_id_t keyId)
 

Macro Definition Documentation

#define CSEC_LOWER_HALF_MASK   (0xFFFFU)

Definition at line 46 of file csec_hal.c.

#define CSEC_LOWER_HALF_SHIFT   (0U)

Definition at line 47 of file csec_hal.c.

#define CSEC_UPPER_HALF_MASK   (0xFFFF0000U)

Definition at line 44 of file csec_hal.c.

#define CSEC_UPPER_HALF_SHIFT   (0x10U)

Definition at line 45 of file csec_hal.c.

Function Documentation

START_FUNCTION_DEFINITION_RAMSECTION void CSEC_HAL_WriteCmdAndWait ( csec_cmd_t  funcId,
csec_func_format_t  funcFormat,
csec_call_sequence_t  callSeq,
csec_key_id_t  keyId 
)

Definition at line 281 of file csec_hal.c.