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
↓ 1 callers
Method
enter_init_mode
(&self)
src/can/registers.rs:16
↓ 1 callers
Function
erase_sector_unlocked
(sector: &FlashSector)
src/flash/common.rs:154
↓ 1 callers
Function
ethernet_task
(runner: eth::Runner<'static, GenericSMI>)
examples/ch32v208/src/bin/eth_echo.rs:27
↓ 1 callers
Function
ethernet_task
(runner: eth::Runner<'static, GenericSMI>)
examples/ch32v208/src/bin/eth.rs:21
↓ 1 callers
Method
fill_bytes
(&mut self, dest: &mut [u8])
src/rng.rs:168
↓ 1 callers
Method
find_free_ep_address
(&self, _dir: Direction)
src/otg_fs/mod.rs:137
↓ 1 callers
Method
find_free_ep_address
(&self, _dir: Direction)
src/usbhs/mod.rs:190
↓ 1 callers
Method
flush
(&mut self)
src/spi.rs:609
↓ 1 callers
Method
fr_id_mask_reg
Offset in `usize` for bank `n` filter register 2
src/can/filter/mod.rs:72
↓ 1 callers
Method
fr_id_value_reg
Offset in `usize` for bank `n` filter register 1
src/can/filter/mod.rs:67
↓ 1 callers
Method
get_channel_enable_state
Get enable/disable state of a channel
src/timer/low_level.rs:456
↓ 1 callers
Method
get_duty
Get the duty for a given channel. The value ranges from 0 for 0% duty, to [`get_max_duty`](Self::get_max_duty) for 100% duty, both included.
src/timer/simple_pwm.rs:141
↓ 1 callers
Method
get_remaining_transfers
(&self)
src/dma/dma_bdma.rs:254
↓ 1 callers
Method
get_scr
(&mut self, card: &mut Card)
src/sdio.rs:711
↓ 1 callers
Method
get_update_dma_state
GPTM_2CH
src/timer/low_level.rs:323
↓ 1 callers
Function
hello
()
examples/ch32v305/src/bin/demo.rs:27
↓ 1 callers
Function
hello
()
examples/ch32v203/src/bin/flash_sections.rs:27
↓ 1 callers
Function
hsl_to_rgb
hsl: [1.0, 1.0, 1.0] -> [255.0, 255.0, 255.0]
examples/ch32v003/src/bin/gpio_ws2812.rs:63
↓ 1 callers
Method
id
(&self)
src/dma/mod.rs:102
↓ 1 callers
Method
info
(&self)
src/usbhs/endpoint.rs:156
↓ 1 callers
Method
init
init as master mode
src/i2c.rs:192
↓ 1 callers
Method
init
(&'static self, _cs: critical_section::CriticalSection)
src/embassy/time_driver_systick.rs:32
↓ 1 callers
Method
init
(&'static self, cs: critical_section::CriticalSection)
src/embassy/time_driver_tim.rs:166
↓ 1 callers
Method
init
(&mut self)
examples/ch32v003/src/bin/spi-lcd-st7735-cube.rs:80
↓ 1 callers
Method
init
(&mut self)
examples/ch32x035/src/bin/spi-lcd-st7735.rs:101
↓ 1 callers
Method
init_card
Initializes card (if present) and sets the bus at the specified frequency.
src/sdio.rs:839
↓ 1 callers
Method
inner_read_run
( &mut self, buffer: &mut [u8], enable_idle_line_detection: bool, )
src/usart/mod.rs:467
↓ 1 callers
Method
into
(self)
src/can/enums.rs:46
↓ 1 callers
Method
is_busy
()
src/debug.rs:31
↓ 1 callers
Method
is_enabled
Check whether given channel is enabled
src/timer/simple_pwm.rs:106
↓ 1 callers
Method
is_high
(&self)
src/exti.rs:159
↓ 1 callers
Method
is_low
(&self)
src/exti.rs:163
↓ 1 callers
Method
is_set_low
(&self)
src/gpio.rs:201
↓ 1 callers
Method
leave_init_mode
(&self)
src/can/registers.rs:30
↓ 1 callers
Method
link_up
(&mut self, sm: &mut S)
src/eth/generic_smi.rs:56
↓ 1 callers
Method
mut_address
(&mut self)
src/usbpd/mod.rs:105
↓ 1 callers
Function
net_task
(mut runner: embassy_net::Runner<'static, eth::Device<'static>>)
examples/ch32v208/src/bin/eth_echo.rs:22
↓ 1 callers
Function
net_task
(mut runner: embassy_net::Runner<'static, eth::Device<'static>>)
examples/ch32v208/src/bin/eth.rs:16
↓ 1 callers
Function
net_task
(mut runner: embassy_net::Runner<'static, Device>)
examples/ch32v307/src/bin/eth.rs:35
↓ 1 callers
Function
on_interrupt
()
src/i2c.rs:41
↓ 1 callers
Method
on_interrupt
(&self)
src/embassy/time_driver_systick.rs:62
↓ 1 callers
Method
phy_init
(&mut self, smi: &Smi)
src/eth/v1/mod.rs:443
↓ 1 callers
Method
phy_reset
(&mut self, smi: &Smi)
src/eth/v1/mod.rs:437
↓ 1 callers
Method
poll_link
(&mut self, smi: &Smi, _cx: &mut Context)
src/eth/v1/mod.rs:455
↓ 1 callers
Method
prepare_datapath_write
# Safety `buffer` must be valid for the whole transfer and word aligned
src/sdio.rs:451
↓ 1 callers
Function
print_source_capability
(pdo: &usbpd::protocol_layer::message::data::source_capabilities::PowerDataObject)
examples/ch32l103/src/bin/usbpd.rs:24
↓ 1 callers
Function
print_source_capability
(pdo: &usbpd::protocol_layer::message::data::source_capabilities::PowerDataObject)
examples/ch32x035/src/bin/usbpd.rs:24
↓ 1 callers
Method
rdes0
(&self)
src/eth/v1/mod.rs:140
↓ 1 callers
Method
read
Read elements from the ring buffer Return a tuple of the length read and the length remaining in the buffer If not all of the elements were read, then
src/dma/ringbuffer.rs:121
↓ 1 callers
Method
read_byte
(&mut self, addr: u16)
examples/ch32v307/src/bin/i2c-eeprom.rs:36
↓ 1 callers
Method
read_raw
( &'a mut self, peri_addr: *mut W, buf: *mut [W], options: TransferOptions,
src/dma/util.rs:23
↓ 1 callers
Method
read_status
Query the card status (CMD13, returns R1)
src/sdio.rs:612
↓ 1 callers
Method
read_until_idle
Initiate an asynchronous read with idle line detection enabled
src/usart/mod.rs:463
↓ 1 callers
Method
recover_seed_error
Try to recover from a seed error.
src/rng.rs:81
↓ 1 callers
Method
select_card
Select one card and place it into the _Tranfer State_ If `None` is specifed for `card`, all cards are put back into _Stand-by State_
src/sdio.rs:679
↓ 1 callers
Method
send_byte
(&self, byte: u8, timeout: Timeout)
src/i2c.rs:326
↓ 1 callers
Method
set_as_analog
(&self)
src/gpio.rs:575
↓ 1 callers
Method
set_as_output_open_drain
(&mut self, speed: Speed)
src/gpio.rs:164
↓ 1 callers
Method
set_bit_timing_and_mode
(&self, bt: super::util::NominalBitTiming, mode: super::CanMode)
src/can/registers.rs:41
↓ 1 callers
Method
set_complementary_output_polarity
Set complementary output polarity.
src/timer/low_level.rs:552
↓ 1 callers
Method
set_dead_time_clock_division
Set clock divider for the dead time.
src/timer/low_level.rs:537
↓ 1 callers
Method
set_dead_time_value
Set dead time, as a fraction of the max duty value.
src/timer/low_level.rs:542
↓ 1 callers
Method
set_frequency
Set PWM frequency. Note: when you call this, the max duty value changes, so you will have to call `set_duty` on all channels with the duty calculated
src/timer/complementary_pwm.rs:110
↓ 1 callers
Method
set_frequency
Set PWM frequency. Note: when you call this, the max duty value changes, so you will have to call `set_duty` on all channels with the duty calculated
src/timer/simple_pwm.rs:114
↓ 1 callers
Method
set_output_compare_mode
Set the output compare mode for a given channel.
src/timer/simple_pwm.rs:151
↓ 1 callers
Method
set_rdes1
(&mut self, val: u32)
src/eth/v1/mod.rs:150
↓ 1 callers
Method
set_rdes2
(&mut self, val: u32)
src/eth/v1/mod.rs:155
↓ 1 callers
Method
set_rdes3
(&mut self, val: u32)
src/eth/v1/mod.rs:160
↓ 1 callers
Method
set_tdes3
(&mut self, val: u32)
src/eth/v1/mod.rs:115
↓ 1 callers
Method
setup
(&mut self)
src/usbd.rs:795
↓ 1 callers
Function
slice_ptr_parts_mut
(slice: *mut [T])
src/dma/mod.rs:118
↓ 1 callers
Function
spin_until_rx_ready
(regs: &pac::spi::Spi)
src/spi.rs:673
↓ 1 callers
Function
spin_until_tx_ready
(regs: &pac::spi::Spi)
src/spi.rs:661
↓ 1 callers
Method
split
Split this `Dac` into separate channels. You can access and move the channels around separately after splitting.
src/dac.rs:303
↓ 1 callers
Method
split
Split the Uart into a transmitter and receiver, which is particularly useful when having two tasks correlating to transmitting and receiving.
src/usart/mod.rs:804
↓ 1 callers
Method
start
(&self)
src/dma/dma_bdma.rs:204
↓ 1 callers
Method
switch_signalling_mode
Switch mode using CMD6. Attempt to set a new signalling mode. The selected signalling mode is returned. Expects the current clock frequency to be > 1
src/sdio.rs:535
↓ 1 callers
Method
to_slice
(&self)
src/usbpd/mod.rs:97
↓ 1 callers
Method
transmit
Submit the current TX buffer to the DMA for transmission.
src/eth/v1/mod.rs:210
↓ 1 callers
Method
trigger_alarm
(&self, cs: CriticalSection)
src/embassy/time_driver_systick.rs:78
↓ 1 callers
Method
trigger_alarm
(&self, cs: CriticalSection)
src/embassy/time_driver_tim.rs:255
↓ 1 callers
Method
use_16bit
Convert filter to 16bit mode Register values in selected bank will be reset
src/can/filter/bit32.rs:8
↓ 1 callers
Method
wait_enabled_internal
(&mut self)
src/otg_fs/endpoint.rs:31
↓ 1 callers
Method
wait_enabled_internal
(&mut self)
src/usbhs/endpoint.rs:38
↓ 1 callers
Method
wait_for_any_edge
(&'a mut self)
src/exti.rs:195
↓ 1 callers
Method
write
SPI write, using DMA.
src/spi.rs:461
↓ 1 callers
Method
write
Write elements from the ring buffer Return a tuple of the length written and the capacity remaining to be written in the buffer
src/dma/ringbuffer.rs:305
↓ 1 callers
Method
write_byte
(&mut self, addr: u16, byte: u8)
examples/ch32v307/src/bin/i2c-eeprom.rs:26
↓ 1 callers
Function
write_chunk_unlocked
(address: u32, chunk: &[u8])
src/flash/common.rs:105
↓ 1 callers
Method
write_raw
( &'a mut self, buf: *const [W], peri_addr: *mut W, options: TransferOptions,
src/dma/util.rs:41
↓ 1 callers
Method
write_raw_framebuffer
(&mut self, raw: &[u8])
examples/ch32v305/src/bin/spi-lcd-st7735-cube.rs:153
↓ 1 callers
Method
write_raw_pixel
(&mut self, x: u16, y: u16, data: &[u8])
examples/ch32v305/src/bin/spi-lcd-st7735-cube.rs:160
↓ 1 callers
Method
write_raw_pixel
(&mut self, x: u16, y: u16, data: &[u8])
examples/ch32v203/src/bin/spi-lcd-st7735.rs:156
↓ 1 callers
Method
write_raw_pixel
(&mut self, x: u16, y: u16, data: &[u8])
examples/ch32v003/src/bin/spi-lcd-st7735-cube.rs:135
↓ 1 callers
Method
write_raw_pixel
(&mut self, x: u16, y: u16, data: &[u8])
examples/ch32x035/src/bin/spi-lcd-st7735.rs:158
↓ 1 callers
Method
write_repeated
( &'a mut self, repeated: &'a W, count: usize, peri_addr: *mut W, opti
src/dma/util.rs:50
↓ 1 callers
Function
write_start
(start_address: u32, buf: &[u8; WRITE_SIZE])
src/flash/v3.rs:50
Function
ETH
()
src/eth/v10m/mod.rs:53
Function
ETH
()
examples/ch32v307/src/bin/eth.rs:28
Function
EXTI0
()
src/exti.rs:357
← previous
next →
301–400 of 1,020, ranked by callers