MCPcopy Create free account

hub / github.com/ch32-rs/ch32-hal / functions

Functions1,020 in github.com/ch32-rs/ch32-hal

↓ 2 callersMethodget_max_compare_value
Get max compare value. This depends on the timer frequency and the clock frequency from RCC.
src/timer/low_level.rs:345
↓ 2 callersMethodget_one
(mut self)
build.rs:689
↓ 2 callersMethodget_remaining_transfers
(&self)
src/dma/ringbuffer.rs:402
↓ 2 callersFunctionget_result
()
src/flash/v3.rs:102
↓ 2 callersFunctionget_sector
(address: u32)
src/flash/common.rs:170
↓ 2 callersMethodidle
CMD0: Idle
src/sdio.rs:1154
↓ 2 callersMethodinner_read
(&mut self, buffer: &mut [u8], enable_idle_line_detection: bool)
src/usart/mod.rs:644
↓ 2 callersMethodis_center_aligned
Return whether this mode is center-aligned.
src/timer/low_level.rs:73
↓ 2 callersMethodis_high
(&self)
src/gpio.rs:180
↓ 2 callersMethodis_low
(&self)
src/gpio.rs:185
↓ 2 callersMethodis_set_high
(&self)
src/gpio.rs:195
↓ 2 callersMethodlsb_first
(&self)
src/spi.rs:87
↓ 2 callersMethodnext_period
(&self)
src/embassy/time_driver_tim.rs:234
↓ 2 callersFunctionoperation_frames
( operations: &'a mut [embedded_hal::i2c::Operation<'b>], )
src/i2c.rs:1062
↓ 2 callersMethodpin_sel
(&self)
src/adc.rs:462
↓ 2 callersMethodpoll_stop
(&self)
src/dma/dma_bdma.rs:270
↓ 2 callersMethodpost_receive
Decodes the received PD message and returns a tuple (Sop, length) or an error.
src/usbpd/mod.rs:413
↓ 2 callersMethodprepare_receive
Prepares the PHY for receiving a PD message into a buffer.
src/usbpd/mod.rs:397
↓ 2 callersMethodraw_phase
CPHA
src/spi.rs:72
↓ 2 callersMethodraw_polarity
CPOL
src/spi.rs:80
↓ 2 callersMethodreceive
(&mut self, buffer: &mut [u8])
examples/ch32l103/src/bin/usbpd.rs:81
↓ 2 callersMethodrecv_byte
(&self, timeout: Timeout)
src/i2c.rs:351
↓ 2 callersMethodregs
(&self)
src/can/enums.rs:84
↓ 2 callersMethodset_alarm
(&self, _cs: CriticalSection, next_alarm_cnt: u64)
src/embassy/time_driver_systick.rs:85
↓ 2 callersMethodset_alarm
(&self, cs: CriticalSection, timestamp: u64)
src/embassy/time_driver_tim.rs:262
↓ 2 callersMethodset_color
(&mut self, mut color: u32)
examples/ch32v003/src/bin/gpio_ws2812.rs:112
↓ 2 callersMethodset_compare_value
Set compare value for a channel.
src/timer/low_level.rs:461
↓ 2 callersMethodset_counting_mode
(&self, mode: CountingMode)
src/timer/low_level.rs:362
↓ 2 callersMethodset_enable
Enable or disable this channel.
src/dac.rs:95
↓ 2 callersMethodset_output_compare_mode
Set output compare mode.
src/timer/low_level.rs:436
↓ 2 callersMethodset_output_compare_preload
Set output compare preload.
src/timer/low_level.rs:489
↓ 2 callersMethodset_output_polarity
Set output polarity.
src/timer/low_level.rs:444
↓ 2 callersMethodset_pull
(&self, pull: Pull)
src/gpio.rs:557
↓ 2 callersMethodset_rdes0
(&mut self, val: u32)
src/eth/v1/mod.rs:145
↓ 2 callersMethodset_tdes0
(&mut self, val: u32)
src/eth/v1/mod.rs:100
↓ 2 callersMethodset_tdes1
(&mut self, val: u32)
src/eth/v1/mod.rs:105
↓ 2 callersMethodset_tdes2
(&mut self, val: u32)
src/eth/v1/mod.rs:110
↓ 2 callersMethodset_waker
(&mut self, waker: &Waker)
src/dma/dma_bdma.rs:479
↓ 2 callersMethodset_waker
(&mut self, waker: &Waker)
src/dma/ringbuffer.rs:429
↓ 2 callersMethodsmi_read
(&mut self, _phy_addr: u8, reg: u8)
src/eth/v10m/mod.rs:326
↓ 2 callersMethodtdes0
(&self)
src/eth/v1/mod.rs:95
↓ 2 callersMethodtimeout
(&self)
src/can/can.rs:367
↓ 2 callersMethodtransfer_inner
(&mut self, read: *mut [W], write: *const [W])
src/spi.rs:533
↓ 2 callersMethodtransmit_hardreset
Transmit a hard reset.
src/usbpd/mod.rs:194
↓ 2 callersMethodval
(&self)
src/can/enums.rs:110
↓ 2 callersMethodwait_for_tx_complete
(&mut self)
src/usbpd/mod.rs:205
↓ 1 callersMethodaccept
(&mut self)
src/otg_fs/endpoint.rs:417
↓ 1 callersMethodaccept
(&mut self)
src/usbhs/control.rs:149
↓ 1 callersMethodaddress
(&self)
src/usbpd/mod.rs:101
↓ 1 callersFunctionblink
(pin: Peri<'static, AnyPin>, interval_ms: u64)
examples/ch32v305/src/bin/blinky.rs:13
↓ 1 callersFunctionblink
(pin: Peri<'static, AnyPin>)
examples/ch32v305/src/bin/exti.rs:15
↓ 1 callersFunctionblink
(pin: Peri<'static, AnyPin>, interval_ms: u64)
examples/ch32v305/src/bin/demo.rs:14
↓ 1 callersFunctionblink
(pin: Peri<'static, AnyPin>)
examples/ch32v305/src/bin/uart_tx.rs:15
↓ 1 callersFunctionblink
(pin: Peri<'static, AnyPin>, interval_ms: u64)
examples/ch643/src/bin/embassy_blinky.rs:14
↓ 1 callersFunctionblink
(pin: Peri<'static, AnyPin>, interval_ms: u64)
examples/ch32l103/src/bin/blinky.rs:14
↓ 1 callersFunctionblink
(pin: Peri<'static, AnyPin>)
examples/ch32v203/src/bin/spi-lcd-st7735.rs:32
↓ 1 callersFunctionblink
(pin: Peri<'static, AnyPin>, interval_ms: u64)
examples/ch32v203/src/bin/flash_sections.rs:14
↓ 1 callersFunctionblink
(pin: Peri<'static, AnyPin>, interval_ms: u64)
examples/ch641/src/bin/embassy_blinky.rs:14
↓ 1 callersFunctionblink
(pin: Peri<'static, AnyPin>)
examples/ch32x035/src/bin/spi-lcd-st7735.rs:32
↓ 1 callersFunctionblink
(pin: Peri<'static, AnyPin>, interval_ms: u64)
examples/ch32x035/src/bin/uart_tx_async.rs:27
↓ 1 callersFunctionblink
(pin: Peri<'static, AnyPin>, interval_ms: u64)
examples/ch32x035/src/bin/blinky.rs:14
↓ 1 callersFunctionblink
(mut led: Output<'static>)
examples/ch32v307/src/bin/button.rs:17
↓ 1 callersFunctionblink
(pin: Peri<'static, AnyPin>)
examples/ch32v307/src/bin/exti.rs:15
↓ 1 callersFunctionblink
(pin: Peri<'static, AnyPin>)
examples/ch32v307/src/bin/spi.rs:16
↓ 1 callersFunctionblink
(pin: Peri<'static, AnyPin>)
examples/ch32v307/src/bin/i2c-eeprom.rs:94
↓ 1 callersFunctionblink
(pin: Peri<'static, AnyPin>)
examples/ch32v307/src/bin/uart.rs:15
↓ 1 callersFunctionblocking_erase
( base: u32, from: u32, to: u32, erase_sector: unsafe fn(&FlashSector) -> Result<(), Error>, )
src/flash/common.rs:127
↓ 1 callersMethodblocking_erase
Blocking erase. NOTE: `from` and `to` are offsets from the flash start, NOT an absolute address. For example, to erase address `0x0801_0000` you have
src/flash/common.rs:62
↓ 1 callersFunctionblocking_erase_sector
(sector: &FlashSector)
src/flash/v3.rs:62
↓ 1 callersFunctionblocking_read
(base: u32, size: u32, offset: u32, bytes: &mut [u8])
src/flash/common.rs:67
↓ 1 callersMethodblocking_read
Blocking read.
src/spi.rs:251
↓ 1 callersMethodblocking_read
Blocking read. NOTE: `offset` is an offset from the flash start, NOT an absolute address. For example, to read address `0x0800_1234` you have to use
src/flash/common.rs:38
↓ 1 callersMethodblocking_transfer
Blocking bidirectional transfer. This transfers both buffers at the same time, so it is NOT equivalent to `write` followed by `read`. The transfer r
src/spi.rs:280
↓ 1 callersMethodblocking_write
Blocking write.
src/spi.rs:240
↓ 1 callersMethodblocking_write
Blocking write. NOTE: `offset` is an offset from the flash start, NOT an absolute address. For example, to write address `0x0800_1234` you have to us
src/flash/common.rs:46
↓ 1 callersFunctionbound
(r: f32, entire: f32)
examples/ch32v003/src/bin/gpio_ws2812.rs:30
↓ 1 callersMethodbus_reset
(&mut self)
src/usbhs/mod.rs:318
↓ 1 callersFunctioncalc_bmc_clk_for_rx
()
src/usbpd/mod.rs:592
↓ 1 callersFunctioncalc_bmc_clk_for_tx
()
src/usbpd/mod.rs:587
↓ 1 callersFunctioncalc_can_timings
Calculate nominal CAN bit timing based on CAN bitrate and periphial clock frequency
src/can/util.rs:20
↓ 1 callersFunctioncalc_now
Clock timekeeping works with something we call "periods", which are time intervals of 2^15 ticks. The Clock counter value is 16 bits, so one "overflow
src/embassy/time_driver_tim.rs:133
↓ 1 callersFunctioncalc_out_len
Returns (actual_len, len_bits)
src/usbd.rs:143
↓ 1 callersFunctioncalc_usbpre
(pllclk: Hertz)
src/rcc/v1.rs:284
↓ 1 callersFunctioncalc_usbpre
(pllclk: Hertz)
src/rcc/v3.rs:429
↓ 1 callersMethodchecksum
(&self)
examples/ch32x035/src/bin/uart_pms7003_async.rs:77
↓ 1 callersMethodclear
(&mut self, color: Self::Color)
examples/ch32v003/src/bin/spi-lcd-st7735-cube.rs:185
↓ 1 callersMethodclear_irqs
(&self)
src/dma/dma_bdma.rs:214
↓ 1 callersMethodcmd
(cmd: Cmd, data: bool)
src/sdio.rs:763
↓ 1 callersFunctioncompute_dead_time_value
(value: u16)
src/timer/complementary_pwm.rs:149
↓ 1 callersFunctionconvert_temp
(raw: u16)
examples/ch32l103/src/bin/adc_temp.rs:52
↓ 1 callersMethoddata_out
(&mut self, buf: &mut [u8])
src/usbhs/endpoint.rs:57
↓ 1 callersMethoddisable
Disable the given channel.
src/timer/simple_pwm.rs:101
↓ 1 callersFunctiondisable_blocking_write
()
src/flash/v3.rs:39
↓ 1 callersMethoddlc
Return length of `data`
src/can/frame.rs:53
↓ 1 callersFunctionecho
(class: &mut CdcAcmClass<'d, Driver<'d, T>>)
examples/ch32v203/src/bin/usbd.rs:97
↓ 1 callersFunctionecho
(class: &mut CdcAcmClass<'d, Driver<'d, T, NR_EP, SIZE>>)
examples/ch32v307/src/bin/usb_hs_serial.rs:90
↓ 1 callersMethodenable
Enable the given channel.
src/timer/simple_pwm.rs:96
↓ 1 callersFunctionenable_blocking_write
()
src/flash/v3.rs:31
↓ 1 callersMethodenable_rx_interrupt
(&mut self)
src/usbpd/mod.rs:132
↓ 1 callersFunctionensure_sector_aligned
(start_address: u32, end_address: u32)
src/flash/common.rs:183
← previousnext →201–300 of 1,020, ranked by callers