CC26xx Driver Library
rom.h File Reference
#include "../inc/hw_types.h"

Data Structures

struct  HARD_API_T
 

Macros

#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 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_CTRL_TABLE   ((uint32_t*) (ROM_API_TABLE[5]))
 
#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_CRYPTO_TABLE   ((uint32_t*) (ROM_API_TABLE[23]))
 
#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_API_PKA_TABLE   ((uint32_t*) (ROM_API_TABLE[32]))
 
#define ROM_API_SHA2_TABLE   ((uint32_t*) (ROM_API_TABLE[33]))
 
#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_FlashPowerModeSet
 
#define ROM_FlashPowerModeGet
 
#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_PRCMPowerDomainStatus
 
#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_AUXADCEnableSync
 
#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
 
#define ROM_AESWriteToKeyStore
 
#define ROM_PKABigNumAddGetResult
 
#define ROM_PKABigNumCmpGetResult
 
#define ROM_PKABigNumInvModGetResult
 
#define ROM_PKABigNumModGetResult
 
#define ROM_PKABigNumMultGetResult
 
#define ROM_PKAEccAddGetResult
 
#define ROM_PKAEccAddStart
 
#define ROM_PKAEccMultiplyGetResult
 
#define ROM_PKAEccMultiplyStart
 
#define ROM_PKAGetOpsStatus
 
#define ROM_PKABigNumAddStart
 
#define ROM_PKABigNumCmpStart
 
#define ROM_PKABigNumInvModStart
 
#define ROM_PKABigNumModStart
 
#define ROM_PKABigNumMultiplyStart
 
#define ROM_PKABigNumSubGetResult
 
#define ROM_PKABigNumSubStart
 
#define ROM_PKAArrayAllZeros
 
#define ROM_PKABigNumDivideGetQuotient
 
#define ROM_PKABigNumDivideGetRemainder
 
#define ROM_PKABigNumDivideStart
 
#define ROM_PKAEccVerifyPublicKeyWeierstrassStart
 
#define ROM_PKAZeroOutArray
 
#define ROM_PKAEccMontgomeryMultiplyStart
 
#define ROM_SHA2ComputeFinalHash
 
#define ROM_SHA2ComputeHash
 
#define ROM_SHA2ComputeInitialHash
 
#define ROM_SHA2ComputeIntermediateHash
 
#define ROM_SHA2StartDMAOperation
 
#define ROM_SHA2WaitForIRQFlags
 

Typedefs

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)
 

Functions

uint32_t MemBusWrkAroundHapiProgramFlash (uint8_t *pui8DataBuffer, uint32_t ui32Address, uint32_t ui32Count)
 
uint32_t MemBusWrkAroundHapiEraseSector (uint32_t ui32Address)
 

Macro Definition Documentation

#define __HAPI_H__
#define ADC_COMPB_IN_AUXIO0   0x10
#define ADC_COMPB_IN_AUXIO1   0x0F
#define ADC_COMPB_IN_AUXIO19   ADC_COMPB_IN_AUXIO0
#define ADC_COMPB_IN_AUXIO2   0x0E
#define ADC_COMPB_IN_AUXIO20   ADC_COMPB_IN_AUXIO1
#define ADC_COMPB_IN_AUXIO21   ADC_COMPB_IN_AUXIO2
#define ADC_COMPB_IN_AUXIO22   ADC_COMPB_IN_AUXIO3
#define ADC_COMPB_IN_AUXIO23   ADC_COMPB_IN_AUXIO4
#define ADC_COMPB_IN_AUXIO24   ADC_COMPB_IN_AUXIO5
#define ADC_COMPB_IN_AUXIO25   ADC_COMPB_IN_AUXIO6
#define ADC_COMPB_IN_AUXIO26   ADC_COMPB_IN_AUXIO7
#define ADC_COMPB_IN_AUXIO3   0x0D
#define ADC_COMPB_IN_AUXIO4   0x0C
#define ADC_COMPB_IN_AUXIO5   0x0B
#define ADC_COMPB_IN_AUXIO6   0x0A
#define ADC_COMPB_IN_AUXIO7   0x09
#define ADC_COMPB_IN_DCOUPL   0x03
#define ADC_COMPB_IN_NC   0x00
#define ADC_COMPB_IN_VDDS   0x05
#define ADC_COMPB_IN_VSS   0x04
#define COMPA_IN_AUXIO0   0x10
#define COMPA_IN_AUXIO1   0x0F
#define COMPA_IN_AUXIO19   COMPA_IN_AUXIO0
#define COMPA_IN_AUXIO2   0x0E
#define COMPA_IN_AUXIO20   COMPA_IN_AUXIO1
#define COMPA_IN_AUXIO21   COMPA_IN_AUXIO2
#define COMPA_IN_AUXIO22   COMPA_IN_AUXIO3
#define COMPA_IN_AUXIO23   COMPA_IN_AUXIO4
#define COMPA_IN_AUXIO24   COMPA_IN_AUXIO5
#define COMPA_IN_AUXIO25   COMPA_IN_AUXIO6
#define COMPA_IN_AUXIO26   COMPA_IN_AUXIO7
#define COMPA_IN_AUXIO3   0x0D
#define COMPA_IN_AUXIO4   0x0C
#define COMPA_IN_AUXIO5   0x0B
#define COMPA_IN_AUXIO6   0x0A
#define COMPA_IN_AUXIO7   0x09
#define COMPA_IN_NC   0x00
#define COMPA_REF_ADCVREFP   0x04
#define COMPA_REF_AUXIO0   0x10
#define COMPA_REF_AUXIO1   0x0F
#define COMPA_REF_AUXIO19   COMPA_REF_AUXIO0
#define COMPA_REF_AUXIO2   0x0E
#define COMPA_REF_AUXIO20   COMPA_REF_AUXIO1
#define COMPA_REF_AUXIO21   COMPA_REF_AUXIO2
#define COMPA_REF_AUXIO22   COMPA_REF_AUXIO3
#define COMPA_REF_AUXIO23   COMPA_REF_AUXIO4
#define COMPA_REF_AUXIO24   COMPA_REF_AUXIO5
#define COMPA_REF_AUXIO25   COMPA_REF_AUXIO6
#define COMPA_REF_AUXIO26   COMPA_REF_AUXIO7
#define COMPA_REF_AUXIO3   0x0D
#define COMPA_REF_AUXIO4   0x0C
#define COMPA_REF_AUXIO5   0x0B
#define COMPA_REF_AUXIO6   0x0A
#define COMPA_REF_AUXIO7   0x09
#define COMPA_REF_DCOUPL   0x01
#define COMPA_REF_NC   0x00
#define COMPA_REF_VDDS   0x03
#define COMPA_REF_VSS   0x02
#define DAC_REF_DCOUPL   0x01
#define DAC_REF_NC   0x00
#define DAC_REF_VDDS   0x03
#define DAC_REF_VSS   0x02
#define HapiCrc32 (   a,
  b,
 
)    P_HARD_API->Crc32(a,b,c)
#define HapiFletcher32 (   a,
  b,
 
)    P_HARD_API->Fletcher32(a,b,c)
#define HapiGetChipId ( )    P_HARD_API->GetChipId()
#define HapiGetFlashSize ( )    P_HARD_API->FlashGetSize()
#define HapiHFSourceSafeSwitch ( )    P_HARD_API->HFSourceSafeSwitch()

Referenced by OSCHfSourceSwitch().

#define HapiMaxValue (   a,
 
)    P_HARD_API->MaxValue(a,b)
#define HapiMeanValue (   a,
 
)    P_HARD_API->MeanValue(a,b)
#define HapiMinValue (   a,
 
)    P_HARD_API->MinValue(a,b)
#define HapiProgramFlash (   a,
  b,
 
)    MemBusWrkAroundHapiProgramFlash(a,b,c)
#define HapiResetDevice ( )    P_HARD_API->ResetDevice()
#define HapiSectorErase (   a)    MemBusWrkAroundHapiEraseSector(a)
#define HapiSelectADCCompBInput (   a)    P_HARD_API->SelectADCCompBInput(a)

Referenced by AUXADCSelectInput().

#define HapiSelectCompAInput (   a)    P_HARD_API->SelectCompAInput(a)
#define HapiSelectCompARef (   a)    P_HARD_API->SelectCompARef(a)
#define HapiSelectDACVref (   a)    P_HARD_API->SelectDACVref(a)
#define HapiStandDeviationValue (   a,
 
)    P_HARD_API->StandDeviationValue(a,b)
#define P_HARD_API   ((HARD_API_T*) ROM_HAPI_TABLE_ADDR)
#define ROM_AESConfigureCCMCtrl
Value:
((void (*)(uint32_t nonceLength, uint32_t macLength, bool encrypt)) \
ROM_API_AES_TABLE[0])
#define ROM_AESReadFromKeyStore
Value:
((uint32_t (*)(uint32_t keyStoreArea)) \
ROM_API_AES_TABLE[1])
#define ROM_AESReadTag
Value:
((uint32_t (*)(uint8_t *tag, uint32_t tagLength)) \
ROM_API_AES_TABLE[2])
#define ROM_AESSetInitializationVector
Value:
((void (*)(const uint32_t *initializationVector)) \
ROM_API_AES_TABLE[3])
#define ROM_AESStartDMAOperation
Value:
((void (*)(const uint8_t *channel0Addr, uint32_t channel0Length, uint8_t *channel1Addr, uint32_t channel1Length)) \
ROM_API_AES_TABLE[4])
#define ROM_AESVerifyTag
Value:
((uint32_t (*)(const uint8_t *tag, uint32_t tagLength)) \
ROM_API_AES_TABLE[5])
#define ROM_AESWaitForIRQFlags
Value:
((uint32_t (*)(uint32_t irqFlags)) \
ROM_API_AES_TABLE[6])
#define ROM_AESWriteCCMInitializationVector
Value:
((void (*)(const uint8_t *nonce, uint32_t nonceLength)) \
ROM_API_AES_TABLE[7])
#define ROM_AESWriteToKeyStore
Value:
((uint32_t (*)(const uint8_t *aesKey, uint32_t aesKeyLength, uint32_t keyStoreArea)) \
ROM_API_AES_TABLE[8])
#define ROM_AONBatMonTemperatureGetDegC
Value:
((int32_t (*)(void)) \
ROM_API_AON_BATMON_TABLE[0])
#define ROM_AONEventMcuGet
Value:
((uint32_t (*)(uint32_t ui32MCUEvent)) \
ROM_API_AON_EVENT_TABLE[5])
#define ROM_AONEventMcuSet
Value:
((void (*)(uint32_t ui32MCUEvent, uint32_t ui32EventSrc)) \
ROM_API_AON_EVENT_TABLE[4])
#define ROM_AONEventMcuWakeUpGet
Value:
((uint32_t (*)(uint32_t ui32MCUWUEvent)) \
ROM_API_AON_EVENT_TABLE[1])
#define ROM_AONEventMcuWakeUpSet
Value:
((void (*)(uint32_t ui32MCUWUEvent, uint32_t ui32EventSrc)) \
ROM_API_AON_EVENT_TABLE[0])
#define ROM_AONRTCCurrent64BitValueGet
Value:
((uint64_t (*)(void)) \
ROM_API_AON_RTC_TABLE[12])
#define ROM_API_AES_TABLE   ((uint32_t*) (ROM_API_TABLE[31]))
#define ROM_API_AON_BATMON_TABLE   ((uint32_t*) (ROM_API_TABLE[27]))
#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_ADC_TABLE   ((uint32_t*) (ROM_API_TABLE[25]))
#define ROM_API_AUX_CTRL_TABLE   ((uint32_t*) (ROM_API_TABLE[5]))
#define ROM_API_AUX_TDC_TABLE   ((uint32_t*) (ROM_API_TABLE[6]))
#define ROM_API_CRYPTO_TABLE   ((uint32_t*) (ROM_API_TABLE[23]))
#define ROM_API_DDI_TABLE   ((uint32_t*) (ROM_API_TABLE[9]))
#define ROM_API_FLASH_TABLE   ((uint32_t*) (ROM_API_TABLE[10]))

Referenced by FlashProgram(), and FlashSectorErase().

#define ROM_API_I2C_TABLE   ((uint32_t*) (ROM_API_TABLE[11]))
#define ROM_API_I2S_TABLE   ((uint32_t*) (ROM_API_TABLE[29]))
#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_OSC_TABLE   ((uint32_t*) (ROM_API_TABLE[24]))
#define ROM_API_PKA_TABLE   ((uint32_t*) (ROM_API_TABLE[32]))
#define ROM_API_PRCM_TABLE   ((uint32_t*) (ROM_API_TABLE[14]))
#define ROM_API_PWR_CTRL_TABLE   ((uint32_t*) (ROM_API_TABLE[30]))
#define ROM_API_SETUP_ROM_TABLE   ((uint32_t*) (ROM_API_TABLE[28]))
#define ROM_API_SHA2_TABLE   ((uint32_t*) (ROM_API_TABLE[33]))
#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_SYS_CTRL_TABLE   ((uint32_t*) (ROM_API_TABLE[26]))
#define ROM_API_TABLE   ((uint32_t *) 0x10000180)
#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_AUXADCAdjustValueForGainAndOffset
Value:
((int32_t (*)(int32_t adcValue, int32_t gain, int32_t offset)) \
ROM_API_AUX_ADC_TABLE[0])
#define ROM_AUXADCDisable
Value:
((void (*)(void)) \
ROM_API_AUX_ADC_TABLE[1])
#define ROM_AUXADCDisableInputScaling
Value:
((void (*)(void)) \
ROM_API_AUX_ADC_TABLE[2])
#define ROM_AUXADCEnableAsync
Value:
((void (*)(uint32_t refSource, uint32_t trigger)) \
ROM_API_AUX_ADC_TABLE[3])
#define ROM_AUXADCEnableSync
Value:
((void (*)(uint32_t refSource, uint32_t sampleTime, uint32_t trigger)) \
ROM_API_AUX_ADC_TABLE[4])
#define ROM_AUXADCFlushFifo
Value:
((void (*)(void)) \
ROM_API_AUX_ADC_TABLE[5])
#define ROM_AUXADCGetAdjustmentGain
Value:
((int32_t (*)(uint32_t refSource)) \
ROM_API_AUX_ADC_TABLE[6])
#define ROM_AUXADCGetAdjustmentOffset
Value:
((int32_t (*)(uint32_t refSource)) \
ROM_API_AUX_ADC_TABLE[7])
#define ROM_AUXADCMicrovoltsToValue
Value:
((int32_t (*)(int32_t fixedRefVoltage, int32_t microvolts)) \
ROM_API_AUX_ADC_TABLE[8])
#define ROM_AUXADCPopFifo
Value:
((uint32_t (*)(void)) \
ROM_API_AUX_ADC_TABLE[9])
#define ROM_AUXADCReadFifo
Value:
((uint32_t (*)(void)) \
ROM_API_AUX_ADC_TABLE[10])
#define ROM_AUXADCUnadjustValueForGainAndOffset
Value:
((int32_t (*)(int32_t adcValue, int32_t gain, int32_t offset)) \
ROM_API_AUX_ADC_TABLE[11])
#define ROM_AUXADCValueToMicrovolts
Value:
((int32_t (*)(int32_t fixedRefVoltage, int32_t adcValue)) \
ROM_API_AUX_ADC_TABLE[12])
#define ROM_AUXTDCConfigSet
Value:
((void (*)(uint32_t ui32Base, uint32_t ui32StartCondition, uint32_t ui32StopCondition)) \
ROM_API_AUX_TDC_TABLE[0])
#define ROM_AUXTDCMeasurementDone
Value:
((uint32_t (*)(uint32_t ui32Base)) \
ROM_API_AUX_TDC_TABLE[1])
#define ROM_DDI16BitfieldRead
Value:
((uint16_t (*)(uint32_t ui32Base, uint32_t ui32Reg, uint32_t ui32Mask, uint32_t ui32Shift)) \
ROM_API_DDI_TABLE[3])
#define ROM_DDI16BitfieldWrite
Value:
((void (*)(uint32_t ui32Base, uint32_t ui32Reg, uint32_t ui32Mask, uint32_t ui32Shift, uint16_t ui32Data)) \
ROM_API_DDI_TABLE[1])
#define ROM_DDI16BitRead
Value:
((uint16_t (*)(uint32_t ui32Base, uint32_t ui32Reg, uint32_t ui32Mask)) \
ROM_API_DDI_TABLE[2])
#define ROM_DDI16BitWrite
Value:
((void (*)(uint32_t ui32Base, uint32_t ui32Reg, uint32_t ui32Mask, uint32_t ui32WrData)) \
ROM_API_DDI_TABLE[0])
#define ROM_DDI32RegWrite
Value:
((void (*)(uint32_t ui32Base, uint32_t ui32Reg, uint32_t ui32Val)) \
ROM_API_DDI_TABLE[4])
#define ROM_FlashDisableSectorsForWrite
Value:
((void (*)(void)) \
ROM_API_FLASH_TABLE[9])
#define ROM_FlashEfuseReadRow
Value:
((bool (*)(uint32_t *pui32EfuseData, uint32_t ui32RowAddress)) \
ROM_API_FLASH_TABLE[8])
#define ROM_FlashPowerModeGet
Value:
((uint32_t (*)(void)) \
ROM_API_FLASH_TABLE[1])
#define ROM_FlashPowerModeSet
Value:
((void (*)(uint32_t ui32PowerMode, uint32_t ui32BankGracePeriod, uint32_t ui32PumpGracePeriod)) \
ROM_API_FLASH_TABLE[0])
#define ROM_FlashProtectionGet
Value:
((uint32_t (*)(uint32_t ui32SectorAddress)) \
ROM_API_FLASH_TABLE[3])
#define ROM_FlashProtectionSave
Value:
((uint32_t (*)(uint32_t ui32SectorAddress)) \
ROM_API_FLASH_TABLE[4])
#define ROM_FlashProtectionSet
Value:
((void (*)(uint32_t ui32SectorAddress, uint32_t ui32ProtectMode)) \
ROM_API_FLASH_TABLE[2])
#define ROM_HAPI_TABLE_ADDR   0x10000048
#define ROM_I2CMasterErr
Value:
((uint32_t (*)(uint32_t ui32Base)) \
ROM_API_I2C_TABLE[1])
#define ROM_I2CMasterInitExpClk
Value:
((void (*)(uint32_t ui32Base, uint32_t ui32I2CClk, bool bFast)) \
ROM_API_I2C_TABLE[0])
#define ROM_I2SPointerSet
Value:
((void (*)(uint32_t ui32Base, bool bInput, void * pNextPointer)) \
ROM_API_I2S_TABLE[0])
#define ROM_I2SSampleStampGet
Value:
((uint32_t (*)(uint32_t ui32Base, uint32_t ui32Channel)) \
ROM_API_I2S_TABLE[1])
#define ROM_IntDisable
Value:
((void (*)(uint32_t ui32Interrupt)) \
ROM_API_INTERRUPT_TABLE[5])
#define ROM_IntEnable
Value:
((void (*)(uint32_t ui32Interrupt)) \
ROM_API_INTERRUPT_TABLE[4])
#define ROM_IntPendClear
Value:
((void (*)(uint32_t ui32Interrupt)) \
ROM_API_INTERRUPT_TABLE[8])
#define ROM_IntPendGet
Value:
((bool (*)(uint32_t ui32Interrupt)) \
ROM_API_INTERRUPT_TABLE[7])
#define ROM_IntPendSet
Value:
((void (*)(uint32_t ui32Interrupt)) \
ROM_API_INTERRUPT_TABLE[6])
#define ROM_IntPriorityGet
Value:
((int32_t (*)(uint32_t ui32Interrupt)) \
ROM_API_INTERRUPT_TABLE[3])
#define ROM_IntPriorityGroupingGet
Value:
((uint32_t (*)(void)) \
ROM_API_INTERRUPT_TABLE[1])
#define ROM_IntPriorityGroupingSet
Value:
((void (*)(uint32_t ui32Bits)) \
ROM_API_INTERRUPT_TABLE[0])
#define ROM_IntPrioritySet
Value:
((void (*)(uint32_t ui32Interrupt, uint8_t ui8Priority)) \
ROM_API_INTERRUPT_TABLE[2])
#define ROM_IOCIntDisable
Value:
((void (*)(uint32_t ui32IOId)) \
ROM_API_IOC_TABLE[13])
#define ROM_IOCIntEnable
Value:
((void (*)(uint32_t ui32IOId)) \
ROM_API_IOC_TABLE[12])
#define ROM_IOCIODrvStrengthSet
Value:
((void (*)(uint32_t ui32IOId, uint32_t ui32IOCurrent, uint32_t ui32DrvStrength)) \
ROM_API_IOC_TABLE[10])
#define ROM_IOCIOHystSet
Value:
((void (*)(uint32_t ui32IOId, uint32_t ui32Hysteresis)) \
ROM_API_IOC_TABLE[7])
#define ROM_IOCIOInputSet
Value:
((void (*)(uint32_t ui32IOId, uint32_t ui32Input)) \
ROM_API_IOC_TABLE[8])
#define ROM_IOCIOIntSet
Value:
((void (*)(uint32_t ui32IOId, uint32_t ui32Int, uint32_t ui32EdgeDet)) \
ROM_API_IOC_TABLE[5])
#define ROM_IOCIOModeSet
Value:
((void (*)(uint32_t ui32IOId, uint32_t ui32IOMode)) \
ROM_API_IOC_TABLE[4])
#define ROM_IOCIOPortIdSet
Value:
((void (*)(uint32_t ui32IOId, uint32_t ui32PortId)) \
ROM_API_IOC_TABLE[11])
#define ROM_IOCIOPortPullSet
Value:
((void (*)(uint32_t ui32IOId, uint32_t ui32Pull)) \
ROM_API_IOC_TABLE[6])
#define ROM_IOCIOShutdownSet
Value:
((void (*)(uint32_t ui32IOId, uint32_t ui32IOShutdown)) \
ROM_API_IOC_TABLE[2])
#define ROM_IOCIOSlewCtrlSet
Value:
((void (*)(uint32_t ui32IOId, uint32_t ui32SlewEnable)) \
ROM_API_IOC_TABLE[9])
#define ROM_IOCPinTypeAux
Value:
((void (*)(uint32_t ui32IOId)) \
ROM_API_IOC_TABLE[21])
#define ROM_IOCPinTypeGpioInput
Value:
((void (*)(uint32_t ui32IOId)) \
ROM_API_IOC_TABLE[14])
#define ROM_IOCPinTypeGpioOutput
Value:
((void (*)(uint32_t ui32IOId)) \
ROM_API_IOC_TABLE[15])
#define ROM_IOCPinTypeI2c
Value:
((void (*)(uint32_t ui32Base, uint32_t ui32Data, uint32_t ui32Clk)) \
ROM_API_IOC_TABLE[19])
#define ROM_IOCPinTypeSsiMaster
Value:
((void (*)(uint32_t ui32Base, uint32_t ui32Rx, uint32_t ui32Tx, uint32_t ui32Fss, uint32_t ui32Clk)) \
ROM_API_IOC_TABLE[17])
#define ROM_IOCPinTypeSsiSlave
Value:
((void (*)(uint32_t ui32Base, uint32_t ui32Rx, uint32_t ui32Tx, uint32_t ui32Fss, uint32_t ui32Clk)) \
ROM_API_IOC_TABLE[18])
#define ROM_IOCPinTypeUart
Value:
((void (*)(uint32_t ui32Base, uint32_t ui32Rx, uint32_t ui32Tx, uint32_t ui32Cts, uint32_t ui32Rts)) \
ROM_API_IOC_TABLE[16])
#define ROM_IOCPortConfigureGet
Value:
((uint32_t (*)(uint32_t ui32IOId)) \
ROM_API_IOC_TABLE[1])
#define ROM_IOCPortConfigureSet
Value:
((void (*)(uint32_t ui32IOId, uint32_t ui32PortId, uint32_t ui32IOConfig)) \
ROM_API_IOC_TABLE[0])
#define ROM_OSC_HPOSCRelativeFrequencyOffsetToRFCoreFormatConvert
Value:
((int16_t (*)(int32_t HPOSC_RelFreqOffset)) \
ROM_API_OSC_TABLE[3])
#define ROM_OSCClockSourceGet
Value:
((uint32_t (*)(uint32_t ui32SrcClk)) \
ROM_API_OSC_TABLE[0])

Referenced by OSCHF_AttemptToSwitchToXosc(), and OSCHF_SwitchToRcOscTurnOffXosc().

#define ROM_OSCClockSourceSet
Value:
((void (*)(uint32_t ui32SrcClk, uint32_t ui32Osc)) \
ROM_API_OSC_TABLE[1])

Referenced by OSCHF_SwitchToRcOscTurnOffXosc(), and OSCHF_TurnOnXosc().

#define ROM_PKAArrayAllZeros
Value:
((bool (*)(const uint8_t *array, uint32_t arrayLength)) \
ROM_API_PKA_TABLE[17])
#define ROM_PKABigNumAddGetResult
Value:
((uint32_t (*)(uint8_t *resultBuf, uint32_t *resultLength, uint32_t resultPKAMemAddr)) \
ROM_API_PKA_TABLE[0])
#define ROM_PKABigNumAddStart
Value:
((uint32_t (*)(const uint8_t *bigNum1, uint32_t bigNum1Length, const uint8_t *bigNum2, uint32_t bigNum2Length, uint32_t *resultPKAMemAddr)) \
ROM_API_PKA_TABLE[10])
#define ROM_PKABigNumCmpGetResult
Value:
((uint32_t (*)(void)) \
ROM_API_PKA_TABLE[1])
#define ROM_PKABigNumCmpStart
Value:
((uint32_t (*)(const uint8_t *bigNum1, const uint8_t *bigNum2, uint32_t length)) \
ROM_API_PKA_TABLE[11])
#define ROM_PKABigNumDivideGetQuotient
Value:
((uint32_t (*)(uint8_t *resultBuf, uint32_t *length, uint32_t resultQuotientMemAddr)) \
ROM_API_PKA_TABLE[18])
#define ROM_PKABigNumDivideGetRemainder
Value:
((uint32_t (*)(uint8_t *resultBuf, uint32_t *length, uint32_t resultRemainderMemAddr)) \
ROM_API_PKA_TABLE[19])
#define ROM_PKABigNumDivideStart
Value:
((uint32_t (*)(const uint8_t *dividend, uint32_t dividendLength, const uint8_t *divisor, uint32_t divisorLength, uint32_t *resultQuotientMemAddr, uint32_t *resultRemainderMemAddr)) \
ROM_API_PKA_TABLE[20])
#define ROM_PKABigNumInvModGetResult
Value:
((uint32_t (*)(uint8_t *resultBuf, uint32_t length, uint32_t resultPKAMemAddr)) \
ROM_API_PKA_TABLE[2])
#define ROM_PKABigNumInvModStart
Value:
((uint32_t (*)(const uint8_t *bigNum, uint32_t bigNumLength, const uint8_t *modulus, uint32_t modulusLength, uint32_t *resultPKAMemAddr)) \
ROM_API_PKA_TABLE[12])
#define ROM_PKABigNumModGetResult
Value:
((uint32_t (*)(uint8_t *resultBuf, uint32_t length, uint32_t resultPKAMemAddr)) \
ROM_API_PKA_TABLE[3])
#define ROM_PKABigNumModStart
Value:
((uint32_t (*)(const uint8_t *bigNum, uint32_t bigNumLength, const uint8_t *modulus, uint32_t modulusLength, uint32_t *resultPKAMemAddr)) \
ROM_API_PKA_TABLE[13])
#define ROM_PKABigNumMultGetResult
Value:
((uint32_t (*)(uint8_t *resultBuf, uint32_t *resultLength, uint32_t resultPKAMemAddr)) \
ROM_API_PKA_TABLE[4])
#define ROM_PKABigNumMultiplyStart
Value:
((uint32_t (*)(const uint8_t *multiplicand, uint32_t multiplicandLength, const uint8_t *multiplier, uint32_t multiplierLength, uint32_t *resultPKAMemAddr)) \
ROM_API_PKA_TABLE[14])
#define ROM_PKABigNumSubGetResult
Value:
((uint32_t (*)(uint8_t *resultBuf, uint32_t *resultLength, uint32_t resultPKAMemAddr)) \
ROM_API_PKA_TABLE[15])
#define ROM_PKABigNumSubStart
Value:
((uint32_t (*)(const uint8_t *minuend, uint32_t minuendLength, const uint8_t *subtrahend, uint32_t subtrahendLength, uint32_t *resultPKAMemAddr)) \
ROM_API_PKA_TABLE[16])
#define ROM_PKAEccAddGetResult
Value:
((uint32_t (*)(uint8_t *curvePointX, uint8_t *curvePointY, uint32_t resultPKAMemAddr, uint32_t length)) \
ROM_API_PKA_TABLE[5])
#define ROM_PKAEccAddStart
Value:
((uint32_t (*)(const uint8_t *curvePoint1X, const uint8_t *curvePoint1Y, const uint8_t *curvePoint2X, const uint8_t *curvePoint2Y, const uint8_t *prime, const uint8_t *a, uint32_t length, uint32_t *resultPKAMemAddr)) \
ROM_API_PKA_TABLE[6])
#define ROM_PKAEccMontgomeryMultiplyStart
Value:
((uint32_t (*)(const uint8_t *scalar, const uint8_t *curvePointX, const uint8_t *prime, const uint8_t *a, uint32_t length, uint32_t *resultPKAMemAddr)) \
ROM_API_PKA_TABLE[23])
#define ROM_PKAEccMultiplyGetResult
Value:
((uint32_t (*)(uint8_t *curvePointX, uint8_t *curvePointY, uint32_t resultPKAMemAddr, uint32_t length)) \
ROM_API_PKA_TABLE[7])
#define ROM_PKAEccMultiplyStart
Value:
((uint32_t (*)(const uint8_t *scalar, const uint8_t *curvePointX, const uint8_t *curvePointY, const uint8_t *prime, const uint8_t *a, const uint8_t *b, uint32_t length, uint32_t *resultPKAMemAddr)) \
ROM_API_PKA_TABLE[8])
#define ROM_PKAEccVerifyPublicKeyWeierstrassStart
Value:
((uint32_t (*)(const uint8_t *curvePointX, const uint8_t *curvePointY, const uint8_t *prime, const uint8_t *a, const uint8_t *b, const uint8_t *order, uint32_t length)) \
ROM_API_PKA_TABLE[21])
#define ROM_PKAGetOpsStatus
Value:
((uint32_t (*)(void)) \
ROM_API_PKA_TABLE[9])
#define ROM_PKAZeroOutArray
Value:
((void (*)(const uint8_t *array, uint32_t arrayLength)) \
ROM_API_PKA_TABLE[22])
#define ROM_PowerCtrlSourceSet
Value:
((void (*)(uint32_t ui32PowerConfig)) \
ROM_API_PWR_CTRL_TABLE[0])
#define ROM_PRCMAudioClockConfigSet
Value:
((void (*)(uint32_t ui32ClkConfig, uint32_t ui32SampleRate)) \
ROM_API_PRCM_TABLE[4])
#define ROM_PRCMAudioClockConfigSetOverride
Value:
((void (*)(uint32_t ui32ClkConfig, uint32_t ui32MstDiv, uint32_t ui32BitDiv, uint32_t ui32WordDiv)) \
ROM_API_PRCM_TABLE[17])
#define ROM_PRCMDeepSleep
Value:
((void (*)(void)) \
ROM_API_PRCM_TABLE[14])
#define ROM_PRCMInfClockConfigureGet
Value:
((uint32_t (*)(uint32_t ui32PowerMode)) \
ROM_API_PRCM_TABLE[1])
#define ROM_PRCMInfClockConfigureSet
Value:
((void (*)(uint32_t ui32ClkDiv, uint32_t ui32PowerMode)) \
ROM_API_PRCM_TABLE[0])
#define ROM_PRCMPeripheralDeepSleepDisable
Value:
((void (*)(uint32_t ui32Peripheral)) \
ROM_API_PRCM_TABLE[12])
#define ROM_PRCMPeripheralDeepSleepEnable
Value:
((void (*)(uint32_t ui32Peripheral)) \
ROM_API_PRCM_TABLE[11])
#define ROM_PRCMPeripheralRunDisable
Value:
((void (*)(uint32_t ui32Peripheral)) \
ROM_API_PRCM_TABLE[8])
#define ROM_PRCMPeripheralRunEnable
Value:
((void (*)(uint32_t ui32Peripheral)) \
ROM_API_PRCM_TABLE[7])
#define ROM_PRCMPeripheralSleepDisable
Value:
((void (*)(uint32_t ui32Peripheral)) \
ROM_API_PRCM_TABLE[10])
#define ROM_PRCMPeripheralSleepEnable
Value:
((void (*)(uint32_t ui32Peripheral)) \
ROM_API_PRCM_TABLE[9])
#define ROM_PRCMPowerDomainOff
Value:
((void (*)(uint32_t ui32Domains)) \
ROM_API_PRCM_TABLE[6])
#define ROM_PRCMPowerDomainOn
Value:
((void (*)(uint32_t ui32Domains)) \
ROM_API_PRCM_TABLE[5])
#define ROM_PRCMPowerDomainStatus
Value:
((uint32_t (*)(uint32_t ui32Domains)) \
ROM_API_PRCM_TABLE[13])
#define ROM_SetupAfterColdResetWakeupFromShutDownCfg1
Value:
((void (*)(uint32_t ccfg_ModeConfReg)) \
ROM_API_SETUP_ROM_TABLE[0])
#define ROM_SetupAfterColdResetWakeupFromShutDownCfg2
Value:
((void (*)(uint32_t ui32Fcfg1Revision, uint32_t ccfg_ModeConfReg)) \
ROM_API_SETUP_ROM_TABLE[1])
#define ROM_SetupAfterColdResetWakeupFromShutDownCfg3
Value:
((void (*)(uint32_t ccfg_ModeConfReg)) \
ROM_API_SETUP_ROM_TABLE[2])
#define ROM_SetupGetTrimForAdcShModeEn
Value:
((uint32_t (*)(uint32_t ui32Fcfg1Revision)) \
ROM_API_SETUP_ROM_TABLE[3])
#define ROM_SetupGetTrimForAdcShVbufEn
Value:
((uint32_t (*)(uint32_t ui32Fcfg1Revision)) \
ROM_API_SETUP_ROM_TABLE[4])
#define ROM_SetupGetTrimForAmpcompCtrl
Value:
((uint32_t (*)(uint32_t ui32Fcfg1Revision)) \
ROM_API_SETUP_ROM_TABLE[5])
#define ROM_SetupGetTrimForAmpcompTh1
Value:
((uint32_t (*)(void)) \
ROM_API_SETUP_ROM_TABLE[6])
#define ROM_SetupGetTrimForAmpcompTh2
Value:
((uint32_t (*)(void)) \
ROM_API_SETUP_ROM_TABLE[7])
#define ROM_SetupGetTrimForAnabypassValue1
Value:
((uint32_t (*)(uint32_t ccfg_ModeConfReg)) \
ROM_API_SETUP_ROM_TABLE[8])
#define ROM_SetupGetTrimForDblrLoopFilterResetVoltage
Value:
((uint32_t (*)(uint32_t ui32Fcfg1Revision)) \
ROM_API_SETUP_ROM_TABLE[9])
#define ROM_SetupGetTrimForRadcExtCfg
Value:
((uint32_t (*)(uint32_t ui32Fcfg1Revision)) \
ROM_API_SETUP_ROM_TABLE[10])
#define ROM_SetupGetTrimForRcOscLfIBiasTrim
Value:
((uint32_t (*)(uint32_t ui32Fcfg1Revision)) \
ROM_API_SETUP_ROM_TABLE[11])
#define ROM_SetupGetTrimForRcOscLfRtuneCtuneTrim
Value:
((uint32_t (*)(void)) \
ROM_API_SETUP_ROM_TABLE[12])
#define ROM_SetupGetTrimForXoscHfCtl
Value:
((uint32_t (*)(uint32_t ui32Fcfg1Revision)) \
ROM_API_SETUP_ROM_TABLE[13])
#define ROM_SetupGetTrimForXoscHfFastStart
Value:
((uint32_t (*)(void)) \
ROM_API_SETUP_ROM_TABLE[14])
#define ROM_SetupGetTrimForXoscHfIbiastherm
Value:
((uint32_t (*)(void)) \
ROM_API_SETUP_ROM_TABLE[15])
#define ROM_SetupGetTrimForXoscLfRegulatorAndCmirrwrRatio
Value:
((uint32_t (*)(uint32_t ui32Fcfg1Revision)) \
ROM_API_SETUP_ROM_TABLE[16])
#define ROM_SetupSetAonRtcSubSecInc
Value:
((void (*)(uint32_t subSecInc)) \
ROM_API_SETUP_ROM_TABLE[17])
#define ROM_SetupSetCacheModeAccordingToCcfgSetting
Value:
((void (*)(void)) \
ROM_API_SETUP_ROM_TABLE[18])
#define ROM_SetupStepVddrTrimTo
Value:
((void (*)(uint32_t toCode)) \
ROM_API_SETUP_ROM_TABLE[19])
#define ROM_SHA2ComputeFinalHash
Value:
((uint32_t (*)(const uint8_t *message, uint8_t *resultDigest, uint32_t *intermediateDigest, uint32_t totalMsgLength, uint32_t messageLength, uint32_t hashAlgorithm)) \
ROM_API_SHA2_TABLE[0])
#define ROM_SHA2ComputeHash
Value:
((uint32_t (*)(const uint8_t *message, uint8_t *resultDigest, uint32_t totalMsgLength, uint32_t hashAlgorithm)) \
ROM_API_SHA2_TABLE[1])
#define ROM_SHA2ComputeInitialHash
Value:
((uint32_t (*)(const uint8_t *message, uint32_t *intermediateDigest, uint32_t hashAlgorithm, uint32_t initialMessageLength)) \
ROM_API_SHA2_TABLE[2])
#define ROM_SHA2ComputeIntermediateHash
Value:
((uint32_t (*)(const uint8_t *message, uint32_t *intermediateDigest, uint32_t hashAlgorithm, uint32_t intermediateMessageLength)) \
ROM_API_SHA2_TABLE[3])
#define ROM_SHA2StartDMAOperation
Value:
((void (*)(uint8_t *channel0Addr, uint32_t channel0Length, uint8_t *channel1Addr, uint32_t channel1Length)) \
ROM_API_SHA2_TABLE[4])
#define ROM_SHA2WaitForIRQFlags
Value:
((uint32_t (*)(uint32_t irqFlags)) \
ROM_API_SHA2_TABLE[5])
#define ROM_SMPHAcquire
Value:
((void (*)(uint32_t ui32Semaphore)) \
ROM_API_SMPH_TABLE[0])
#define ROM_SSIConfigSetExpClk
Value:
((void (*)(uint32_t ui32Base, uint32_t ui32SSIClk, uint32_t ui32Protocol, uint32_t ui32Mode, uint32_t ui32BitRate, uint32_t ui32DataWidth)) \
ROM_API_SSI_TABLE[0])
#define ROM_SSIDataGet
Value:
((void (*)(uint32_t ui32Base, uint32_t *pui32Data)) \
ROM_API_SSI_TABLE[3])
#define ROM_SSIDataGetNonBlocking
Value:
((int32_t (*)(uint32_t ui32Base, uint32_t *pui32Data)) \
ROM_API_SSI_TABLE[4])
#define ROM_SSIDataPut
Value:
((void (*)(uint32_t ui32Base, uint32_t ui32Data)) \
ROM_API_SSI_TABLE[1])
#define ROM_SSIDataPutNonBlocking
Value:
((int32_t (*)(uint32_t ui32Base, uint32_t ui32Data)) \
ROM_API_SSI_TABLE[2])
#define ROM_SysCtrl_DCDC_VoltageConditionalControl
Value:
((void (*)(void)) \
ROM_API_SYS_CTRL_TABLE[1])
#define ROM_SysCtrlResetSourceGet
Value:
((uint32_t (*)(void)) \
ROM_API_SYS_CTRL_TABLE[0])
#define ROM_TimerConfigure
Value:
((void (*)(uint32_t ui32Base, uint32_t ui32Config)) \
ROM_API_TIMER_TABLE[0])
#define ROM_TimerIntervalLoadMode
Value:
((void (*)(uint32_t ui32Base, uint32_t ui32Timer, uint32_t ui32Mode)) \
ROM_API_TIMER_TABLE[5])
#define ROM_TimerLevelControl
Value:
((void (*)(uint32_t ui32Base, uint32_t ui32Timer, bool bInvert)) \
ROM_API_TIMER_TABLE[1])
#define ROM_TimerMatchUpdateMode
Value:
((void (*)(uint32_t ui32Base, uint32_t ui32Timer, uint32_t ui32Mode)) \
ROM_API_TIMER_TABLE[6])
#define ROM_TimerStallControl
Value:
((void (*)(uint32_t ui32Base, uint32_t ui32Timer, bool bStall)) \
ROM_API_TIMER_TABLE[3])
#define ROM_TimerWaitOnTriggerControl
Value:
((void (*)(uint32_t ui32Base, uint32_t ui32Timer, bool bWait)) \
ROM_API_TIMER_TABLE[4])
#define ROM_TRNGConfigure
Value:
((void (*)(uint32_t ui32MinSamplesPerCycle, uint32_t ui32MaxSamplesPerCycle, uint32_t ui32ClocksPerSample)) \
ROM_API_TRNG_TABLE[0])
#define ROM_TRNGNumberGet
Value:
((uint32_t (*)(uint32_t ui32Word)) \
ROM_API_TRNG_TABLE[1])
#define ROM_UARTCharGet
Value:
((int32_t (*)(uint32_t ui32Base)) \
ROM_API_UART_TABLE[5])
#define ROM_UARTCharGetNonBlocking
Value:
((int32_t (*)(uint32_t ui32Base)) \
ROM_API_UART_TABLE[4])
#define ROM_UARTCharPut
Value:
((void (*)(uint32_t ui32Base, uint8_t ui8Data)) \
ROM_API_UART_TABLE[7])
#define ROM_UARTCharPutNonBlocking
Value:
((bool (*)(uint32_t ui32Base, uint8_t ui8Data)) \
ROM_API_UART_TABLE[6])
#define ROM_UARTConfigGetExpClk
Value:
((void (*)(uint32_t ui32Base, uint32_t ui32UARTClk, uint32_t *pui32Baud, uint32_t *pui32Config)) \
ROM_API_UART_TABLE[2])
#define ROM_UARTConfigSetExpClk
Value:
((void (*)(uint32_t ui32Base, uint32_t ui32UARTClk, uint32_t ui32Baud, uint32_t ui32Config)) \
ROM_API_UART_TABLE[1])
#define ROM_UARTDisable
Value:
((void (*)(uint32_t ui32Base)) \
ROM_API_UART_TABLE[3])
#define ROM_UARTFIFOLevelGet
Value:
((void (*)(uint32_t ui32Base, uint32_t *pui32TxLevel, uint32_t *pui32RxLevel)) \
ROM_API_UART_TABLE[0])
#define ROM_uDMAChannelAttributeDisable
Value:
((void (*)(uint32_t ui32Base, uint32_t ui32ChannelNum, uint32_t ui32Attr)) \
ROM_API_UDMA_TABLE[1])
#define ROM_uDMAChannelAttributeEnable
Value:
((void (*)(uint32_t ui32Base, uint32_t ui32ChannelNum, uint32_t ui32Attr)) \
ROM_API_UDMA_TABLE[0])
#define ROM_uDMAChannelAttributeGet
Value:
((uint32_t (*)(uint32_t ui32Base, uint32_t ui32ChannelNum)) \
ROM_API_UDMA_TABLE[2])
#define ROM_uDMAChannelControlSet
Value:
((void (*)(uint32_t ui32Base, uint32_t ui32ChannelStructIndex, uint32_t ui32Control)) \
ROM_API_UDMA_TABLE[3])
#define ROM_uDMAChannelModeGet
Value:
((uint32_t (*)(uint32_t ui32Base, uint32_t ui32ChannelStructIndex)) \
ROM_API_UDMA_TABLE[7])
#define ROM_uDMAChannelScatterGatherSet
Value:
((void (*)(uint32_t ui32Base, uint32_t ui32ChannelNum, uint32_t ui32TaskCount, void *pvTaskList, uint32_t ui32IsPeriphSG)) \
ROM_API_UDMA_TABLE[5])
#define ROM_uDMAChannelSizeGet
Value:
((uint32_t (*)(uint32_t ui32Base, uint32_t ui32ChannelStructIndex)) \
ROM_API_UDMA_TABLE[6])
#define ROM_uDMAChannelTransferSet
Value:
((void (*)(uint32_t ui32Base, uint32_t ui32ChannelStructIndex, uint32_t ui32Mode, void *pvSrcAddr, void *pvDstAddr, uint32_t ui32TransferSize)) \
ROM_API_UDMA_TABLE[4])
#define ROM_VERSION   (ROM_API_TABLE[0])
#define ROM_VIMSConfigure
Value:
((void (*)(uint32_t ui32Base, bool bRoundRobin, bool bPrefetch)) \
ROM_API_VIMS_TABLE[0])
#define ROM_VIMSModeGet
Value:
((uint32_t (*)(uint32_t ui32Base)) \
ROM_API_VIMS_TABLE[2])
#define ROM_VIMSModeSafeSet
Value:
((void (*)(uint32_t ui32Base, uint32_t ui32NewMode, bool blocking)) \
ROM_API_VIMS_TABLE[3])
#define ROM_VIMSModeSet
Value:
((void (*)(uint32_t ui32Base, uint32_t ui32Mode)) \
ROM_API_VIMS_TABLE[1])

Typedef Documentation

typedef void(* FPTR_ADCCOMPBIN_T) (uint8_t)
typedef void(* FPTR_COMPAIN_T) (uint8_t)
typedef void(* FPTR_COMPAREF_T) (uint8_t)
typedef uint32_t(* FPTR_CRC32_T) (uint8_t *, uint32_t, uint32_t)
typedef void(* FPTR_DACVREF_T) (uint8_t)
typedef uint32_t(* FPTR_FLETCHER32_T) (uint16_t *, uint16_t, uint16_t)
typedef uint32_t(* FPTR_GETCHIPID_T) (void)
typedef uint32_t(* FPTR_GETFLSIZE_T) (void)
typedef void(* FPTR_HFSOURCESAFESWITCH_T) (void)
typedef uint32_t(* FPTR_MAXVAL_T) (uint32_t *, uint32_t)
typedef uint32_t(* FPTR_MEANVAL_T) (uint32_t *, uint32_t)
typedef uint32_t(* FPTR_MINVAL_T) (uint32_t *, uint32_t)
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_RESERVED4_T) (uint32_t)
typedef void(* FPTR_RESERVED5_T) (uint32_t)
typedef void(* FPTR_RESETDEV_T) (void)
typedef uint32_t(* FPTR_STDDVAL_T) (uint32_t *, uint32_t)

Function Documentation

uint32_t MemBusWrkAroundHapiEraseSector ( uint32_t  ui32Address)
657 {
658  uint32_t ui32ErrorReturn;
659 
660  FlashSectorErasePointer_t FuncPointer;
661  uint32_t ui32RomAddr = HWREG(ROM_HAPI_TABLE_ADDR + (3 * 4));
662 
663  // Call ROM function
664  FuncPointer = (uint32_t (*)(uint32_t)) (ui32RomAddr);
665  ui32ErrorReturn = FuncPointer(ui32Address);
666 
667  // Enable standby in flash bank since ROM function might have disabled it
668  HWREGBITW(FLASH_BASE + FLASH_O_CFG, FLASH_CFG_DIS_STANDBY_BITN ) = 0;
669 
670  // Return status of operation.
671  return(ui32ErrorReturn);
672 }
uint32_t(* FlashSectorErasePointer_t)(uint32_t)
Definition: flash.c:99
#define ROM_HAPI_TABLE_ADDR
Definition: rom.h:59
uint32_t MemBusWrkAroundHapiProgramFlash ( uint8_t *  pui8DataBuffer,
uint32_t  ui32Address,
uint32_t  ui32Count 
)
634 {
635  uint32_t ui32ErrorReturn;
636  FlashPrgPointer_t FuncPointer;
637  uint32_t ui32RomAddr = HWREG(ROM_HAPI_TABLE_ADDR + (5 * 4));
638 
639  // Call ROM function
640  FuncPointer = (uint32_t (*)(uint8_t *, uint32_t, uint32_t)) (ui32RomAddr);
641  ui32ErrorReturn = FuncPointer( pui8DataBuffer, ui32Address, ui32Count);
642 
643  // Enable standby in flash bank since ROM function might have disabled it
644  HWREGBITW(FLASH_BASE + FLASH_O_CFG, FLASH_CFG_DIS_STANDBY_BITN ) = 0;
645 
646  // Return status of operation.
647  return(ui32ErrorReturn);
648 }
#define ROM_HAPI_TABLE_ADDR
Definition: rom.h:59
uint32_t(* FlashPrgPointer_t)(uint8_t *, uint32_t, uint32_t)
Definition: flash.c:97