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
↓ 4 callers
Method
prepare_datapath_read
# Safety `buffer` must be valid for the whole transfer and word aligned
src/sdio.rs:406
↓ 4 callers
Method
reset
Reset the RNG.
src/rng.rs:65
↓ 4 callers
Method
reset_complete_count
(&mut self)
src/dma/ringbuffer.rs:422
↓ 4 callers
Method
send_data
(&mut self, data: &[u8])
examples/ch32v203/src/bin/spi-lcd-st7735.rs:167
↓ 4 callers
Method
send_data
(&mut self, data: &[u8])
examples/ch32v003/src/bin/spi-lcd-st7735-cube.rs:146
↓ 4 callers
Method
send_data
(&mut self, data: &[u8])
examples/ch32x035/src/bin/spi-lcd-st7735.rs:169
↓ 4 callers
Method
send_nack
Sends NACK after last byte received, indicating end of read operation.
src/i2c.rs:1047
↓ 4 callers
Method
send_start
Sends start or repeated start condition before transfer.
src/i2c.rs:1031
↓ 4 callers
Method
set
Write a new value to this channel. If triggering is not enabled, the new value is immediately output; otherwise, it will be output after the next tri
src/dac.rs:145
↓ 4 callers
Method
set_update_window
(&mut self, x: u16, y: u16, w: u16, h: u16)
examples/ch32v203/src/bin/spi-lcd-st7735.rs:131
↓ 4 callers
Method
set_update_window
(&mut self, x: u16, y: u16, w: u16, h: u16)
examples/ch32v003/src/bin/spi-lcd-st7735-cube.rs:110
↓ 4 callers
Method
set_update_window
(&mut self, x: u16, y: u16, w: u16, h: u16)
examples/ch32x035/src/bin/spi-lcd-st7735.rs:133
↓ 4 callers
Function
transfer_word
(regs: &pac::spi::Spi, tx_word: W)
src/spi.rs:707
↓ 4 callers
Method
write
Initiate an asynchronous UART write
src/usart/mod.rs:267
↓ 3 callers
Method
accept
(&mut self)
src/usbd.rs:943
↓ 3 callers
Method
add_filter
Each filter bank consists of 2 32-bit registers CAN_FxR0 and CAN_FxR1
src/can/can.rs:301
↓ 3 callers
Function
align_len_up
(len: u16)
src/usbd.rs:138
↓ 3 callers
Method
alloc_endpoint
( &mut self, ep_type: EndpointType, ep_addr: Option<EndpointAddress>, max_pack
src/otg_fs/mod.rs:145
↓ 3 callers
Method
alloc_endpoint
( &mut self, ep_type: EndpointType, ep_addr: Option<EndpointAddress>, max_pack
src/usbhs/mod.rs:195
↓ 3 callers
Function
blink
(pin: Peri<'static, AnyPin>, interval_ms: u64)
examples/ch32v305/src/bin/rcc.rs:15
↓ 3 callers
Function
blink
(pin: Peri<'static, AnyPin>, interval_ms: u64)
examples/ch32v307/src/bin/rcc.rs:14
↓ 3 callers
Method
blocking_read_timeout
( &mut self, addr: u8, buffer: &mut [u8], timeout: Timeout, frame: Fra
src/i2c.rs:365
↓ 3 callers
Function
bound_ratio
(r: f32)
examples/ch32v003/src/bin/gpio_ws2812.rs:46
↓ 3 callers
Function
calc_rgb_unit
(unit: f32, temp1: f32, temp2: f32)
examples/ch32v003/src/bin/gpio_ws2812.rs:50
↓ 3 callers
Method
channel
(&self)
src/adc.rs:247
↓ 3 callers
Method
clear
(&mut self, color: Self::Color)
examples/ch32v305/src/bin/spi-lcd-st7735-cube.rs:210
↓ 3 callers
Function
clear_all_err
()
src/flash/v3.rs:78
↓ 3 callers
Method
clkcr_set_clkdiv
Sets the CLKDIV field in CLKCR. Updates clock field in self
src/sdio.rs:500
↓ 3 callers
Method
configure
( &self, _request: Request, dir: Dir, peri_addr: *const u32, mem_addr:
src/dma/dma_bdma.rs:162
↓ 3 callers
Function
convert_type
(t: EndpointType)
src/usbd.rs:119
↓ 3 callers
Method
data
Get reference to data
src/can/frame.rs:58
↓ 3 callers
Method
delay_us
(&mut self, ns: u32)
src/delay/impl_qingke_v3.rs:33
↓ 3 callers
Method
detect_cc
(&self)
src/usbpd/mod.rs:371
↓ 3 callers
Method
enable_transmit_empty_interrupt
(&self, enable: bool)
src/can/registers.rs:12
↓ 3 callers
Method
find_free_mailbox
(&self)
src/can/registers.rs:56
↓ 3 callers
Function
finish_dma
(regs: Regs)
src/spi.rs:691
↓ 3 callers
Function
hz
This is a convenience shortcut for [`Hertz::hz`]
src/time.rs:28
↓ 3 callers
Method
is_enabled
(&self)
src/otg_fs/endpoint.rs:44
↓ 3 callers
Method
is_enabled
(&self)
src/usbhs/endpoint.rs:50
↓ 3 callers
Function
lock
()
src/flash/v3.rs:8
↓ 3 callers
Function
make_table
(out: &mut String, name: &str, data: &Vec<Vec<String>>)
build.rs:700
↓ 3 callers
Method
pending_messages
(&self, fifo: super::CanFifo)
src/can/registers.rs:70
↓ 3 callers
Method
pin_port
(&self)
src/gpio.rs:639
↓ 3 callers
Method
pop_packet
Release the current RX descriptor back to DMA ownership.
src/eth/v1/mod.rs:303
↓ 3 callers
Method
read_data
(&mut self, buf: &mut [u8])
src/usbd.rs:656
↓ 3 callers
Method
read_frame
(&mut self, address: u8, buffer: &mut [u8], frame: FrameOptions)
src/i2c.rs:651
↓ 3 callers
Method
read_sd_status
Reads the SD Status (ACMD13)
src/sdio.rs:623
↓ 3 callers
Method
receive
(&mut self, cx: &mut Context)
src/eth/v1/mod.rs:816
↓ 3 callers
Method
receive_inner
Receives a CAN frame from the hardware. Caller must make sure that a frame is available in the FIFO before calling this method.
src/can/can.rs:337
↓ 3 callers
Method
request
(&mut self, source_capabilities: &SourceCapabilities)
examples/ch32l103/src/bin/usbpd.rs:111
↓ 3 callers
Method
request_stop
(&self)
src/dma/dma_bdma.rs:227
↓ 3 callers
Method
set_as_isp_pin
(&self)
src/adc.rs:459
↓ 3 callers
Method
set_as_output
(&mut self, speed: Speed)
src/gpio.rs:154
↓ 3 callers
Function
slice_ptr_parts
(slice: *const [T])
src/dma/mod.rs:113
↓ 3 callers
Method
transmit_inner
(&mut self, sop: Sop, buf: &[u8])
src/usbpd/mod.rs:429
↓ 3 callers
Function
unlock
()
src/flash/v3.rs:15
↓ 3 callers
Method
val_bool
(&self)
src/can/enums.rs:117
↓ 3 callers
Method
wait_for_falling_edge
(&'a mut self)
src/exti.rs:191
↓ 3 callers
Method
write
( &'a mut self, buf: &'a [W], peri_addr: *mut W, options: TransferOptions,
src/dma/util.rs:32
↓ 3 callers
Method
write_bytes
(&mut self, addr: u8, bytes: &[u8], timeout: Timeout, frame: FrameOptions)
src/i2c.rs:280
↓ 3 callers
Method
write_data
(&mut self, buf: &[u8])
src/usbd.rs:650
↓ 3 callers
Method
write_frame
(&mut self, address: u8, write: &[u8], frame: FrameOptions)
src/i2c.rs:489
↓ 3 callers
Method
write_frame_mailbox
(&self, mailbox_num: usize, frame: &super::CanFrame)
src/can/registers.rs:74
↓ 3 callers
Method
write_volatile
(&mut self, buf: &[u8])
src/usb/mod.rs:82
↓ 2 callers
Method
_port
(&self)
src/gpio.rs:627
↓ 2 callers
Method
alloc_ep_mem
(&mut self, len: u16)
src/usbd.rs:274
↓ 2 callers
Method
async_fill_bytes
Fill the given slice with random values.
src/rng.rs:93
↓ 2 callers
Function
blink
(pin: Peri<'static, AnyPin>, interval_ms: u64)
examples/ch32v006/src/bin/embassy_blinky.rs:11
↓ 2 callers
Function
blink
(pin: Peri<'static, AnyPin>, interval_ms: u64)
examples/ch32v003/src/bin/embassy_blinky.rs:14
↓ 2 callers
Function
blink
(pin: Peri<'static, AnyPin>, interval_ms: u64)
examples/ch32v208/src/bin/embassy_blinky.rs:14
↓ 2 callers
Function
blink
(pin: Peri<'static, AnyPin>, interval_ms: u64)
examples/ch32v307/src/bin/embassy_blinky.rs:13
↓ 2 callers
Method
blocking_transfer_in_place
Blocking in-place bidirectional transfer. This writes the contents of `data` on MOSI, and puts the received data on MISO in `data`, at the same time.
src/spi.rs:264
↓ 2 callers
Function
blocking_wait_ready_write
()
src/flash/v3.rs:92
↓ 2 callers
Function
blocking_write
( base: u32, size: u32, offset: u32, bytes: &[u8], write_chunk: unsafe fn(u32, &[u8]) -> R
src/flash/common.rs:82
↓ 2 callers
Method
blocking_write
Perform a blocking UART write
src/usart/mod.rs:213
↓ 2 callers
Method
bus_reset
(&mut self)
src/otg_fs/mod.rs:292
↓ 2 callers
Function
calc_pclk
(hclk: Hertz, ppre: D)
src/rcc/v1.rs:275
↓ 2 callers
Function
calc_pclk
(hclk: Hertz, ppre: D)
src/rcc/v3.rs:420
↓ 2 callers
Function
calculate_baud_rate
(hclk: u32, clk: u32)
src/spi.rs:628
↓ 2 callers
Method
card
(&self)
src/sdio.rs:1115
↓ 2 callers
Function
check_error_flags
(sr: &pac::spi::regs::Statr)
src/spi.rs:647
↓ 2 callers
Method
check_rx_flags
The same as embassy-stm32's usart_v1 checks rxne
src/usart/mod.rs:362
↓ 2 callers
Function
chip_id_to_name
(id: u32)
src/signature.rs:57
↓ 2 callers
Method
clear
(&mut self, color: Self::Color)
examples/ch32v203/src/bin/spi-lcd-st7735.rs:206
↓ 2 callers
Method
clear
(&mut self, color: Self::Color)
examples/ch32x035/src/bin/spi-lcd-st7735.rs:208
↓ 2 callers
Function
clk_div
(ker_ck: Hertz, sdmmc_ck: u32)
src/sdio.rs:183
↓ 2 callers
Method
configure_channel
(&mut self, channel: &mut impl AdcChannel<T>, rank: u8, sample_time: SampleTime, pga: Pga)
src/adc.rs:105
↓ 2 callers
Method
data_in_transfer
(&mut self)
src/usbhs/endpoint.rs:117
↓ 2 callers
Method
data_in_write_buffer
(&mut self, data: &[u8])
src/usbhs/endpoint.rs:103
↓ 2 callers
Method
delay_us
(&mut self, ns: u32)
src/delay/impl_qingke_v2_v4.rs:34
↓ 2 callers
Method
demand_poll
(&self)
src/eth/v1/mod.rs:310
↓ 2 callers
Method
disable_circular_mode
(&self)
src/dma/dma_bdma.rs:261
↓ 2 callers
Method
enable_complementary_channel
Enable/disable a complementary channel.
src/timer/low_level.rs:559
↓ 2 callers
Method
enable_outputs
Enable timer outputs.
src/timer/low_level.rs:497
↓ 2 callers
Method
enable_tx_interrupt
(&mut self)
src/usbpd/mod.rs:143
↓ 2 callers
Method
enable_update_dma
GPTM_2CH
src/timer/low_level.rs:317
↓ 2 callers
Method
endpoint_set_enabled
(&mut self, ep_addr: EndpointAddress, enabled: bool)
src/otg_fs/mod.rs:384
↓ 2 callers
Method
get_compare_value
Get compare value for a channel.
src/timer/low_level.rs:475
↓ 2 callers
Method
get_counting_mode
Get counting mode.
src/timer/low_level.rs:375
↓ 2 callers
Function
get_mac
Get the factory-programmed MAC address from chip UID. Each CH32 comes with a unique ID that can be used as MAC address. This reads the 6 bytes from f
src/eth/v10m/mod.rs:186
← previous
next →
101–200 of 1,020, ranked by callers