PSOC E8XXGP Device Support Library

| PSOC E8XXGP Device Support Library

Macros
Macro
PDL API Reference » NNLITE HW Accelerator (NNLITE)

## General Description

## Macros
#define | CY_NNLITE_ID CY_PDL_DRV_ID(0x48U)
| NNLite driver ID.
#define | NNLITE_Type MXNNLITE_2_0_Type
| NNLite type.
#define | NNLITE_NO_SCALING (0x3F800000U)
| Output Scaling 1 mask.
#define | NNLITE_INTR_READ_ERRORS_MASK
| Read Error Interrupt. More...
#define | NNLITE_INTR_WRITE_ERRORS_MASK (MXNNLITE_2_0_INTR_MASKED_INTR_MASKED_MEM_ERR_OUTPUTSTREAMER_Msk)
| Write Error Interrupt.
#define | NNLITE_INTR_ERRORS_MASK (NNLITE_INTR_WRITE_ERRORS_MASK|NNLITE_INTR_READ_ERRORS_MASK)
| Error Interrupt.
#define | NNLITE_SATURATION_MASK
| Saturation Interrupt. More...
#define | NNLITE_INTR_ENABLE_MASK (MXNNLITE_2_0_INTR_MASKED_INTR_MASKED_DONE_Msk | NNLITE_INTR_ERRORS_MASK)
| Interrupt Enable mask. More...
#define | NNLITE_INTR_MASK (MXNNLITE_2_0_INTR_MASKED_INTR_MASKED_DONE_Msk | NNLITE_INTR_ERRORS_MASK | NNLITE_SATURATION_MASK)
| Interrupt mask for all interrupts.
#define | NNLITE_TANH_FRAC_BITS 24u
| Fractional bits produced by tanh interpolation.
#define | NNLITE_SIGM_FRAC_BITS 25u
| Fractional bits produced by sigmoid interpolation.
#define | NNLITE_RECIP_POW2_FRAC_BITS 24
| Fractional bits produced by 2^-x interpolation.
#define | NNLITE_ADDSUB_PRESCALE_SHIFT_BITS 8
| Preshift of add/sub inputs when prescaling.

## Macro Definition Documentation

## ◆ NNLITE_INTR_READ_ERRORS_MASK

#define NNLITE_INTR_READ_ERRORS_MASK

Value:
(MXNNLITE_2_0_INTR_MASKED_INTR_MASKED_MEM_ERR_SPARSITY_Msk | \
MXNNLITE_2_0_INTR_MASKED_INTR_MASKED_MEM_ERR_ACTIVATIONSTREAMER_Msk | \
MXNNLITE_2_0_INTR_MASKED_INTR_MASKED_MEM_ERR_WEIGHTSTREAMER_Msk | \
MXNNLITE_2_0_INTR_MASKED_INTR_MASKED_MEM_ERR_BIASSTREAMER_Msk)

Read Error Interrupt.

## ◆ NNLITE_SATURATION_MASK

#define NNLITE_SATURATION_MASK

Value:
(MXNNLITE_2_0_INTR_INTR_ACCUMULATION_SATURATION_Msk| \
MXNNLITE_2_0_INTR_INTR_INPUT_PRESCALE_SATURATION_Msk| \
MXNNLITE_2_0_INTR_INTR_OUTPUT_PRESCALE_SATURATION_Msk| \
MXNNLITE_2_0_INTR_INTR_OUTPUT_POSTSCALE_SATURATION_Msk \
)

Saturation Interrupt.

## ◆ NNLITE_INTR_ENABLE_MASK

#define NNLITE_INTR_ENABLE_MASK (MXNNLITE_2_0_INTR_MASKED_INTR_MASKED_DONE_Msk | NNLITE_INTR_ERRORS_MASK)

Interrupt Enable mask.

Memory error interrupts active and hence detected as error states. Saturation ignored (but accessible via context structure)

Note: Needs some API to non-default interrupt/event masking.