Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ch32-rs/ch32-hal
/ functions
Functions
1,020 in github.com/ch32-rs/ch32-hal
⨍
Functions
1,020
◇
Types & classes
313
↓ 2 callers
Method
get_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 callers
Method
get_one
(mut self)
build.rs:689
↓ 2 callers
Method
get_remaining_transfers
(&self)
src/dma/ringbuffer.rs:402
↓ 2 callers
Function
get_result
()
src/flash/v3.rs:102
↓ 2 callers
Function
get_sector
(address: u32)
src/flash/common.rs:170
↓ 2 callers
Method
idle
CMD0: Idle
src/sdio.rs:1154
↓ 2 callers
Method
inner_read
(&mut self, buffer: &mut [u8], enable_idle_line_detection: bool)
src/usart/mod.rs:644
↓ 2 callers
Method
is_center_aligned
Return whether this mode is center-aligned.
src/timer/low_level.rs:73
↓ 2 callers
Method
is_high
(&self)
src/gpio.rs:180
↓ 2 callers
Method
is_low
(&self)
src/gpio.rs:185
↓ 2 callers
Method
is_set_high
(&self)
src/gpio.rs:195
↓ 2 callers
Method
lsb_first
(&self)
src/spi.rs:87
↓ 2 callers
Method
next_period
(&self)
src/embassy/time_driver_tim.rs:234
↓ 2 callers
Function
operation_frames
( operations: &'a mut [embedded_hal::i2c::Operation<'b>], )
src/i2c.rs:1062
↓ 2 callers
Method
pin_sel
(&self)
src/adc.rs:462
↓ 2 callers
Method
poll_stop
(&self)
src/dma/dma_bdma.rs:270
↓ 2 callers
Method
post_receive
Decodes the received PD message and returns a tuple (Sop, length) or an error.
src/usbpd/mod.rs:413
↓ 2 callers
Method
prepare_receive
Prepares the PHY for receiving a PD message into a buffer.
src/usbpd/mod.rs:397
↓ 2 callers
Method
raw_phase
CPHA
src/spi.rs:72
↓ 2 callers
Method
raw_polarity
CPOL
src/spi.rs:80
↓ 2 callers
Method
receive
(&mut self, buffer: &mut [u8])
examples/ch32l103/src/bin/usbpd.rs:81
↓ 2 callers
Method
recv_byte
(&self, timeout: Timeout)
src/i2c.rs:351
↓ 2 callers
Method
regs
(&self)
src/can/enums.rs:84
↓ 2 callers
Method
set_alarm
(&self, _cs: CriticalSection, next_alarm_cnt: u64)
src/embassy/time_driver_systick.rs:85
↓ 2 callers
Method
set_alarm
(&self, cs: CriticalSection, timestamp: u64)
src/embassy/time_driver_tim.rs:262
↓ 2 callers
Method
set_color
(&mut self, mut color: u32)
examples/ch32v003/src/bin/gpio_ws2812.rs:112
↓ 2 callers
Method
set_compare_value
Set compare value for a channel.
src/timer/low_level.rs:461
↓ 2 callers
Method
set_counting_mode
(&self, mode: CountingMode)
src/timer/low_level.rs:362
↓ 2 callers
Method
set_enable
Enable or disable this channel.
src/dac.rs:95
↓ 2 callers
Method
set_output_compare_mode
Set output compare mode.
src/timer/low_level.rs:436
↓ 2 callers
Method
set_output_compare_preload
Set output compare preload.
src/timer/low_level.rs:489
↓ 2 callers
Method
set_output_polarity
Set output polarity.
src/timer/low_level.rs:444
↓ 2 callers
Method
set_pull
(&self, pull: Pull)
src/gpio.rs:557
↓ 2 callers
Method
set_rdes0
(&mut self, val: u32)
src/eth/v1/mod.rs:145
↓ 2 callers
Method
set_tdes0
(&mut self, val: u32)
src/eth/v1/mod.rs:100
↓ 2 callers
Method
set_tdes1
(&mut self, val: u32)
src/eth/v1/mod.rs:105
↓ 2 callers
Method
set_tdes2
(&mut self, val: u32)
src/eth/v1/mod.rs:110
↓ 2 callers
Method
set_waker
(&mut self, waker: &Waker)
src/dma/dma_bdma.rs:479
↓ 2 callers
Method
set_waker
(&mut self, waker: &Waker)
src/dma/ringbuffer.rs:429
↓ 2 callers
Method
smi_read
(&mut self, _phy_addr: u8, reg: u8)
src/eth/v10m/mod.rs:326
↓ 2 callers
Method
tdes0
(&self)
src/eth/v1/mod.rs:95
↓ 2 callers
Method
timeout
(&self)
src/can/can.rs:367
↓ 2 callers
Method
transfer_inner
(&mut self, read: *mut [W], write: *const [W])
src/spi.rs:533
↓ 2 callers
Method
transmit_hardreset
Transmit a hard reset.
src/usbpd/mod.rs:194
↓ 2 callers
Method
val
(&self)
src/can/enums.rs:110
↓ 2 callers
Method
wait_for_tx_complete
(&mut self)
src/usbpd/mod.rs:205
↓ 1 callers
Method
accept
(&mut self)
src/otg_fs/endpoint.rs:417
↓ 1 callers
Method
accept
(&mut self)
src/usbhs/control.rs:149
↓ 1 callers
Method
address
(&self)
src/usbpd/mod.rs:101
↓ 1 callers
Function
blink
(pin: Peri<'static, AnyPin>, interval_ms: u64)
examples/ch32v305/src/bin/blinky.rs:13
↓ 1 callers
Function
blink
(pin: Peri<'static, AnyPin>)
examples/ch32v305/src/bin/exti.rs:15
↓ 1 callers
Function
blink
(pin: Peri<'static, AnyPin>, interval_ms: u64)
examples/ch32v305/src/bin/demo.rs:14
↓ 1 callers
Function
blink
(pin: Peri<'static, AnyPin>)
examples/ch32v305/src/bin/uart_tx.rs:15
↓ 1 callers
Function
blink
(pin: Peri<'static, AnyPin>, interval_ms: u64)
examples/ch643/src/bin/embassy_blinky.rs:14
↓ 1 callers
Function
blink
(pin: Peri<'static, AnyPin>, interval_ms: u64)
examples/ch32l103/src/bin/blinky.rs:14
↓ 1 callers
Function
blink
(pin: Peri<'static, AnyPin>)
examples/ch32v203/src/bin/spi-lcd-st7735.rs:32
↓ 1 callers
Function
blink
(pin: Peri<'static, AnyPin>, interval_ms: u64)
examples/ch32v203/src/bin/flash_sections.rs:14
↓ 1 callers
Function
blink
(pin: Peri<'static, AnyPin>, interval_ms: u64)
examples/ch641/src/bin/embassy_blinky.rs:14
↓ 1 callers
Function
blink
(pin: Peri<'static, AnyPin>)
examples/ch32x035/src/bin/spi-lcd-st7735.rs:32
↓ 1 callers
Function
blink
(pin: Peri<'static, AnyPin>, interval_ms: u64)
examples/ch32x035/src/bin/uart_tx_async.rs:27
↓ 1 callers
Function
blink
(pin: Peri<'static, AnyPin>, interval_ms: u64)
examples/ch32x035/src/bin/blinky.rs:14
↓ 1 callers
Function
blink
(mut led: Output<'static>)
examples/ch32v307/src/bin/button.rs:17
↓ 1 callers
Function
blink
(pin: Peri<'static, AnyPin>)
examples/ch32v307/src/bin/exti.rs:15
↓ 1 callers
Function
blink
(pin: Peri<'static, AnyPin>)
examples/ch32v307/src/bin/spi.rs:16
↓ 1 callers
Function
blink
(pin: Peri<'static, AnyPin>)
examples/ch32v307/src/bin/i2c-eeprom.rs:94
↓ 1 callers
Function
blink
(pin: Peri<'static, AnyPin>)
examples/ch32v307/src/bin/uart.rs:15
↓ 1 callers
Function
blocking_erase
( base: u32, from: u32, to: u32, erase_sector: unsafe fn(&FlashSector) -> Result<(), Error>, )
src/flash/common.rs:127
↓ 1 callers
Method
blocking_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 callers
Function
blocking_erase_sector
(sector: &FlashSector)
src/flash/v3.rs:62
↓ 1 callers
Function
blocking_read
(base: u32, size: u32, offset: u32, bytes: &mut [u8])
src/flash/common.rs:67
↓ 1 callers
Method
blocking_read
Blocking read.
src/spi.rs:251
↓ 1 callers
Method
blocking_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 callers
Method
blocking_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 callers
Method
blocking_write
Blocking write.
src/spi.rs:240
↓ 1 callers
Method
blocking_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 callers
Function
bound
(r: f32, entire: f32)
examples/ch32v003/src/bin/gpio_ws2812.rs:30
↓ 1 callers
Method
bus_reset
(&mut self)
src/usbhs/mod.rs:318
↓ 1 callers
Function
calc_bmc_clk_for_rx
()
src/usbpd/mod.rs:592
↓ 1 callers
Function
calc_bmc_clk_for_tx
()
src/usbpd/mod.rs:587
↓ 1 callers
Function
calc_can_timings
Calculate nominal CAN bit timing based on CAN bitrate and periphial clock frequency
src/can/util.rs:20
↓ 1 callers
Function
calc_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 callers
Function
calc_out_len
Returns (actual_len, len_bits)
src/usbd.rs:143
↓ 1 callers
Function
calc_usbpre
(pllclk: Hertz)
src/rcc/v1.rs:284
↓ 1 callers
Function
calc_usbpre
(pllclk: Hertz)
src/rcc/v3.rs:429
↓ 1 callers
Method
checksum
(&self)
examples/ch32x035/src/bin/uart_pms7003_async.rs:77
↓ 1 callers
Method
clear
(&mut self, color: Self::Color)
examples/ch32v003/src/bin/spi-lcd-st7735-cube.rs:185
↓ 1 callers
Method
clear_irqs
(&self)
src/dma/dma_bdma.rs:214
↓ 1 callers
Method
cmd
(cmd: Cmd, data: bool)
src/sdio.rs:763
↓ 1 callers
Function
compute_dead_time_value
(value: u16)
src/timer/complementary_pwm.rs:149
↓ 1 callers
Function
convert_temp
(raw: u16)
examples/ch32l103/src/bin/adc_temp.rs:52
↓ 1 callers
Method
data_out
(&mut self, buf: &mut [u8])
src/usbhs/endpoint.rs:57
↓ 1 callers
Method
disable
Disable the given channel.
src/timer/simple_pwm.rs:101
↓ 1 callers
Function
disable_blocking_write
()
src/flash/v3.rs:39
↓ 1 callers
Method
dlc
Return length of `data`
src/can/frame.rs:53
↓ 1 callers
Function
echo
(class: &mut CdcAcmClass<'d, Driver<'d, T>>)
examples/ch32v203/src/bin/usbd.rs:97
↓ 1 callers
Function
echo
(class: &mut CdcAcmClass<'d, Driver<'d, T, NR_EP, SIZE>>)
examples/ch32v307/src/bin/usb_hs_serial.rs:90
↓ 1 callers
Method
enable
Enable the given channel.
src/timer/simple_pwm.rs:96
↓ 1 callers
Function
enable_blocking_write
()
src/flash/v3.rs:31
↓ 1 callers
Method
enable_rx_interrupt
(&mut self)
src/usbpd/mod.rs:132
↓ 1 callers
Function
ensure_sector_aligned
(start_address: u32, end_address: u32)
src/flash/common.rs:183
← previous
next →
201–300 of 1,020, ranked by callers