mcuxClPkc functions of PKC calculation More...
Macros | |
| #define | MCUXCLPKC_FP_CALCFUP(pUPTR, ulen) |
| Helper macro to call mcuxClPkc_CalcFup with flow protection. | |
| #define | MCUXCLPKC_FP_CALCFUP_OFFSET(pUPTR, skipLen, ulen) |
| Helper macro to call mcuxClPkc_CalcFup (skipping first skipLen calculation(s)) with flow protection. | |
Typedefs | |
| typedef const struct mcuxClPkc_FUPEntry * | mcuxClPkc_PtrFUPEntry_t |
| type of FUP program address. | |
Functions | |
| void | mcuxClPkc_Calc (uint16_t param_mode, uint32_t iR_iX_iY_iZ) |
| Start a PKC calculation. | |
| void | mcuxClPkc_CalcConst (uint16_t param_mode, uint32_t iR_iX_iY_C) |
| Start a PKC calculation with one constant parameter. | |
| void | mcuxClPkc_CalcFup (mcuxClPkc_PtrFUPEntry_t pUPTR, uint8_t uLength) |
| Start a PKC FUP program calculation. | |
mcuxClPkc functions of PKC calculation
| #define MCUXCLPKC_FP_CALCFUP | ( | pUPTR, | |
| ulen | |||
| ) |
Helper macro to call mcuxClPkc_CalcFup with flow protection.
| #define MCUXCLPKC_FP_CALCFUP_OFFSET | ( | pUPTR, | |
| skipLen, | |||
| ulen | |||
| ) |
Helper macro to call mcuxClPkc_CalcFup (skipping first skipLen calculation(s)) with flow protection.
| typedef const struct mcuxClPkc_FUPEntry* mcuxClPkc_PtrFUPEntry_t |
type of FUP program address.
| void mcuxClPkc_Calc | ( | uint16_t | param_mode, |
| uint32_t | iR_iX_iY_iZ | ||
| ) |
Start a PKC calculation.
This function performs one specified PKC calculation, of which the operand(s) and result are specified by the indices of UPTR table.
| [in] | param_mode | param (the higher 8 bits) indicates the type of the calculation (L0 or L1) and the parameter set (PS1 or PS2). mode (the lower 8 bits) indicates the calculation, either an L0 operation or L1 microcode. |
| [in] | iR_iX_iY_iZ | indices of the operand(s) and the result in UPTR table. |
| void mcuxClPkc_CalcConst | ( | uint16_t | param_mode, |
| uint32_t | iR_iX_iY_C | ||
| ) |
Start a PKC calculation with one constant parameter.
This function performs one specified PKC calculation, of which the operand(s) and result are specified by the indices of UPTR table, and a 8-bit constant parameter is directly provided. This function can also be used to perform an L0 operation without using Z operand, e.g., OP_MUL, R = X0 * Y.
| [in] | param_mode | param (the higher 8 bits) indicates the type of the calculation (always L0) and the parameter set (PS1 or PS2). mode (the lower 8 bits) indicates the calculation, an L0 operation. |
| [in] | iR_iX_iY_C | indices of the operand(s) and the result in UPTR table, and a direct 8-bit constant. |
| void mcuxClPkc_CalcFup | ( | mcuxClPkc_PtrFUPEntry_t | pUPTR, |
| uint8_t | uLength | ||
| ) |
Start a PKC FUP program calculation.
This function triggers PKC to start the calculation of a FUP program.
| [in] | pUPTR | 2-byte aligned address of the FUP program. |
| [in] | uLength | length (number of calculation) of the FUP program. |