|
| #define | __HAPI_H__ |
| |
| #define | ROM_HAPI_TABLE_ADDR 0x10000048 |
| |
| #define | P_HARD_API ((HARD_API_T*) ROM_HAPI_TABLE_ADDR) |
| |
| #define | HapiCrc32(a, b, c) P_HARD_API->Crc32(a,b,c) |
| |
| #define | HapiGetFlashSize() P_HARD_API->FlashGetSize() |
| |
| #define | HapiGetChipId() P_HARD_API->GetChipId() |
| |
| #define | HapiSectorErase(a) MemBusWrkAroundHapiEraseSector(a) |
| |
| #define | HapiProgramFlash(a, b, c) MemBusWrkAroundHapiProgramFlash(a,b,c) |
| |
| #define | HapiResetDevice() P_HARD_API->ResetDevice() |
| |
| #define | HapiFletcher32(a, b, c) P_HARD_API->Fletcher32(a,b,c) |
| |
| #define | HapiMinValue(a, b) P_HARD_API->MinValue(a,b) |
| |
| #define | HapiMaxValue(a, b) P_HARD_API->MaxValue(a,b) |
| |
| #define | HapiMeanValue(a, b) P_HARD_API->MeanValue(a,b) |
| |
| #define | HapiStandDeviationValue(a, b) P_HARD_API->StandDeviationValue(a,b) |
| |
| #define | HapiHFSourceSafeSwitch() P_HARD_API->HFSourceSafeSwitch() |
| |
| #define | HapiSelectCompAInput(a) P_HARD_API->SelectCompAInput(a) |
| |
| #define | HapiSelectCompARef(a) P_HARD_API->SelectCompARef(a) |
| |
| #define | HapiSelectADCCompBInput(a) P_HARD_API->SelectADCCompBInput(a) |
| |
| #define | HapiSelectDACVref(a) P_HARD_API->SelectDACVref(a) |
| |
| #define | HapiECCKeyGen(a, b, c, d, e) P_HARD_API->ECCKeyGen(a,b,c,d,e) |
| |
| #define | HapiECDSASign(a, b, c, d, e, f) P_HARD_API->ECDSASign(a,b,c,d,e,f) |
| |
| #define | HapiECDSAVerify(a, b, c, d, e, f) P_HARD_API->ECDSAVerify(a,b,c,d,e,f) |
| |
| #define | HapiECDHCommonKey(a, b, c, d, e, f) P_HARD_API->ECDHCommonKey(a,b,c,d,e,f) |
| |
| #define | HapiECCValidatePublicKeyWeierstrass(a, b, c) P_HARD_API->ECCValidatePublicKeyWeierstrass(a,b,c) |
| |
| #define | HapiECCValidatePrivateKeyWeierstrass(a, b) P_HARD_API->ECCValidatePrivateKeyWeierstrass(a,b) |
| |
| #define | HapiSHA256Init(a) P_HARD_API->SHA256Init(a); |
| |
| #define | HapiSHA256Process(a, b, c) P_HARD_API->SHA256Process(a,b,c); |
| |
| #define | HapiSHA256Final(a, b) P_HARD_API->SHA256Final(a,b); |
| |
| #define | HapiSHA256Full(a, b, c, d) P_HARD_API->SHA256Full(a,b,c,d); |
| |
| #define | COMPA_IN_NC 0x00 |
| |
| #define | COMPA_IN_AUXIO7 0x09 |
| |
| #define | COMPA_IN_AUXIO6 0x0A |
| |
| #define | COMPA_IN_AUXIO5 0x0B |
| |
| #define | COMPA_IN_AUXIO4 0x0C |
| |
| #define | COMPA_IN_AUXIO3 0x0D |
| |
| #define | COMPA_IN_AUXIO2 0x0E |
| |
| #define | COMPA_IN_AUXIO1 0x0F |
| |
| #define | COMPA_IN_AUXIO0 0x10 |
| |
| #define | COMPA_IN_AUXIO26 COMPA_IN_AUXIO7 |
| |
| #define | COMPA_IN_AUXIO25 COMPA_IN_AUXIO6 |
| |
| #define | COMPA_IN_AUXIO24 COMPA_IN_AUXIO5 |
| |
| #define | COMPA_IN_AUXIO23 COMPA_IN_AUXIO4 |
| |
| #define | COMPA_IN_AUXIO22 COMPA_IN_AUXIO3 |
| |
| #define | COMPA_IN_AUXIO21 COMPA_IN_AUXIO2 |
| |
| #define | COMPA_IN_AUXIO20 COMPA_IN_AUXIO1 |
| |
| #define | COMPA_IN_AUXIO19 COMPA_IN_AUXIO0 |
| |
| #define | COMPA_REF_NC 0x00 |
| |
| #define | COMPA_REF_DCOUPL 0x01 |
| |
| #define | COMPA_REF_VSS 0x02 |
| |
| #define | COMPA_REF_VDDS 0x03 |
| |
| #define | COMPA_REF_ADCVREFP 0x04 |
| |
| #define | COMPA_REF_AUXIO7 0x09 |
| |
| #define | COMPA_REF_AUXIO6 0x0A |
| |
| #define | COMPA_REF_AUXIO5 0x0B |
| |
| #define | COMPA_REF_AUXIO4 0x0C |
| |
| #define | COMPA_REF_AUXIO3 0x0D |
| |
| #define | COMPA_REF_AUXIO2 0x0E |
| |
| #define | COMPA_REF_AUXIO1 0x0F |
| |
| #define | COMPA_REF_AUXIO0 0x10 |
| |
| #define | COMPA_REF_AUXIO26 COMPA_REF_AUXIO7 |
| |
| #define | COMPA_REF_AUXIO25 COMPA_REF_AUXIO6 |
| |
| #define | COMPA_REF_AUXIO24 COMPA_REF_AUXIO5 |
| |
| #define | COMPA_REF_AUXIO23 COMPA_REF_AUXIO4 |
| |
| #define | COMPA_REF_AUXIO22 COMPA_REF_AUXIO3 |
| |
| #define | COMPA_REF_AUXIO21 COMPA_REF_AUXIO2 |
| |
| #define | COMPA_REF_AUXIO20 COMPA_REF_AUXIO1 |
| |
| #define | COMPA_REF_AUXIO19 COMPA_REF_AUXIO0 |
| |
| #define | ADC_COMPB_IN_NC 0x00 |
| |
| #define | ADC_COMPB_IN_DCOUPL 0x03 |
| |
| #define | ADC_COMPB_IN_VSS 0x04 |
| |
| #define | ADC_COMPB_IN_VDDS 0x05 |
| |
| #define | ADC_COMPB_IN_AUXIO7 0x09 |
| |
| #define | ADC_COMPB_IN_AUXIO6 0x0A |
| |
| #define | ADC_COMPB_IN_AUXIO5 0x0B |
| |
| #define | ADC_COMPB_IN_AUXIO4 0x0C |
| |
| #define | ADC_COMPB_IN_AUXIO3 0x0D |
| |
| #define | ADC_COMPB_IN_AUXIO2 0x0E |
| |
| #define | ADC_COMPB_IN_AUXIO1 0x0F |
| |
| #define | ADC_COMPB_IN_AUXIO0 0x10 |
| |
| #define | ADC_COMPB_IN_AUXIO26 ADC_COMPB_IN_AUXIO7 |
| |
| #define | ADC_COMPB_IN_AUXIO25 ADC_COMPB_IN_AUXIO6 |
| |
| #define | ADC_COMPB_IN_AUXIO24 ADC_COMPB_IN_AUXIO5 |
| |
| #define | ADC_COMPB_IN_AUXIO23 ADC_COMPB_IN_AUXIO4 |
| |
| #define | ADC_COMPB_IN_AUXIO22 ADC_COMPB_IN_AUXIO3 |
| |
| #define | ADC_COMPB_IN_AUXIO21 ADC_COMPB_IN_AUXIO2 |
| |
| #define | ADC_COMPB_IN_AUXIO20 ADC_COMPB_IN_AUXIO1 |
| |
| #define | ADC_COMPB_IN_AUXIO19 ADC_COMPB_IN_AUXIO0 |
| |
| #define | DAC_REF_NC 0x00 |
| |
| #define | DAC_REF_DCOUPL 0x01 |
| |
| #define | DAC_REF_VSS 0x02 |
| |
| #define | DAC_REF_VDDS 0x03 |
| |
| #define | ROM_API_TABLE ((uint32_t *) 0x10000180) |
| |
| #define | ROM_VERSION (ROM_API_TABLE[0]) |
| |
| #define | ROM_API_AON_EVENT_TABLE ((uint32_t*) (ROM_API_TABLE[1])) |
| |
| #define | ROM_API_AON_IOC_TABLE ((uint32_t*) (ROM_API_TABLE[2])) |
| |
| #define | ROM_API_AON_RTC_TABLE ((uint32_t*) (ROM_API_TABLE[3])) |
| |
| #define | ROM_API_AUX_TDC_TABLE ((uint32_t*) (ROM_API_TABLE[6])) |
| |
| #define | ROM_API_DDI_TABLE ((uint32_t*) (ROM_API_TABLE[9])) |
| |
| #define | ROM_API_FLASH_TABLE ((uint32_t*) (ROM_API_TABLE[10])) |
| |
| #define | ROM_API_I2C_TABLE ((uint32_t*) (ROM_API_TABLE[11])) |
| |
| #define | ROM_API_INTERRUPT_TABLE ((uint32_t*) (ROM_API_TABLE[12])) |
| |
| #define | ROM_API_IOC_TABLE ((uint32_t*) (ROM_API_TABLE[13])) |
| |
| #define | ROM_API_PRCM_TABLE ((uint32_t*) (ROM_API_TABLE[14])) |
| |
| #define | ROM_API_SMPH_TABLE ((uint32_t*) (ROM_API_TABLE[15])) |
| |
| #define | ROM_API_SSI_TABLE ((uint32_t*) (ROM_API_TABLE[17])) |
| |
| #define | ROM_API_TIMER_TABLE ((uint32_t*) (ROM_API_TABLE[18])) |
| |
| #define | ROM_API_TRNG_TABLE ((uint32_t*) (ROM_API_TABLE[19])) |
| |
| #define | ROM_API_UART_TABLE ((uint32_t*) (ROM_API_TABLE[20])) |
| |
| #define | ROM_API_UDMA_TABLE ((uint32_t*) (ROM_API_TABLE[21])) |
| |
| #define | ROM_API_VIMS_TABLE ((uint32_t*) (ROM_API_TABLE[22])) |
| |
| #define | ROM_API_OSC_TABLE ((uint32_t*) (ROM_API_TABLE[24])) |
| |
| #define | ROM_API_AUX_ADC_TABLE ((uint32_t*) (ROM_API_TABLE[25])) |
| |
| #define | ROM_API_SYS_CTRL_TABLE ((uint32_t*) (ROM_API_TABLE[26])) |
| |
| #define | ROM_API_AON_BATMON_TABLE ((uint32_t*) (ROM_API_TABLE[27])) |
| |
| #define | ROM_API_SETUP_ROM_TABLE ((uint32_t*) (ROM_API_TABLE[28])) |
| |
| #define | ROM_API_I2S_TABLE ((uint32_t*) (ROM_API_TABLE[29])) |
| |
| #define | ROM_API_PWR_CTRL_TABLE ((uint32_t*) (ROM_API_TABLE[30])) |
| |
| #define | ROM_API_AES_TABLE ((uint32_t*) (ROM_API_TABLE[31])) |
| |
| #define | ROM_AONEventMcuWakeUpSet |
| |
| #define | ROM_AONEventMcuWakeUpGet |
| |
| #define | ROM_AONEventMcuSet |
| |
| #define | ROM_AONEventMcuGet |
| |
| #define | ROM_AONRTCCurrent64BitValueGet |
| |
| #define | ROM_AUXTDCConfigSet |
| |
| #define | ROM_AUXTDCMeasurementDone |
| |
| #define | ROM_DDI16BitWrite |
| |
| #define | ROM_DDI16BitfieldWrite |
| |
| #define | ROM_DDI16BitRead |
| |
| #define | ROM_DDI16BitfieldRead |
| |
| #define | ROM_DDI32RegWrite |
| |
| #define | ROM_FlashProtectionSet |
| |
| #define | ROM_FlashProtectionGet |
| |
| #define | ROM_FlashProtectionSave |
| |
| #define | ROM_FlashEfuseReadRow |
| |
| #define | ROM_FlashDisableSectorsForWrite |
| |
| #define | ROM_I2CMasterInitExpClk |
| |
| #define | ROM_I2CMasterErr |
| |
| #define | ROM_IntPriorityGroupingSet |
| |
| #define | ROM_IntPriorityGroupingGet |
| |
| #define | ROM_IntPrioritySet |
| |
| #define | ROM_IntPriorityGet |
| |
| #define | ROM_IntEnable |
| |
| #define | ROM_IntDisable |
| |
| #define | ROM_IntPendSet |
| |
| #define | ROM_IntPendGet |
| |
| #define | ROM_IntPendClear |
| |
| #define | ROM_IOCPortConfigureSet |
| |
| #define | ROM_IOCPortConfigureGet |
| |
| #define | ROM_IOCIOShutdownSet |
| |
| #define | ROM_IOCIOModeSet |
| |
| #define | ROM_IOCIOIntSet |
| |
| #define | ROM_IOCIOPortPullSet |
| |
| #define | ROM_IOCIOHystSet |
| |
| #define | ROM_IOCIOInputSet |
| |
| #define | ROM_IOCIOSlewCtrlSet |
| |
| #define | ROM_IOCIODrvStrengthSet |
| |
| #define | ROM_IOCIOPortIdSet |
| |
| #define | ROM_IOCIntEnable |
| |
| #define | ROM_IOCIntDisable |
| |
| #define | ROM_IOCPinTypeGpioInput |
| |
| #define | ROM_IOCPinTypeGpioOutput |
| |
| #define | ROM_IOCPinTypeUart |
| |
| #define | ROM_IOCPinTypeSsiMaster |
| |
| #define | ROM_IOCPinTypeSsiSlave |
| |
| #define | ROM_IOCPinTypeI2c |
| |
| #define | ROM_IOCPinTypeAux |
| |
| #define | ROM_PRCMInfClockConfigureSet |
| |
| #define | ROM_PRCMInfClockConfigureGet |
| |
| #define | ROM_PRCMAudioClockConfigSet |
| |
| #define | ROM_PRCMPowerDomainOn |
| |
| #define | ROM_PRCMPowerDomainOff |
| |
| #define | ROM_PRCMPeripheralRunEnable |
| |
| #define | ROM_PRCMPeripheralRunDisable |
| |
| #define | ROM_PRCMPeripheralSleepEnable |
| |
| #define | ROM_PRCMPeripheralSleepDisable |
| |
| #define | ROM_PRCMPeripheralDeepSleepEnable |
| |
| #define | ROM_PRCMPeripheralDeepSleepDisable |
| |
| #define | ROM_PRCMDeepSleep |
| |
| #define | ROM_PRCMAudioClockConfigSetOverride |
| |
| #define | ROM_SMPHAcquire |
| |
| #define | ROM_SSIConfigSetExpClk |
| |
| #define | ROM_SSIDataPut |
| |
| #define | ROM_SSIDataPutNonBlocking |
| |
| #define | ROM_SSIDataGet |
| |
| #define | ROM_SSIDataGetNonBlocking |
| |
| #define | ROM_TimerConfigure |
| |
| #define | ROM_TimerLevelControl |
| |
| #define | ROM_TimerStallControl |
| |
| #define | ROM_TimerWaitOnTriggerControl |
| |
| #define | ROM_TimerIntervalLoadMode |
| |
| #define | ROM_TimerMatchUpdateMode |
| |
| #define | ROM_TRNGConfigure |
| |
| #define | ROM_TRNGNumberGet |
| |
| #define | ROM_UARTFIFOLevelGet |
| |
| #define | ROM_UARTConfigSetExpClk |
| |
| #define | ROM_UARTConfigGetExpClk |
| |
| #define | ROM_UARTDisable |
| |
| #define | ROM_UARTCharGetNonBlocking |
| |
| #define | ROM_UARTCharGet |
| |
| #define | ROM_UARTCharPutNonBlocking |
| |
| #define | ROM_UARTCharPut |
| |
| #define | ROM_uDMAChannelAttributeEnable |
| |
| #define | ROM_uDMAChannelAttributeDisable |
| |
| #define | ROM_uDMAChannelAttributeGet |
| |
| #define | ROM_uDMAChannelControlSet |
| |
| #define | ROM_uDMAChannelTransferSet |
| |
| #define | ROM_uDMAChannelScatterGatherSet |
| |
| #define | ROM_uDMAChannelSizeGet |
| |
| #define | ROM_uDMAChannelModeGet |
| |
| #define | ROM_VIMSConfigure |
| |
| #define | ROM_VIMSModeSet |
| |
| #define | ROM_VIMSModeGet |
| |
| #define | ROM_VIMSModeSafeSet |
| |
| #define | ROM_OSCClockSourceGet |
| |
| #define | ROM_OSCClockSourceSet |
| |
| #define | ROM_OSC_HPOSCRelativeFrequencyOffsetToRFCoreFormatConvert |
| |
| #define | ROM_AUXADCAdjustValueForGainAndOffset |
| |
| #define | ROM_AUXADCDisable |
| |
| #define | ROM_AUXADCDisableInputScaling |
| |
| #define | ROM_AUXADCEnableAsync |
| |
| #define | ROM_AUXADCEnableSyncNoBugWorkaround |
| |
| #define | ROM_AUXADCFlushFifo |
| |
| #define | ROM_AUXADCGetAdjustmentGain |
| |
| #define | ROM_AUXADCGetAdjustmentOffset |
| |
| #define | ROM_AUXADCMicrovoltsToValue |
| |
| #define | ROM_AUXADCPopFifo |
| |
| #define | ROM_AUXADCReadFifo |
| |
| #define | ROM_AUXADCUnadjustValueForGainAndOffset |
| |
| #define | ROM_AUXADCValueToMicrovolts |
| |
| #define | ROM_SysCtrlResetSourceGet |
| |
| #define | ROM_SysCtrl_DCDC_VoltageConditionalControl |
| |
| #define | ROM_AONBatMonTemperatureGetDegC |
| |
| #define | ROM_SetupAfterColdResetWakeupFromShutDownCfg1 |
| |
| #define | ROM_SetupAfterColdResetWakeupFromShutDownCfg2 |
| |
| #define | ROM_SetupAfterColdResetWakeupFromShutDownCfg3 |
| |
| #define | ROM_SetupGetTrimForAdcShModeEn |
| |
| #define | ROM_SetupGetTrimForAdcShVbufEn |
| |
| #define | ROM_SetupGetTrimForAmpcompCtrl |
| |
| #define | ROM_SetupGetTrimForAmpcompTh1 |
| |
| #define | ROM_SetupGetTrimForAmpcompTh2 |
| |
| #define | ROM_SetupGetTrimForAnabypassValue1 |
| |
| #define | ROM_SetupGetTrimForDblrLoopFilterResetVoltage |
| |
| #define | ROM_SetupGetTrimForRadcExtCfg |
| |
| #define | ROM_SetupGetTrimForRcOscLfIBiasTrim |
| |
| #define | ROM_SetupGetTrimForRcOscLfRtuneCtuneTrim |
| |
| #define | ROM_SetupGetTrimForXoscHfCtl |
| |
| #define | ROM_SetupGetTrimForXoscHfFastStart |
| |
| #define | ROM_SetupGetTrimForXoscHfIbiastherm |
| |
| #define | ROM_SetupGetTrimForXoscLfRegulatorAndCmirrwrRatio |
| |
| #define | ROM_SetupSetAonRtcSubSecInc |
| |
| #define | ROM_SetupSetCacheModeAccordingToCcfgSetting |
| |
| #define | ROM_SetupStepVddrTrimTo |
| |
| #define | ROM_I2SPointerSet |
| |
| #define | ROM_I2SSampleStampGet |
| |
| #define | ROM_PowerCtrlSourceSet |
| |
| #define | ROM_AESConfigureCCMCtrl |
| |
| #define | ROM_AESReadFromKeyStore |
| |
| #define | ROM_AESReadTag |
| |
| #define | ROM_AESSetInitializationVector |
| |
| #define | ROM_AESStartDMAOperation |
| |
| #define | ROM_AESVerifyTag |
| |
| #define | ROM_AESWaitForIRQFlags |
| |
| #define | ROM_AESWriteCCMInitializationVector |
| |
|
| typedef struct SHA256_Workzone | SHA256_Workzone |
| |
| typedef uint32_t(* | FPTR_CRC32_T) (uint8_t *, uint32_t, uint32_t) |
| |
| typedef uint32_t(* | FPTR_GETFLSIZE_T) (void) |
| |
| typedef uint32_t(* | FPTR_GETCHIPID_T) (void) |
| |
| typedef uint32_t(* | FPTR_RESERVED1_T) (uint32_t) |
| |
| typedef uint32_t(* | FPTR_RESERVED2_T) (void) |
| |
| typedef uint32_t(* | FPTR_RESERVED3_T) (uint8_t *, uint32_t, uint32_t) |
| |
| typedef void(* | FPTR_RESETDEV_T) (void) |
| |
| typedef uint32_t(* | FPTR_FLETCHER32_T) (uint16_t *, uint16_t, uint16_t) |
| |
| typedef uint32_t(* | FPTR_MINVAL_T) (uint32_t *, uint32_t) |
| |
| typedef uint32_t(* | FPTR_MAXVAL_T) (uint32_t *, uint32_t) |
| |
| typedef uint32_t(* | FPTR_MEANVAL_T) (uint32_t *, uint32_t) |
| |
| typedef uint32_t(* | FPTR_STDDVAL_T) (uint32_t *, uint32_t) |
| |
| typedef void(* | FPTR_HFSOURCESAFESWITCH_T) (void) |
| |
| typedef void(* | FPTR_RESERVED4_T) (uint32_t) |
| |
| typedef void(* | FPTR_RESERVED5_T) (uint32_t) |
| |
| typedef void(* | FPTR_COMPAIN_T) (uint8_t) |
| |
| typedef void(* | FPTR_COMPAREF_T) (uint8_t) |
| |
| typedef void(* | FPTR_ADCCOMPBIN_T) (uint8_t) |
| |
| typedef void(* | FPTR_DACVREF_T) (uint8_t) |
| |
| typedef void(* | FPTR_RESERVED6_T) (uint32_t) |
| |
| typedef void(* | FPTR_RESERVED7_T) (uint32_t) |
| |
| typedef void(* | FPTR_RESERVED8_T) (uint32_t) |
| |
| typedef void(* | FPTR_RESERVED9_T) (uint32_t) |
| |
| typedef uint8_t(* | FPTR_ECCKEYGEN_T) (ECC_State *, uint32_t *, uint32_t *, uint32_t *, uint32_t *) |
| |
| typedef uint8_t(* | FPTR_ECDSASIGN_T) (ECC_State *, uint32_t *, uint32_t *, uint32_t *, uint32_t *, uint32_t *) |
| |
| typedef uint8_t(* | FPTR_ECDSAVERIFY_T) (ECC_State *, uint32_t *, uint32_t *, uint32_t *, uint32_t *, uint32_t *) |
| |
| typedef uint8_t(* | FPTR_ECDHCOMMONKEY_T) (ECC_State *, uint32_t *, uint32_t *, uint32_t *, uint32_t *, uint32_t *) |
| |
| typedef uint8_t(* | FPTR_VALIDATEPUBLICKEY_T) (ECC_State *, uint32_t *, uint32_t *) |
| |
| typedef uint8_t(* | FPTR_VALIDATEPRIVATEKEY_T) (ECC_State *, uint32_t *) |
| |
| typedef uint8_t(* | FPTR_SHA256INIT_T) (SHA256_Workzone *) |
| |
| typedef uint8_t(* | FPTR_SHA256PROCESS_T) (SHA256_Workzone *, uint8_t *, uint32_t) |
| |
| typedef uint8_t(* | FPTR_SHA256FINAL_T) (SHA256_Workzone *, uint8_t *) |
| |
| typedef uint8_t(* | FPTR_SHA256FULL_T) (SHA256_Workzone *, uint8_t *, uint8_t *, uint32_t) |
| |