Home
last modified time | relevance | path

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

/hal_rpi_pico-latest/src/rp2_common/hardware_pio/include/hardware/
Dpio_instructions.h128 static inline uint pio_encode_sideset(uint sideset_bit_count, uint value) { in pio_encode_sideset() argument
129 valid_params_if(PIO_INSTRUCTIONS, sideset_bit_count >= 1 && sideset_bit_count <= 5); in pio_encode_sideset()
130 valid_params_if(PIO_INSTRUCTIONS, value <= ((1u << sideset_bit_count) - 1)); in pio_encode_sideset()
131 return value << (13u - sideset_bit_count); in pio_encode_sideset()
146 static inline uint pio_encode_sideset_opt(uint sideset_bit_count, uint value) { in pio_encode_sideset_opt() argument
147 valid_params_if(PIO_INSTRUCTIONS, sideset_bit_count >= 1 && sideset_bit_count <= 4); in pio_encode_sideset_opt()
148 valid_params_if(PIO_INSTRUCTIONS, value <= ((1u << sideset_bit_count) - 1)); in pio_encode_sideset_opt()
149 return 0x1000u | value << (12u - sideset_bit_count); in pio_encode_sideset_opt()