Home
last modified time | relevance | path

Searched refs:offset (Results 1 – 25 of 25) sorted by relevance

/hal_ti-latest/simplelink/source/ti/devices/cc13x2x7_cc26x2x7/driverlib/
Dpka.c922 uint32_t offset = 0; in PKABigNumModStart() local
934 offset = PKAWritePkaParam(bigNum, bigNumLength, offset, PKA_O_APTR); in PKABigNumModStart()
936 offset = PKAWritePkaParamExtraOffset(modulus, modulusLength, offset, PKA_O_BPTR); in PKABigNumModStart()
939 *resultPKAMemAddr = PKA_RAM_BASE + offset; in PKABigNumModStart()
942 HWREG(PKA_BASE + PKA_O_CPTR) = offset >> 2; in PKABigNumModStart()
970 uint32_t offset = 0; in PKABigNumDivideStart() local
983 offset = PKAWritePkaParam(dividend, dividendLength, offset, PKA_O_APTR); in PKABigNumDivideStart()
985 offset = PKAWritePkaParamExtraOffset(divisor, divisorLength, offset, PKA_O_BPTR); in PKABigNumDivideStart()
989 *resultRemainderMemAddr = PKA_RAM_BASE + offset; in PKABigNumDivideStart()
994 offset = PKAWritePkaParamExtraOffset(0, divisorLength, offset, PKA_O_CPTR); in PKABigNumDivideStart()
[all …]
Daux_adc.c292 int8_t offset; in AUXADCGetAdjustmentOffset() local
295offset = HWREG(FCFG1_BASE + FCFG1_O_SOC_ADC_OFFSET_INT) >> FCFG1_SOC_ADC_OFFSET_INT_SOC_ADC_ABS_OF… in AUXADCGetAdjustmentOffset()
298offset = HWREG(FCFG1_BASE + FCFG1_O_SOC_ADC_OFFSET_INT) >> FCFG1_SOC_ADC_OFFSET_INT_SOC_ADC_REL_OF… in AUXADCGetAdjustmentOffset()
300 return offset; in AUXADCGetAdjustmentOffset()
336 AUXADCAdjustValueForGainAndOffset(int32_t adcValue, int32_t gain, int32_t offset) in AUXADCAdjustValueForGainAndOffset() argument
339 adcValue = (((adcValue + offset) * gain) + 16384) / 32768; in AUXADCAdjustValueForGainAndOffset()
357 AUXADCUnadjustValueForGainAndOffset(int32_t adcValue, int32_t gain, int32_t offset) in AUXADCUnadjustValueForGainAndOffset() argument
360 adcValue = (((adcValue * 32768) + (gain / 2)) / gain) - offset; in AUXADCUnadjustValueForGainAndOffset()
Drf_mailbox.h302 #define SW_REG_IND_OVERRIDE(cmd, field, offset, val) (3 | \ argument
303 (((_POSITION_##cmd##_##field) + ((offset) << 1)) << 4) | ((uint32_t)(val) << 16))
310 #define SW_REG_MASK_OVERRIDE(cmd, field, offset, mask, val) (0x8003 | \ argument
311 ((_POSITION_##cmd##_##field + (offset)) << 4) | (((uint32_t)(val) & 0xFF) << 16) | (((uint32_t)(mas…
Daux_adc.h551 extern int32_t AUXADCAdjustValueForGainAndOffset(int32_t adcValue, int32_t gain, int32_t offset);
573 extern int32_t AUXADCUnadjustValueForGainAndOffset(int32_t adcValue, int32_t gain, int32_t offset);
Drom.h707 ((int32_t (*)(int32_t adcValue, int32_t gain, int32_t offset)) \
751 ((int32_t (*)(int32_t adcValue, int32_t gain, int32_t offset)) \
/hal_ti-latest/simplelink/source/ti/devices/cc13x2_cc26x2/driverlib/
Dpka.c920 uint32_t offset = 0; in PKABigNumModStart() local
932 offset = PKAWritePkaParam(bigNum, bigNumLength, offset, PKA_O_APTR); in PKABigNumModStart()
934 offset = PKAWritePkaParamExtraOffset(modulus, modulusLength, offset, PKA_O_BPTR); in PKABigNumModStart()
937 *resultPKAMemAddr = PKA_RAM_BASE + offset; in PKABigNumModStart()
940 HWREG(PKA_BASE + PKA_O_CPTR) = offset >> 2; in PKABigNumModStart()
968 uint32_t offset = 0; in PKABigNumDivideStart() local
981 offset = PKAWritePkaParam(dividend, dividendLength, offset, PKA_O_APTR); in PKABigNumDivideStart()
983 offset = PKAWritePkaParamExtraOffset(divisor, divisorLength, offset, PKA_O_BPTR); in PKABigNumDivideStart()
987 *resultRemainderMemAddr = PKA_RAM_BASE + offset; in PKABigNumDivideStart()
992 offset = PKAWritePkaParamExtraOffset(0, divisorLength, offset, PKA_O_CPTR); in PKABigNumDivideStart()
[all …]
Daux_adc.c294 int8_t offset; in AUXADCGetAdjustmentOffset() local
297offset = HWREG(FCFG1_BASE + FCFG1_O_SOC_ADC_OFFSET_INT) >> FCFG1_SOC_ADC_OFFSET_INT_SOC_ADC_ABS_OF… in AUXADCGetAdjustmentOffset()
300offset = HWREG(FCFG1_BASE + FCFG1_O_SOC_ADC_OFFSET_INT) >> FCFG1_SOC_ADC_OFFSET_INT_SOC_ADC_REL_OF… in AUXADCGetAdjustmentOffset()
302 return offset; in AUXADCGetAdjustmentOffset()
338 AUXADCAdjustValueForGainAndOffset(int32_t adcValue, int32_t gain, int32_t offset) in AUXADCAdjustValueForGainAndOffset() argument
341 adcValue = (((adcValue + offset) * gain) + 16384) / 32768; in AUXADCAdjustValueForGainAndOffset()
359 AUXADCUnadjustValueForGainAndOffset(int32_t adcValue, int32_t gain, int32_t offset) in AUXADCUnadjustValueForGainAndOffset() argument
362 adcValue = (((adcValue * 32768) + (gain / 2)) / gain) - offset; in AUXADCUnadjustValueForGainAndOffset()
Drf_mailbox.h302 #define SW_REG_IND_OVERRIDE(cmd, field, offset, val) (3 | \ argument
303 (((_POSITION_##cmd##_##field) + ((offset) << 1)) << 4) | ((uint32_t)(val) << 16))
310 #define SW_REG_MASK_OVERRIDE(cmd, field, offset, mask, val) (0x8003 | \ argument
311 ((_POSITION_##cmd##_##field + (offset)) << 4) | (((uint32_t)(val) & 0xFF) << 16) | (((uint32_t)(mas…
Daux_adc.h553 extern int32_t AUXADCAdjustValueForGainAndOffset(int32_t adcValue, int32_t gain, int32_t offset);
575 extern int32_t AUXADCUnadjustValueForGainAndOffset(int32_t adcValue, int32_t gain, int32_t offset);
Drom.h705 ((int32_t (*)(int32_t adcValue, int32_t gain, int32_t offset)) \
749 ((int32_t (*)(int32_t adcValue, int32_t gain, int32_t offset)) \
/hal_ti-latest/simplelink/source/ti/drivers/nvs/
DNVSRAM.c47 static int_fast16_t checkEraseRange(NVS_Handle handle, size_t offset, size_t size);
48 static int_fast16_t doErase(NVS_Handle handle, size_t offset, size_t size);
92 int_fast16_t NVSRAM_erase(NVS_Handle handle, size_t offset, size_t size) in NVSRAM_erase() argument
98 status = doErase(handle, offset, size); in NVSRAM_erase()
226 int_fast16_t NVSRAM_read(NVS_Handle handle, size_t offset, void *buffer, in NVSRAM_read() argument
232 if (offset + bufferSize > hwAttrs->regionSize) { in NVSRAM_read()
242 memcpy(buffer, (char *)(hwAttrs->regionBase) + offset, bufferSize); in NVSRAM_read()
260 int_fast16_t NVSRAM_write(NVS_Handle handle, size_t offset, void *buffer, in NVSRAM_write() argument
272 if (offset + bufferSize > hwAttrs->regionSize) { in NVSRAM_write()
286 result = doErase(handle, offset & object->sectorBaseMask, size); in NVSRAM_write()
[all …]
DNVSSPI25X.c77 static int_fast16_t checkEraseRange(NVS_Handle handle, size_t offset, size_t size);
78 static int_fast16_t doErase(NVS_Handle handle, size_t offset, size_t size);
79 static int_fast16_t doRead(NVS_Handle handle, size_t offset, void *buffer,
81 static int_fast16_t doWriteVerify(NVS_Handle handle, size_t offset,
189 int_fast16_t NVSSPI25X_erase(NVS_Handle handle, size_t offset, size_t size) in NVSSPI25X_erase() argument
195 status = doErase(handle, offset, size); in NVSSPI25X_erase()
371 int_fast16_t NVSSPI25X_read(NVS_Handle handle, size_t offset, void *buffer, in NVSSPI25X_read() argument
380 if (offset + bufferSize > hwAttrs->regionSize) { in NVSSPI25X_read()
390 retval = doRead(handle, offset, buffer, bufferSize); in NVSSPI25X_read()
408 int_fast16_t NVSSPI25X_write(NVS_Handle handle, size_t offset, void *buffer, in NVSSPI25X_write() argument
[all …]
DNVSRAM.h157 extern int_fast16_t NVSRAM_erase(NVS_Handle handle, size_t offset,
163 extern int_fast16_t NVSRAM_read(NVS_Handle handle, size_t offset,
166 extern int_fast16_t NVSRAM_write(NVS_Handle handle, size_t offset,
DNVSSPI25X.h343 extern int_fast16_t NVSSPI25X_erase(NVS_Handle handle, size_t offset,
349 extern int_fast16_t NVSSPI25X_read(NVS_Handle handle, size_t offset,
352 extern int_fast16_t NVSSPI25X_write(NVS_Handle handle, size_t offset,
/hal_ti-latest/simplelink/source/ti/drivers/
DNVS.c73 int_fast16_t NVS_erase(NVS_Handle handle, size_t offset, size_t size) in NVS_erase() argument
75 return (handle->fxnTablePtr->eraseFxn(handle, offset, size)); in NVS_erase()
143 int_fast16_t NVS_read(NVS_Handle handle, size_t offset, void *buffer, in NVS_read() argument
146 return (handle->fxnTablePtr->readFxn(handle, offset, buffer, bufferSize)); in NVS_read()
160 int_fast16_t NVS_write(NVS_Handle handle, size_t offset, void *buffer, in NVS_write() argument
163 return (handle->fxnTablePtr->writeFxn(handle, offset, buffer, in NVS_write()
DNVS.h521 typedef int_fast16_t (*NVS_EraseFxn) (NVS_Handle handle, size_t offset,
546 typedef int_fast16_t (*NVS_ReadFxn) (NVS_Handle handle, size_t offset,
553 typedef int_fast16_t (*NVS_WriteFxn) (NVS_Handle handle, size_t offset,
690 extern int_fast16_t NVS_erase(NVS_Handle handle, size_t offset, size_t size);
782 extern int_fast16_t NVS_read(NVS_Handle handle, size_t offset, void *buffer,
835 extern int_fast16_t NVS_write(NVS_Handle handle, size_t offset, void *buffer,
/hal_ti-latest/simplelink_lpf3/source/ti/drivers/cryptoutils/utils/
DCryptoUtils.c378 size_t offset, in CryptoUtils_diffAtOffset() argument
387 diff = (int16_t)number1[offset]; in CryptoUtils_diffAtOffset()
391 if (offset == lsbOffset) in CryptoUtils_diffAtOffset()
393 diff = (int16_t)number1[offset] - 1; in CryptoUtils_diffAtOffset()
397 diff = (int16_t)number1[offset]; in CryptoUtils_diffAtOffset()
402 diff = 0 - (int16_t)number1[offset]; in CryptoUtils_diffAtOffset()
406 if (offset == lsbOffset) in CryptoUtils_diffAtOffset()
408 diff = 1 - (int16_t)number1[offset]; in CryptoUtils_diffAtOffset()
412 diff = 0 - (int16_t)number1[offset]; in CryptoUtils_diffAtOffset()
417 diff = (int16_t)number1[offset] - (int16_t)number2[offset]; in CryptoUtils_diffAtOffset()
/hal_ti-latest/simplelink_lpf3/source/ti/devices/cc23x0r5/driverlib/
Dadc.c347 int8_t offset; in ADCSetAdjustmentOffset() local
355 offset = fcfg->appTrims.cc23x0r5.adcOffset.adcOffsetIntref1P4V; in ADCSetAdjustmentOffset()
361 offset = fcfg->appTrims.cc23x0r5.adcOffset.adcOffsetIntref2P5V; in ADCSetAdjustmentOffset()
367 offset = fcfg->appTrims.cc23x0r5.adcOffset.adcOffsetExtref; in ADCSetAdjustmentOffset()
373 offset = fcfg->appTrims.cc23x0r5.adcOffset.adcOffsetVdds; in ADCSetAdjustmentOffset()
377 offset = 0; in ADCSetAdjustmentOffset()
388 tmute2_temp |= (((int16_t)offset) << SYS0_TMUTE2_OFFSET_S) & SYS0_TMUTE2_OFFSET_M; in ADCSetAdjustmentOffset()
Dinterrupt.c147 uint32_t offset; in IntSetPriority() local
168 offset = priorityRegIndex >> 2; in IntSetPriority()
177 ipr = address[offset] & ~mask; in IntSetPriority()
179 address[offset] = ipr; in IntSetPriority()
/hal_ti-latest/simplelink_lpf3/source/ti/drivers/rcl/
DLRF.h262 uint32_t LRF_peekRxFifo(int32_t offset);
263 uint32_t LRF_peekTxFifo(int32_t offset);
264 uint8_t *LRF_getTxFifoWrAddr(int32_t offset);
DLRFCC23X0.c70 …nt32_t LRF_findExtTrim0TrimAdjustment(int32_t temperature, int32_t tempCompFactor, int32_t offset);
644 …int32_t LRF_findExtTrim0TrimAdjustment(int32_t temperature, int32_t tempCompFactor, int32_t offset) in LRF_findExtTrim0TrimAdjustment() argument
646 …mperature - LRF_TEMPERATURE_NOM) * tempCompFactor) >> LRF_EXTTRIM0_TEMPERATURE_SCALE_EXP) + offset; in LRF_findExtTrim0TrimAdjustment()
736 uint32_t LRF_peekRxFifo(int32_t offset) in LRF_peekRxFifo() argument
738 int32_t index = HWREG_READ_LRF(LRFDPBE_BASE + LRFDPBE_O_RXFRP) + offset; in LRF_peekRxFifo()
748 uint32_t LRF_peekTxFifo(int32_t offset) in LRF_peekTxFifo() argument
750 int32_t index = HWREG_READ_LRF(LRFDPBE_BASE + LRFDPBE_O_TXFRP) + offset; in LRF_peekTxFifo()
759 uint8_t *LRF_getTxFifoWrAddr(int32_t offset) in LRF_getTxFifoWrAddr() argument
761 int32_t index = HWREG_READ_LRF(LRFDPBE_BASE + LRFDPBE_O_TXFWP) + offset; in LRF_getTxFifoWrAddr()
DLRFCC23X0.h439 uint16_t offset : 8; member
/hal_ti-latest/simplelink_lpf3/source/ti/drivers/dma/
Ddma.ld11 * DMA channels must always be allocated at a fixed offset from the DMA base address.
23 /* Device has 8 DMA channels => the alt. control table is at offset 0x80 */
/hal_ti-latest/simplelink_lpf3/source/ti/drivers/rcl/handlers/
Dble5.c202 …_getAuxPtrFromTxBuffer(RCL_Buffer_TxBuffer *curBuffer, RCL_AuxPtrInfo *auxPtrInfo, uint8_t offset);
3339 … uint32_t offset = RCL_SCHEDULER_SYSTIM_US(ble5HandlerState.common.auxPtrInfo.offsetUnits ? in RCL_Handler_BLE5_scan_init() local
3342 startTime += offset; in RCL_Handler_BLE5_scan_init()
3353 …uint16_t remoteClkError = (uint16_t)((((offset * remoteClkAccuracy) >> BLE_CLK_ACCURACY_SCALE_FACT… in RCL_Handler_BLE5_scan_init()
3354 …uint16_t localClkError = (uint16_t)((((offset * localClkAccuracy) >> BLE_CLK_ACCURACY_SCALE_FACTOR… in RCL_Handler_BLE5_scan_init()
3806 … uint32_t offset = RCL_SCHEDULER_SYSTIM_US(ble5HandlerState.common.auxPtrInfo.offsetUnits ? in RCL_Handler_BLE5_periodicScan() local
3809 startTime += offset; in RCL_Handler_BLE5_periodicScan()
3818 …uint16_t remoteClkError = (uint16_t)((((offset * remoteClkAccuracy) >> BLE_CLK_ACCURACY_SCALE_FACT… in RCL_Handler_BLE5_periodicScan()
3819 …uint16_t localClkError = (uint16_t)((((offset * localClkAccuracy) >> BLE_CLK_ACCURACY_SCALE_FACTOR… in RCL_Handler_BLE5_periodicScan()
5076 …int32_t offset = rxEntry->length - sizeof(rxEntry->numPad) - sizeof(rxEntry->pad0) - positionFromE… in RCL_BLE5_getRxStatus() local
[all …]
/hal_ti-latest/simplelink_lpf3/source/ti/devices/cc23x0r5/inc/
Dhw_fcfg.h530 uint16_t offset : 8; member