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
Method
read_block
(&mut self, block_idx: u32, buffer: &mut DataBlock)
src/sdio.rs:986
Method
read_exact
Read an exact number of elements from the ringbuffer. Returns the remaining number of elements available for immediate reading. OverrunError is retur
src/dma/dma_bdma.rs:558
Method
read_exact
Read an exact number of elements from the ringbuffer. Returns the remaining number of elements available for immediate reading. OverrunError is retur
src/dma/ringbuffer.rs:92
Function
read_out_len
(index: usize)
src/usbd.rs:170
Method
read_single_block
CMD17: Block Read
src/sdio.rs:1206
Method
receive
(&self)
src/can/can.rs:96
Method
receive
Receives a PD message into the provided buffer. Returns the SOP and number of received bytes, or an error.
src/usbpd/mod.rs:157
Method
receive
(&mut self, buffer: &mut [u8])
examples/ch32x035/src/bin/usbpd.rs:81
Function
reconfigure
(config: &Config)
src/usart/mod.rs:965
Method
regs
()
src/eth/mod.rs:55
Method
reject
(&mut self)
src/usbd.rs:972
Method
reject
(&mut self)
src/otg_fs/endpoint.rs:456
Method
reject
(&mut self)
src/usbhs/control.rs:162
Method
remote_wakeup
(&mut self)
src/usbd.rs:617
Method
remote_wakeup
(&mut self)
src/otg_fs/mod.rs:459
Method
remote_wakeup
(&mut self)
src/usbhs/mod.rs:421
Method
request
(&mut self, source_capabilities: &SourceCapabilities)
examples/ch32x035/src/bin/usbpd.rs:111
Method
reset
(&mut self)
src/usbpd/mod.rs:343
Method
reset
Reset the counter value to 0
src/timer/low_level.rs:217
Method
reset
(&mut self)
examples/ch32v003/src/bin/gpio_ws2812.rs:94
Method
reset_complete_count
(&mut self)
src/dma/dma_bdma.rs:470
Function
reset_resona
()
src/rcc/x0.rs:98
Method
rev_id
Returns the device revision identifier.
src/signature.rs:22
Method
schedule_wake
(&self, ticks: u64, waker: &core::task::Waker)
src/embassy/time_driver_systick.rs:119
Method
schedule_wake
(&self, at: u64, waker: &core::task::Waker)
src/embassy/time_driver_tim.rs:315
Method
sel_desel_card
CMD7: Select one card and put it into the _Tranfer State_
src/sdio.rs:1175
Method
send_csd
CMD9:
src/sdio.rs:1185
Method
send_rel_addr
CMD3: Send Relative Address
src/sdio.rs:1164
Method
set
(&mut self, id: Id, opts: FilterOptions)
src/can/filter/bit32.rs:60
Method
set_as_analog
(&mut self)
src/adc.rs:212
Method
set_as_input
(&self, pull: Pull)
src/gpio.rs:551
Method
set_as_isp_pin
(&self)
src/adc.rs:455
Method
set_as_output
(&self, speed: Speed)
src/gpio.rs:546
Method
set_autoreload_preload
Enable/disable autoreload preload.
src/timer/low_level.rs:288
Method
set_bank
(&mut self, bank: usize)
src/can/filter/mod.rs:60
Method
set_block_length
CMD16:
src/sdio.rs:1201
Method
set_cc_dma_enable_state
(&self, channel: Channel, ccde: bool)
src/timer/low_level.rs:523
Method
set_cc_dma_selection
no CTLR2
src/timer/low_level.rs:511
Method
set_clock_division
Set clock divider.
src/timer/low_level.rs:340
Method
set_config
Reconfigure the SPI peripheral.
src/spi.rs:202
Method
set_config
(&mut self, config: &Config)
src/usart/mod.rs:184
Method
set_dead_time
Set the dead time as a proportion of max_duty
src/timer/complementary_pwm.rs:141
Method
set_duty
Set 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/complementary_pwm.rs:129
Method
set_frequency
Set the frequency of how many times per second the timer counts up to the max value or down to 0. This means that in the default edge-aligned mode, t
src/timer/low_level.rs:227
Method
set_high
(&self)
src/gpio.rs:484
Method
set_input_capture_filter
Set input capture filter.
src/timer/low_level.rs:380
Method
set_input_capture_mode
(&self, channel: Channel, mode: InputCaptureMode)
src/timer/low_level.rs:418
Method
set_input_capture_prescaler
Set input capture prescaler.
src/timer/low_level.rs:400
Method
set_input_ti_selection
Set input TI selection.
src/timer/low_level.rs:408
Method
set_level
(&mut self, level: Level)
src/gpio.rs:223
Method
set_low
(&self)
src/gpio.rs:500
Method
set_moe
Set state of MOE-bit in BDTR register to en-/disable output
src/timer/low_level.rs:547
Method
set_polarity
Set the output polarity for a given channel.
src/timer/complementary_pwm.rs:135
Method
set_polarity
Set the output polarity for a given channel.
src/timer/simple_pwm.rs:146
Method
set_priority
(self, prio: Priority)
src/interrupt_ext.rs:201
Method
set_priority_with_cs
(self, _cs: CriticalSection, prio: Priority)
src/interrupt_ext.rs:211
Method
set_remap
(_remap: u8)
src/patches.rs:11
Method
set_trigger
Set the trigger source for this channel. This method disables the channel, so you may need to re-enable afterwards.
src/dac.rs:116
Method
set_triggering
Enable or disable triggering for this channel.
src/dac.rs:126
Method
setup
(&mut self)
src/otg_fs/endpoint.rs:217
Method
setup
(&mut self)
src/usbhs/control.rs:33
Method
size
Size in bytes
src/sdio.rs:147
Method
size
(&self)
examples/ch32v305/src/bin/spi-lcd-st7735-cube.rs:185
Method
size
(&self)
examples/ch32v203/src/bin/spi-lcd-st7735.rs:181
Method
size
(&self)
examples/ch32v003/src/bin/spi-lcd-st7735-cube.rs:160
Method
size
(&self)
examples/ch32x035/src/bin/spi-lcd-st7735.rs:183
Method
smi
Get the SMI interface for direct PHY register access.
src/eth/v1/mod.rs:731
Method
smi_write_ext
Writes a value to an extended PHY register in MMD address space
src/eth/generic_smi.rs:66
Method
start
(mut self, control_max_packet_size: u16)
src/usbd.rs:408
Method
start
(mut self, control_max_packet_size: u16)
src/otg_fs/mod.rs:230
Method
start
(mut self, control_max_packet_size: u16)
src/usbhs/mod.rs:277
Method
steal
(pin_port: u8)
src/gpio.rs:622
Method
stop
Stop the DMA transfer and await until the buffer is full. This disables the DMA transfer's circular mode so that the transfer stops when the buffer i
src/dma/dma_bdma.rs:598
Method
stop
Stop the timer.
src/timer/low_level.rs:212
Method
stop_datapath
Stops the DMA datapath
src/sdio.rs:489
Method
test
(&mut self)
examples/ch32v003/src/bin/gpio_ws2812.rs:102
Method
to_cnf
(&self)
src/gpio.rs:77
Method
transaction
Transaction with operations. Consecutive operations of same type are merged. See [transaction contract] for details. [transaction contract]: embedde
src/i2c.rs:826
Method
transfer_in_place
In-place bidirectional transfer, using DMA. This writes the contents of `data` on MOSI, and puts the received data on MISO in `data`, at the same tim
src/spi.rs:587
Method
transmit
(&mut self, frame: &CanFrame)
src/can/can.rs:124
Method
transmit
(&mut self, buf: &[u8])
src/usbpd/mod.rs:182
Method
transmit
(&mut self, data: &[u8])
examples/ch32x035/src/bin/usbpd.rs:93
Method
transmit_hard_reset
(&mut self)
examples/ch32l103/src/bin/usbpd.rs:100
Method
transmit_hard_reset
(&mut self)
examples/ch32x035/src/bin/usbpd.rs:100
Method
transmit_status
(&self, mailbox_num: usize)
src/can/registers.rs:105
Method
transmit_status
Retrieves status of the last frame transmission
src/can/can.rs:327
Method
trigger
Software trigger this channel.
src/dac.rs:135
Method
try_fill_bytes
(&mut self, dest: &mut [u8])
src/rng.rs:177
Method
try_recv
Try to read the next message from the queue. If there are no messages, an error is returned.
src/can/can.rs:231
Function
unique_id
Returns the unique ID
src/signature.rs:11
Function
unlock
()
src/flash/other.rs:8
Method
unpend
(self)
src/interrupt_ext.rs:189
Method
upload
(&self, _buffer: &mut [u8], _offset: usize)
examples/ch32v307/src/bin/usbfs_dfu.rs:31
Method
val_bool
(&self)
src/can/filter/mod.rs:14
Function
validate_buffer_size
Compile-time validation for buffer sizes
src/usb/mod.rs:9
Method
wait_enabled
(&mut self)
src/usbd.rs:672
Method
wait_enabled
(&mut self)
src/otg_fs/endpoint.rs:75
Method
wait_enabled
(&mut self)
src/usbhs/endpoint.rs:160
Method
wait_for_high
(&'a mut self)
src/exti.rs:171
Method
wait_for_low
(&'a mut self)
src/exti.rs:179
← previous
next →
901–1,000 of 1,020, ranked by callers