| /hal_silabs-latest/gecko/platform/radio/rail_lib/plugin/pa-conversions/ |
| D | pa_conversions_efr32.c | 57 const RAIL_TxPowerCurves_t *RAIL_GetTxPowerCurve(RAIL_TxPowerMode_t mode) in RAIL_GetTxPowerCurve() argument 62 if (mode >= RAIL_TX_POWER_MODE_NONE) { in RAIL_GetTxPowerCurve() 68 &mode, in RAIL_GetTxPowerCurve() 75 powerCurvesState.curves[mode].conversion.powerCurve; in RAIL_GetTxPowerCurve() 83 RAIL_PaDescriptor_t const *modeInfo = &powerCurvesState.curves[mode]; in RAIL_GetTxPowerCurve() 179 …RAIL_PaPowerSetting_t *RAIL_GetPowerSettingTable(RAIL_Handle_t railHandle, RAIL_TxPowerMode_t mode, in RAIL_GetPowerSettingTable() argument 186 if ((mode >= RAIL_NUM_PA) in RAIL_GetPowerSettingTable() 188 || (mode == RAIL_TX_POWER_MODE_2P4GIG_HIGHEST) in RAIL_GetPowerSettingTable() 191 || (mode == RAIL_TX_POWER_MODE_SUBGIG_HIGHEST) in RAIL_GetPowerSettingTable() 196 RAIL_PaDescriptor_t *modeInfo = &powerCurvesState.curves[mode]; in RAIL_GetPowerSettingTable() [all …]
|
| /hal_silabs-latest/simplicity_sdk/platform/radio/rail_lib/plugin/pa-conversions/ |
| D | pa_conversions_efr32.c | 162 const RAIL_TxPowerCurves_t *RAIL_GetTxPowerCurve(RAIL_TxPowerMode_t mode) in RAIL_GetTxPowerCurve() argument 167 &mode, in RAIL_GetTxPowerCurve() 170 && (mode < sizeof(supportedPaIndices)) in RAIL_GetTxPowerCurve() 171 && (supportedPaIndices[mode] < RAIL_NUM_PA)) { in RAIL_GetTxPowerCurve() 172 const RAIL_PaDescriptor_t *modeInfo = &powerCurvesState.curves[supportedPaIndices[mode]]; in RAIL_GetTxPowerCurve() 277 …RAIL_PaPowerSetting_t *RAIL_GetPowerSettingTable(RAIL_Handle_t railHandle, RAIL_TxPowerMode_t mode, in RAIL_GetPowerSettingTable() argument 283 if ((mode < sizeof(supportedPaIndices)) in RAIL_GetPowerSettingTable() 284 && (supportedPaIndices[mode] < RAIL_NUM_PA)) { in RAIL_GetPowerSettingTable() 285 RAIL_PaDescriptor_t *modeInfo = &powerCurvesState.curves[supportedPaIndices[mode]]; in RAIL_GetPowerSettingTable() 293 (void)mode; in RAIL_GetPowerSettingTable() [all …]
|
| /hal_silabs-latest/si32/si32Hal/SI32_Modules/ |
| D | SI32_EXTVREG_A_Type.c | 488 SI32_EXTVREG_A_ADC_CURRENT_SENSE_GAIN_Enum_Type mode) in _SI32_EXTVREG_A_set_current_sense_adc_channel_gain() argument 490 assert((mode >= 0) && (mode <= 4)); in _SI32_EXTVREG_A_set_current_sense_adc_channel_gain() 492 basePointer->CSCONFIG.ISADCGAIN = mode; in _SI32_EXTVREG_A_set_current_sense_adc_channel_gain() 505 SI32_EXTVREG_A_REG_CURRENT_SENSE_GAIN_Enum_Type mode) in _SI32_EXTVREG_A_set_current_sense_extreg_channel_gain() argument 507 assert((mode >= 0) && (mode <= 4)); in _SI32_EXTVREG_A_set_current_sense_extreg_channel_gain() 509 basePointer->CSCONFIG.ISOGAIN = mode; in _SI32_EXTVREG_A_set_current_sense_extreg_channel_gain() 521 uint32_t mode) in _SI32_EXTVREG_A_set_current_sensing_mode() argument 523 assert((mode >= 0) && (mode <= 2)); in _SI32_EXTVREG_A_set_current_sensing_mode() 525 basePointer->CSCONFIG.ISINSEL = mode; in _SI32_EXTVREG_A_set_current_sensing_mode()
|
| D | SI32_CMP_A_Type.c | 42 uint32_t mode) in _SI32_CMP_A_initialize() argument 46 basePointer->MODE.U32 = mode; in _SI32_CMP_A_initialize() 178 uint32_t mode) in _SI32_CMP_A_write_mode() argument 181 basePointer->MODE.U32 = mode; in _SI32_CMP_A_write_mode() 266 SI32_CMP_A_RESPONSE_POWER_MODE_Enum_Type mode) in _SI32_CMP_A_select_response_power_mode() argument 268 assert(mode < 4); // mode < 2^2 in _SI32_CMP_A_select_response_power_mode() 271 basePointer->MODE_SET = mode << SI32_CMP_A_MODE_CMPMD_SHIFT; in _SI32_CMP_A_select_response_power_mode()
|
| D | SI32_EXTVREG_A_Type.h | 593 #define SI32_EXTVREG_A_set_current_sense_adc_channel_gain(basePointer, mode) \ argument 594 (basePointer->CSCONFIG.ISADCGAIN = mode) 614 #define SI32_EXTVREG_A_set_current_sense_extreg_channel_gain(basePointer, mode) \ argument 615 (basePointer->CSCONFIG.ISOGAIN = mode) 634 #define SI32_EXTVREG_A_set_current_sensing_mode(basePointer, mode) \ argument 635 (basePointer->CSCONFIG.ISINSEL = mode)
|
| D | SI32_CMP_A_Type.h | 70 #define SI32_CMP_A_initialize(basePointer, control, mode) do{ \ argument 72 basePointer->MODE.U32 = mode;\ 223 #define SI32_CMP_A_write_mode(basePointer, mode) \ argument 224 (basePointer->MODE.U32 = mode) 333 #define SI32_CMP_A_select_response_power_mode(basePointer, mode) do{ \ argument 335 basePointer->MODE_SET = mode << SI32_CMP_A_MODE_CMPMD_SHIFT;\
|
| D | SI32_PCACH_A_Type.c | 41 uint32_t mode, in _SI32_PCACH_A_initialize() argument 47 basePointer->MODE.U32 = mode; in _SI32_PCACH_A_initialize() 62 uint32_t mode) in _SI32_PCACH_A_write_mode() argument 65 basePointer->MODE.U32 = mode; in _SI32_PCACH_A_write_mode()
|
| D | SI32_PCACH_A_Type.h | 79 #define SI32_PCACH_A_initialize(basePointer, mode, control, ccapv, ccapvupd) do{ \ argument 80 basePointer->MODE.U32 = mode;\ 105 #define SI32_PCACH_A_write_mode(basePointer, mode) \ argument 106 (basePointer->MODE.U32 = mode)
|
| D | SI32_PCA_A_Type.h | 85 #define SI32_PCA_A_initialize(basePointer, mode, control, status, counter, limit) do{ \ argument 86 basePointer->MODE.U32 = mode;\ 112 #define SI32_PCA_A_write_mode(basePointer, mode) \ argument 113 (basePointer->MODE.U32 = mode)
|
| /hal_silabs-latest/wiseconnect/components/device/silabs/si91x/mcu/drivers/rom_driver/inc/ |
| D | rsi_rom_power_save.h | 188 uint32_t mode) in RSI_PS_RetentionSleepConfig_bypass() argument 192 if (mode == RSI_WAKEUP_WITH_RETENTION) { in RSI_PS_RetentionSleepConfig_bypass() 236 uint32_t mode) in RSI_PS_RetentionSleepConfig() argument 245 if (mode == SL_SI91X_MCU_WAKEUP_PSRAM_MODE) { in RSI_PS_RetentionSleepConfig() 249 if ((mode == RSI_WAKEUP_WITH_RETENTION) || (mode == RSI_WAKEUP_WO_RETENTION_WO_ULPSS_RAM)) { in RSI_PS_RetentionSleepConfig() 250 RSI_PS_RetentionSleepConfig_bypass(stack_address, jump_cb_address, vector_offset, mode); in RSI_PS_RetentionSleepConfig() 252 ROMAPI_PWR_API->RSI_GotoSleepWithRetention(stack_address, jump_cb_address, vector_offset, mode); in RSI_PS_RetentionSleepConfig() 255 ROMAPI_PWR_API->RSI_GotoSleepWithRetention(stack_address, jump_cb_address, vector_offset, mode); in RSI_PS_RetentionSleepConfig()
|
| /hal_silabs-latest/gecko/emlib/src/ |
| D | em_gpio.c | 54 #define GPIO_DRIVEMODE_VALID(mode) ((mode) <= 3) argument 102 void GPIO_DriveModeSet(GPIO_Port_TypeDef port, GPIO_DriveMode_TypeDef mode) in GPIO_DriveModeSet() argument 104 EFM_ASSERT(GPIO_PORT_VALID(port) && GPIO_DRIVEMODE_VALID(mode)); in GPIO_DriveModeSet() 107 | (mode << _GPIO_P_CTRL_DRIVEMODE_SHIFT); in GPIO_DriveModeSet() 349 GPIO_Mode_TypeDef mode, in GPIO_PinModeSet() argument 356 if (mode != gpioModeDisabled) { in GPIO_PinModeSet() 369 BUS_RegMaskedWrite(&(GPIO->P[port].MODEL), 0xFu << (pin * 4), (uint32_t)mode << (pin * 4)); in GPIO_PinModeSet() 371 …BUS_RegMaskedWrite(&(GPIO->P[port].MODEH), 0xFu << ((pin - 8) * 4), (uint32_t)mode << ((pin - 8) *… in GPIO_PinModeSet() 374 if (mode == gpioModeDisabled) { in GPIO_PinModeSet()
|
| D | em_pcnt.c | 160 void PCNT_Enable(PCNT_TypeDef *pcnt, PCNT_Mode_TypeDef mode) in PCNT_Enable() argument 169 tmp |= (uint32_t)mode << _PCNT_CTRL_MODE_SHIFT; in PCNT_Enable() 176 if (mode == pcntModeDisable) { in PCNT_Enable() 187 if (tmp != mode) { in PCNT_Enable() 194 pcnt->CFG_SET = (uint32_t)mode << _PCNT_CFG_MODE_SHIFT; in PCNT_Enable() 632 switch (init->mode) { in PCNT_Init() 635 tmp |= ((uint32_t)init->mode) << _PCNT_CTRL_MODE_SHIFT; in PCNT_Init() 697 if (init->mode != pcntModeDisable) { in PCNT_Init() 699 pcnt->CTRL = tmp | (init->mode << _PCNT_CTRL_MODE_SHIFT); in PCNT_Init() 724 if (init->mode != pcntModeDisable) { in PCNT_Init() [all …]
|
| D | em_rmu.c | 240 void RMU_ResetControl(RMU_Reset_TypeDef reset, RMU_ResetMode_TypeDef mode) in RMU_ResetControl() argument 250 BUS_RegBitWrite(&EMU->RSTCTRL, (uint32_t)shift, mode ? 1 : 0); in RMU_ResetControl() 252 val = (uint32_t)mode << shift; in RMU_ResetControl() 255 BUS_RegBitWrite(&RMU->CTRL, (uint32_t)shift, mode ? 1 : 0); in RMU_ResetControl()
|
| /hal_silabs-latest/simplicity_sdk/platform/emlib/src/ |
| D | em_gpio.c | 54 #define GPIO_DRIVEMODE_VALID(mode) ((mode) <= 3) argument 102 void GPIO_DriveModeSet(GPIO_Port_TypeDef port, GPIO_DriveMode_TypeDef mode) in GPIO_DriveModeSet() argument 104 EFM_ASSERT(GPIO_PORT_VALID(port) && GPIO_DRIVEMODE_VALID(mode)); in GPIO_DriveModeSet() 107 | (mode << _GPIO_P_CTRL_DRIVEMODE_SHIFT); in GPIO_DriveModeSet() 349 GPIO_Mode_TypeDef mode, in GPIO_PinModeSet() argument 356 if (mode != gpioModeDisabled) { in GPIO_PinModeSet() 369 BUS_RegMaskedWrite(&(GPIO->P[port].MODEL), 0xFu << (pin * 4), (uint32_t)mode << (pin * 4)); in GPIO_PinModeSet() 371 …BUS_RegMaskedWrite(&(GPIO->P[port].MODEH), 0xFu << ((pin - 8) * 4), (uint32_t)mode << ((pin - 8) *… in GPIO_PinModeSet() 374 if (mode == gpioModeDisabled) { in GPIO_PinModeSet()
|
| D | em_pcnt.c | 160 void PCNT_Enable(PCNT_TypeDef *pcnt, PCNT_Mode_TypeDef mode) in PCNT_Enable() argument 169 tmp |= (uint32_t)mode << _PCNT_CTRL_MODE_SHIFT; in PCNT_Enable() 176 if (mode == pcntModeDisable) { in PCNT_Enable() 187 if (tmp != mode) { in PCNT_Enable() 194 pcnt->CFG_SET = (uint32_t)mode << _PCNT_CFG_MODE_SHIFT; in PCNT_Enable() 632 switch (init->mode) { in PCNT_Init() 635 tmp |= ((uint32_t)init->mode) << _PCNT_CTRL_MODE_SHIFT; in PCNT_Init() 697 if (init->mode != pcntModeDisable) { in PCNT_Init() 699 pcnt->CTRL = tmp | (init->mode << _PCNT_CTRL_MODE_SHIFT); in PCNT_Init() 724 if (init->mode != pcntModeDisable) { in PCNT_Init() [all …]
|
| D | em_rmu.c | 246 void RMU_ResetControl(RMU_Reset_TypeDef reset, RMU_ResetMode_TypeDef mode) in RMU_ResetControl() argument 256 BUS_RegBitWrite(&EMU->RSTCTRL, (uint32_t)shift, mode ? 1 : 0); in RMU_ResetControl() 259 val = (uint32_t)mode << shift; in RMU_ResetControl() 262 BUS_RegBitWrite(&RMU->CTRL, (uint32_t)shift, mode ? 1 : 0); in RMU_ResetControl()
|
| /hal_silabs-latest/simplicity_sdk/platform/emdrv/dmadrv/src/ |
| D | dmadrv.c | 74 DmaMode_t mode; member 107 static Ecode_t StartTransfer(DmaMode_t mode, 1099 if ( (ch->mode == dmaModePingPong) && stop ) { in LDMA_IRQHandler() 1147 if ( (ch->mode == dmaModePingPong) && stop ) { in LDMA_IRQHandlerDefault() 1279 static Ecode_t StartTransfer(DmaMode_t mode, in StartTransfer() argument 1305 || ((mode == dmaModePingPong) && (buf2 == NULL)) ) { in StartTransfer() 1315 if ( mode == dmaModeBasic ) { in StartTransfer() 1326 if ( (callback != NULL) || (mode == dmaModePingPong) ) { in StartTransfer() 1367 if ( mode == dmaModePingPong ) { in StartTransfer() 1379 if ( mode == dmaModeBasic ) { in StartTransfer() [all …]
|
| /hal_silabs-latest/simplicity_sdk/platform/security/sl_component/se_manager/src/ |
| D | sl_se_manager_cipher.c | 62 sl_se_cipher_operation_t mode, in sl_se_aes_crypt_ecb() argument 76 (mode == SL_SE_ENCRYPT in sl_se_aes_crypt_ecb() 105 sl_se_cipher_operation_t mode, in sl_se_aes_crypt_cbc() argument 125 (mode == SL_SE_ENCRYPT in sl_se_aes_crypt_cbc() 158 sl_se_cipher_operation_t mode, in sl_se_aes_crypt_cfb128() argument 178 if (mode == SL_SE_ENCRYPT) { in sl_se_aes_crypt_cfb128() 193 (mode == SL_SE_ENCRYPT in sl_se_aes_crypt_cfb128() 235 if (mode == SL_SE_ENCRYPT) { in sl_se_aes_crypt_cfb128() 260 sl_se_cipher_operation_t mode, in sl_se_aes_crypt_cfb8() argument 282 if (mode == SL_SE_DECRYPT) { in sl_se_aes_crypt_cfb8() [all …]
|
| /hal_silabs-latest/simplicity_sdk/platform/security/sl_component/se_manager/inc/ |
| D | sl_se_manager_cipher.h | 96 sl_se_cipher_operation_t mode, 134 sl_se_cipher_operation_t mode, 173 sl_se_cipher_operation_t mode, 210 sl_se_cipher_operation_t mode, 406 sl_se_cipher_operation_t mode, 567 sl_se_cipher_operation_t mode, 789 sl_se_cipher_operation_t mode, 969 sl_se_cipher_operation_t mode,
|
| D | sl_se_manager_types.h | 350 sl_se_cipher_operation_t mode;///< CCM mode (decrypt or encrypt) member 376 sl_se_cipher_operation_t mode;///< GCM mode member 500 sl_se_cipher_operation_t mode; ///< encryption or decryption member 511 sl_se_cipher_operation_t mode; ///< encryption or decryption member
|
| /hal_silabs-latest/simplicity_sdk/platform/peripheral/src/ |
| D | sl_hal_gpio.c | 84 sl_gpio_mode_t mode, in sl_hal_gpio_set_pin_mode() argument 92 switch (mode) { in sl_hal_gpio_set_pin_mode() 184 if (mode != SL_GPIO_MODE_DISABLED) { in sl_hal_gpio_set_pin_mode() 203 if (mode == SL_GPIO_MODE_DISABLED) { in sl_hal_gpio_set_pin_mode() 217 sl_gpio_mode_t mode = SL_GPIO_MODE_DISABLED; in sl_hal_gpio_get_pin_mode() local 222 mode = (sl_gpio_mode_t) ((GPIO->P[gpio->port].MODEL >> (gpio->pin * 4)) & 0xF); in sl_hal_gpio_get_pin_mode() 224 mode = (sl_gpio_mode_t) ((GPIO->P[gpio->port].MODEH >> ((gpio->pin - 8) * 4)) & 0xF); in sl_hal_gpio_get_pin_mode() 228 switch (mode) { in sl_hal_gpio_get_pin_mode() 295 return mode; // returning the default state in sl_hal_gpio_get_pin_mode()
|
| /hal_silabs-latest/wiseconnect/components/service/network_manager/si91x/ |
| D | sl_net_si91x.c | 105 dhcp_type[SLI_SI91X_CLIENT] = profile.ip.mode; in sl_net_wifi_client_up() 155 if (profile.ip.mode != SL_IP_MANAGEMENT_STATIC_IP) { in sl_net_wifi_ap_up() 160 dhcp_type[SLI_SI91X_AP] = profile.ip.mode; in sl_net_wifi_ap_up() 338 dhcp_type[SLI_SI91X_CLIENT] = ip_config->mode; in sl_net_configure_ip() 341 dhcp_type[SLI_SI91X_AP] = ip_config->mode; in sl_net_configure_ip() 358 ip_address->mode = dhcp_type[SLI_SI91X_CLIENT]; in sl_net_get_ip_address() 361 ip_address->mode = dhcp_type[SLI_SI91X_AP]; in sl_net_get_ip_address() 367 ip_config.mode = SL_IP_MANAGEMENT_DHCP; in sl_net_get_ip_address()
|
| /hal_silabs-latest/wiseconnect/components/device/silabs/si91x/mcu/drivers/peripheral_drivers/inc/ |
| D | rsi_timers.h | 321 STATIC INLINE rsi_error_t RSI_TIMERS_SetTimerMode(RSI_TIMERS_T *pTIMER, boolean_t mode, uint8_t tim… in RSI_TIMERS_SetTimerMode() argument 324 if ((mode == PERIODIC_TIMER) || (mode == ONESHOT_TIMER)) { in RSI_TIMERS_SetTimerMode() 325 pTIMER->MATCH_CTRL[timerNum].MCUULP_TMR_CNTRL_b.TMR_MODE = (unsigned int)(mode & 0x01); in RSI_TIMERS_SetTimerMode() 361 uint8_t mode);
|
| /hal_silabs-latest/wiseconnect/components/device/silabs/si91x/wireless/sl_net/src/ |
| D | sl_si91x_net_internal_stack.c | 81 if (SL_IP_MANAGEMENT_STATIC_IP == ip_config->mode) { in sli_si91x_configure_ip_address() 125 if (SL_IP_MANAGEMENT_DHCP == ip_config->mode) { in sli_si91x_configure_ip_address() 144 if (SL_IP_MANAGEMENT_STATIC_IP == ip_config->mode) { in sli_si91x_configure_ip_address() 148 ipv6_request.mode[0] = SL_SI91X_STATIC; in sli_si91x_configure_ip_address() 151 ipv6_request.mode[0] = (SL_SI91X_DHCP | SL_SI91X_DHCP_UNICAST_OFFER); in sli_si91x_configure_ip_address()
|
| /hal_silabs-latest/wiseconnect/components/device/silabs/si91x/mcu/drivers/unified_peripheral_drivers/src/ |
| D | sl_si91x_peripheral_gpio.c | 119 void sl_gpio_set_pin_mode(sl_gpio_port_t port, uint8_t pin, sl_gpio_mode_t mode, uint32_t output_va… in sl_gpio_set_pin_mode() argument 124 if (mode != SL_GPIO_MODE_DISABLED) { in sl_gpio_set_pin_mode() 133 SL_GPIO_ASSERT(SL_GPIO_VALIDATE_MODE_PARAMETER(mode)); in sl_gpio_set_pin_mode() 134 ULP_GPIO->PIN_CONFIG[pin].GPIO_CONFIG_REG_b.MODE = mode; // Set mode in ULP GPIO instance in sl_gpio_set_pin_mode() 138 SL_GPIO_ASSERT(SL_GPIO_VALIDATE_MODE(mode)); in sl_gpio_set_pin_mode() 140 GPIO->PIN_CONFIG[(port * MAX_GPIO_PORT_PIN) + pin].GPIO_CONFIG_REG_b.MODE = mode; in sl_gpio_set_pin_mode() 142 if (mode == SL_GPIO_MODE_DISABLED) { in sl_gpio_set_pin_mode() 985 void sl_si91x_gpio_set_uulp_npss_pin_mux(uint8_t pin, sl_si91x_uulp_npss_mode_t mode) in sl_si91x_gpio_set_uulp_npss_pin_mux() argument 988 SL_GPIO_ASSERT(SL_GPIO_VALIDATE_MODE_PARAMETER(mode)); in sl_si91x_gpio_set_uulp_npss_pin_mux() 990 UULP_GPIO->NPSS_GPIO_CNTRL[pin].NPSS_GPIO_CTRLS_b.NPSS_GPIO_MODE = mode; in sl_si91x_gpio_set_uulp_npss_pin_mux() [all …]
|