Home
last modified time | relevance | path

Searched refs:inserted_length (Results 1 – 8 of 8) sorted by relevance

/hal_gigadevice-latest/gd32f3x0/standard_peripheral/source/
Dgd32f3x0_adc.c367 uint8_t inserted_length; in adc_inserted_channel_config() local
370 inserted_length = (uint8_t)GET_BITS(ADC_ISQ , 20U , 21U); in adc_inserted_channel_config()
373 isq &= ~((uint32_t)(ADC_ISQ_ISQN << (15U - (inserted_length - rank)*5U))); in adc_inserted_channel_config()
374 isq |= ((uint32_t)channel << (15U - (inserted_length - rank)*5U)); in adc_inserted_channel_config()
407 uint8_t inserted_length; in adc_inserted_channel_offset_config() local
410 inserted_length = (uint8_t)GET_BITS(ADC_ISQ, 20U, 21U); in adc_inserted_channel_offset_config()
411 num = 3U - (inserted_length - inserted_channel); in adc_inserted_channel_offset_config()
/hal_gigadevice-latest/gd32l23x/standard_peripheral/source/
Dgd32l23x_adc.c415 uint8_t inserted_length; in adc_inserted_channel_config() local
419 inserted_length = (uint8_t)GET_BITS(ADC_ISQ, 20U, 21U); in adc_inserted_channel_config()
423 …isq &= ~((uint32_t)(ADC_ISQ_ISQN << (ADC_INSERTED_CHANNEL_SHIFT_OFFSET - (inserted_length - rank) … in adc_inserted_channel_config()
424 …isq |= ((uint32_t)adc_channel << (ADC_INSERTED_CHANNEL_SHIFT_OFFSET - (inserted_length - rank) * A… in adc_inserted_channel_config()
462 uint8_t inserted_length; in adc_inserted_channel_offset_config() local
465 inserted_length = (uint8_t)GET_BITS(ADC_ISQ, 20U, 21U); in adc_inserted_channel_offset_config()
466 num = ((uint32_t)ADC_OFFSET_LENGTH - ((uint32_t)inserted_length - (uint32_t)inserted_channel)); in adc_inserted_channel_offset_config()
/hal_gigadevice-latest/gd32f403/standard_peripheral/source/
Dgd32f403_adc.c409 uint8_t inserted_length; in adc_inserted_channel_config() local
412 inserted_length = (uint8_t)GET_BITS(ADC_ISQ(adc_periph) , 20U , 21U); in adc_inserted_channel_config()
414 isq &= ~((uint32_t)(ADC_ISQ_ISQN << (5U * ((3 + rank) - inserted_length)))); in adc_inserted_channel_config()
415 isq |= ((uint32_t)adc_channel << (5U * ((3 + rank) - inserted_length))); in adc_inserted_channel_config()
449 uint8_t inserted_length; in adc_inserted_channel_offset_config() local
452 inserted_length = (uint8_t)GET_BITS(ADC_ISQ(adc_periph) , 20U , 21U); in adc_inserted_channel_offset_config()
453 num = 3U - (inserted_length - inserted_channel); in adc_inserted_channel_offset_config()
/hal_gigadevice-latest/gd32a50x/standard_peripheral/source/
Dgd32a50x_adc.c400 uint8_t inserted_length; in adc_inserted_channel_config() local
404 inserted_length = (uint8_t)GET_BITS(ADC_ISQ(adc_periph), 20U, 21U); in adc_inserted_channel_config()
408 isq &= ~((uint32_t)(ADC_ISQ_ISQN << (5U * ((3U + rank) - inserted_length)))); in adc_inserted_channel_config()
409 isq |= ((uint32_t)adc_channel << (5U * ((3U + rank) - inserted_length))); in adc_inserted_channel_config()
442 uint8_t inserted_length; in adc_inserted_channel_offset_config() local
445 inserted_length = (uint8_t)GET_BITS(ADC_ISQ(adc_periph), 20U, 21U); in adc_inserted_channel_offset_config()
446 num = (uint32_t)3U - ((uint32_t)inserted_length - (uint32_t)inserted_channel); in adc_inserted_channel_offset_config()
/hal_gigadevice-latest/gd32e10x/standard_peripheral/source/
Dgd32e10x_adc.c507 uint8_t inserted_length; in adc_inserted_channel_config() local
511 inserted_length = (uint8_t)GET_BITS(ADC_ISQ(adc_periph) , 20U , 21U); in adc_inserted_channel_config()
514 isq &= ~((uint32_t)(ADC_ISQ_ISQN << (5U * ((3 + rank) - inserted_length)))); in adc_inserted_channel_config()
515 isq |= ((uint32_t)adc_channel << (5U * ((3 + rank) - inserted_length))); in adc_inserted_channel_config()
552 uint8_t inserted_length; in adc_inserted_channel_offset_config() local
555 inserted_length = (uint8_t)GET_BITS(ADC_ISQ(adc_periph) , 20U , 21U); in adc_inserted_channel_offset_config()
556 num = ((uint32_t)ADC_OFFSET_LENGTH - ((uint32_t)inserted_length - (uint32_t)inserted_channel)); in adc_inserted_channel_offset_config()
/hal_gigadevice-latest/gd32vf103/standard_peripheral/source/
Dgd32vf103_adc.c422 uint8_t inserted_length; in adc_inserted_channel_config() local
425 inserted_length = (uint8_t)GET_BITS(ADC_ISQ(adc_periph) , 20U , 21U); in adc_inserted_channel_config()
428 …isq &= ~((uint32_t)(ADC_ISQ_ISQN << (ADC_INSERTED_CHANNEL_SHIFT_LENGTH-(inserted_length-rank)*ADC_… in adc_inserted_channel_config()
429 …isq |= ((uint32_t)adc_channel << (ADC_INSERTED_CHANNEL_SHIFT_LENGTH-(inserted_length-rank)*ADC_INS… in adc_inserted_channel_config()
466 uint8_t inserted_length; in adc_inserted_channel_offset_config() local
469 inserted_length = (uint8_t)GET_BITS(ADC_ISQ(adc_periph) , 20U , 21U); in adc_inserted_channel_offset_config()
470 num = ((uint32_t)ADC_OFFSET_LENGTH - ((uint32_t)inserted_length - (uint32_t)inserted_channel)); in adc_inserted_channel_offset_config()
/hal_gigadevice-latest/gd32f4xx/standard_peripheral/source/
Dgd32f4xx_adc.c530 uint8_t inserted_length; in adc_inserted_channel_config() local
534 inserted_length = (uint8_t)GET_BITS(ADC_ISQ(adc_periph), 20U, 21U); in adc_inserted_channel_config()
538 …isq &= ~((uint32_t)(ADC_ISQ_ISQN << (ADC_INSERTED_CHANNEL_SHIFT_LENGTH - (inserted_length - rank) … in adc_inserted_channel_config()
539 …isq |= ((uint32_t)adc_channel << (ADC_INSERTED_CHANNEL_SHIFT_LENGTH - (inserted_length - rank) * A… in adc_inserted_channel_config()
577 uint8_t inserted_length; in adc_inserted_channel_offset_config() local
580 inserted_length = (uint8_t)GET_BITS(ADC_ISQ(adc_periph), 20U, 21U); in adc_inserted_channel_offset_config()
581 num = ((uint32_t)ADC_OFFSET_LENGTH - ((uint32_t)inserted_length - (uint32_t)inserted_channel)); in adc_inserted_channel_offset_config()
/hal_gigadevice-latest/gd32e50x/standard_peripheral/source/
Dgd32e50x_adc.c405 uint8_t inserted_length; in adc_inserted_channel_config() local
409 inserted_length = (uint8_t)GET_BITS(ADC_ISQ(adc_periph), 20U, 21U); in adc_inserted_channel_config()
413 isq &= ~((uint32_t)(ADC_ISQ_ISQN << (5U * ((3U + rank) - inserted_length)))); in adc_inserted_channel_config()
414 isq |= ((uint32_t)adc_channel << (5U * ((3U + rank) - inserted_length))); in adc_inserted_channel_config()
447 uint8_t inserted_length; in adc_inserted_channel_offset_config() local
450 inserted_length = (uint8_t)GET_BITS(ADC_ISQ(adc_periph), 20U, 21U); in adc_inserted_channel_offset_config()
451 num = 3U - (inserted_length - inserted_channel); in adc_inserted_channel_offset_config()