MCPcopy Create free account

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

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

Methodread_block
(&mut self, block_idx: u32, buffer: &mut DataBlock)
src/sdio.rs:986
Methodread_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
Methodread_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
Functionread_out_len
(index: usize)
src/usbd.rs:170
Methodread_single_block
CMD17: Block Read
src/sdio.rs:1206
Methodreceive
(&self)
src/can/can.rs:96
Methodreceive
Receives a PD message into the provided buffer. Returns the SOP and number of received bytes, or an error.
src/usbpd/mod.rs:157
Methodreceive
(&mut self, buffer: &mut [u8])
examples/ch32x035/src/bin/usbpd.rs:81
Functionreconfigure
(config: &Config)
src/usart/mod.rs:965
Methodregs
()
src/eth/mod.rs:55
Methodreject
(&mut self)
src/usbd.rs:972
Methodreject
(&mut self)
src/otg_fs/endpoint.rs:456
Methodreject
(&mut self)
src/usbhs/control.rs:162
Methodremote_wakeup
(&mut self)
src/usbd.rs:617
Methodremote_wakeup
(&mut self)
src/otg_fs/mod.rs:459
Methodremote_wakeup
(&mut self)
src/usbhs/mod.rs:421
Methodrequest
(&mut self, source_capabilities: &SourceCapabilities)
examples/ch32x035/src/bin/usbpd.rs:111
Methodreset
(&mut self)
src/usbpd/mod.rs:343
Methodreset
Reset the counter value to 0
src/timer/low_level.rs:217
Methodreset
(&mut self)
examples/ch32v003/src/bin/gpio_ws2812.rs:94
Methodreset_complete_count
(&mut self)
src/dma/dma_bdma.rs:470
Functionreset_resona
()
src/rcc/x0.rs:98
Methodrev_id
Returns the device revision identifier.
src/signature.rs:22
Methodschedule_wake
(&self, ticks: u64, waker: &core::task::Waker)
src/embassy/time_driver_systick.rs:119
Methodschedule_wake
(&self, at: u64, waker: &core::task::Waker)
src/embassy/time_driver_tim.rs:315
Methodsel_desel_card
CMD7: Select one card and put it into the _Tranfer State_
src/sdio.rs:1175
Methodsend_csd
CMD9:
src/sdio.rs:1185
Methodsend_rel_addr
CMD3: Send Relative Address
src/sdio.rs:1164
Methodset
(&mut self, id: Id, opts: FilterOptions)
src/can/filter/bit32.rs:60
Methodset_as_analog
(&mut self)
src/adc.rs:212
Methodset_as_input
(&self, pull: Pull)
src/gpio.rs:551
Methodset_as_isp_pin
(&self)
src/adc.rs:455
Methodset_as_output
(&self, speed: Speed)
src/gpio.rs:546
Methodset_autoreload_preload
Enable/disable autoreload preload.
src/timer/low_level.rs:288
Methodset_bank
(&mut self, bank: usize)
src/can/filter/mod.rs:60
Methodset_block_length
CMD16:
src/sdio.rs:1201
Methodset_cc_dma_enable_state
(&self, channel: Channel, ccde: bool)
src/timer/low_level.rs:523
Methodset_cc_dma_selection
no CTLR2
src/timer/low_level.rs:511
Methodset_clock_division
Set clock divider.
src/timer/low_level.rs:340
Methodset_config
Reconfigure the SPI peripheral.
src/spi.rs:202
Methodset_config
(&mut self, config: &Config)
src/usart/mod.rs:184
Methodset_dead_time
Set the dead time as a proportion of max_duty
src/timer/complementary_pwm.rs:141
Methodset_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
Methodset_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
Methodset_high
(&self)
src/gpio.rs:484
Methodset_input_capture_filter
Set input capture filter.
src/timer/low_level.rs:380
Methodset_input_capture_mode
(&self, channel: Channel, mode: InputCaptureMode)
src/timer/low_level.rs:418
Methodset_input_capture_prescaler
Set input capture prescaler.
src/timer/low_level.rs:400
Methodset_input_ti_selection
Set input TI selection.
src/timer/low_level.rs:408
Methodset_level
(&mut self, level: Level)
src/gpio.rs:223
Methodset_low
(&self)
src/gpio.rs:500
Methodset_moe
Set state of MOE-bit in BDTR register to en-/disable output
src/timer/low_level.rs:547
Methodset_polarity
Set the output polarity for a given channel.
src/timer/complementary_pwm.rs:135
Methodset_polarity
Set the output polarity for a given channel.
src/timer/simple_pwm.rs:146
Methodset_priority
(self, prio: Priority)
src/interrupt_ext.rs:201
Methodset_priority_with_cs
(self, _cs: CriticalSection, prio: Priority)
src/interrupt_ext.rs:211
Methodset_remap
(_remap: u8)
src/patches.rs:11
Methodset_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
Methodset_triggering
Enable or disable triggering for this channel.
src/dac.rs:126
Methodsetup
(&mut self)
src/otg_fs/endpoint.rs:217
Methodsetup
(&mut self)
src/usbhs/control.rs:33
Methodsize
Size in bytes
src/sdio.rs:147
Methodsize
(&self)
examples/ch32v305/src/bin/spi-lcd-st7735-cube.rs:185
Methodsize
(&self)
examples/ch32v203/src/bin/spi-lcd-st7735.rs:181
Methodsize
(&self)
examples/ch32v003/src/bin/spi-lcd-st7735-cube.rs:160
Methodsize
(&self)
examples/ch32x035/src/bin/spi-lcd-st7735.rs:183
Methodsmi
Get the SMI interface for direct PHY register access.
src/eth/v1/mod.rs:731
Methodsmi_write_ext
Writes a value to an extended PHY register in MMD address space
src/eth/generic_smi.rs:66
Methodstart
(mut self, control_max_packet_size: u16)
src/usbd.rs:408
Methodstart
(mut self, control_max_packet_size: u16)
src/otg_fs/mod.rs:230
Methodstart
(mut self, control_max_packet_size: u16)
src/usbhs/mod.rs:277
Methodsteal
(pin_port: u8)
src/gpio.rs:622
Methodstop
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
Methodstop
Stop the timer.
src/timer/low_level.rs:212
Methodstop_datapath
Stops the DMA datapath
src/sdio.rs:489
Methodtest
(&mut self)
examples/ch32v003/src/bin/gpio_ws2812.rs:102
Methodto_cnf
(&self)
src/gpio.rs:77
Methodtransaction
Transaction with operations. Consecutive operations of same type are merged. See [transaction contract] for details. [transaction contract]: embedde
src/i2c.rs:826
Methodtransfer_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
Methodtransmit
(&mut self, frame: &CanFrame)
src/can/can.rs:124
Methodtransmit
(&mut self, buf: &[u8])
src/usbpd/mod.rs:182
Methodtransmit
(&mut self, data: &[u8])
examples/ch32x035/src/bin/usbpd.rs:93
Methodtransmit_hard_reset
(&mut self)
examples/ch32l103/src/bin/usbpd.rs:100
Methodtransmit_hard_reset
(&mut self)
examples/ch32x035/src/bin/usbpd.rs:100
Methodtransmit_status
(&self, mailbox_num: usize)
src/can/registers.rs:105
Methodtransmit_status
Retrieves status of the last frame transmission
src/can/can.rs:327
Methodtrigger
Software trigger this channel.
src/dac.rs:135
Methodtry_fill_bytes
(&mut self, dest: &mut [u8])
src/rng.rs:177
Methodtry_recv
Try to read the next message from the queue. If there are no messages, an error is returned.
src/can/can.rs:231
Functionunique_id
Returns the unique ID
src/signature.rs:11
Functionunlock
()
src/flash/other.rs:8
Methodunpend
(self)
src/interrupt_ext.rs:189
Methodupload
(&self, _buffer: &mut [u8], _offset: usize)
examples/ch32v307/src/bin/usbfs_dfu.rs:31
Methodval_bool
(&self)
src/can/filter/mod.rs:14
Functionvalidate_buffer_size
Compile-time validation for buffer sizes
src/usb/mod.rs:9
Methodwait_enabled
(&mut self)
src/usbd.rs:672
Methodwait_enabled
(&mut self)
src/otg_fs/endpoint.rs:75
Methodwait_enabled
(&mut self)
src/usbhs/endpoint.rs:160
Methodwait_for_high
(&'a mut self)
src/exti.rs:171
Methodwait_for_low
(&'a mut self)
src/exti.rs:179
← previousnext →901–1,000 of 1,020, ranked by callers