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
Function
main
()
examples/ch32v208/src/bin/blinky.rs:12
Function
main
(_spawner: Spawner)
examples/ch32v208/src/bin/flash.rs:14
Function
main
()
examples/ch32x035/build.rs:1
Function
main
(spawner: Spawner)
examples/ch32x035/src/bin/uart_pms7003_async.rs:19
Function
main
(spawner: Spawner)
examples/ch32x035/src/bin/spi-lcd-st7735.rs:261
Function
main
(spawner: Spawner)
examples/ch32x035/src/bin/uart_echo.rs:14
Function
main
(spawner: Spawner)
examples/ch32x035/src/bin/uart_rx.rs:14
Function
main
(spawner: Spawner)
examples/ch32x035/src/bin/uart_tx_async.rs:39
Function
main
(spawner: Spawner)
examples/ch32x035/src/bin/blinky.rs:26
Function
main
(_spawner: Spawner)
examples/ch32x035/src/bin/exti.rs:13
Function
main
(spawner: Spawner)
examples/ch32x035/src/bin/blinky_pwm.rs:16
Function
main
(spawner: Spawner)
examples/ch32x035/src/bin/uart_tx.rs:14
Function
main
(_spawner: Spawner)
examples/ch32x035/src/bin/usbpd.rs:132
Function
main
()
examples/ch32x035/src/bin/sdi_print.rs:10
Function
main
()
examples/ch32v307/build.rs:1
Function
main
(_spawner: Spawner)
examples/ch32v307/src/bin/sdmmc.rs:19
Function
main
(_spawner: Spawner)
examples/ch32v307/src/bin/adc.rs:14
Function
main
(spawner: Spawner)
examples/ch32v307/src/bin/button.rs:28
Function
main
(_spawner: Spawner)
examples/ch32v307/src/bin/i2c-ssd1306.rs:39
Function
main
(_spawner: Spawner)
examples/ch32v307/src/bin/uart_echo.rs:13
Function
main
(_spawner: Spawner)
examples/ch32v307/src/bin/usbfs_dfu.rs:41
Function
main
(_spawner: Spawner)
examples/ch32v307/src/bin/rng.rs:18
Function
main
(spawner: Spawner)
examples/ch32v307/src/bin/embassy_blinky.rs:25
Function
main
(_spawner: Spawner)
examples/ch32v307/src/bin/usb_hs_serial.rs:21
Function
main
(spawner: Spawner)
examples/ch32v307/src/bin/eth.rs:40
Function
main
()
examples/ch32v307/src/bin/blinky.rs:11
Function
main
(_spawner: Spawner)
examples/ch32v307/src/bin/flash.rs:12
Function
main
(spawner: Spawner)
examples/ch32v307/src/bin/exti.rs:27
Function
main
(_spawner: Spawner)
examples/ch32v307/src/bin/blinky_pwm.rs:15
Function
main
(spawner: Spawner)
examples/ch32v307/src/bin/spi.rs:28
Function
main
(_spawner: Spawner)
examples/ch32v307/src/bin/uart_echo_async.rs:17
Function
main
(spawner: Spawner)
examples/ch32v307/src/bin/i2c-eeprom.rs:45
Function
main
(spawner: Spawner)
examples/ch32v307/src/bin/rcc.rs:26
Function
main
(_spawner: Spawner)
examples/ch32v307/src/bin/i2c-bmp180.rs:20
Function
main
()
examples/ch32v307/src/bin/sdi_print.rs:10
Function
main
(_spawner: Spawner)
examples/ch32v307/src/bin/i2c-bmp180-async.rs:27
Function
main
(spawner: Spawner)
examples/ch32v307/src/bin/uart.rs:27
Method
max_packet_size
(&self)
src/usbd.rs:791
Method
max_packet_size
(&self)
src/otg_fs/endpoint.rs:213
Method
max_packet_size
(&self)
src/usbhs/control.rs:27
Method
mhz
Create a `Hertz` from the given megahertz.
src/time.rs:22
Method
mul
(self, rhs: u32)
src/time.rs:44
Method
mul
(self, rhs: PllMul)
src/rcc/v1.rs:307
Method
mul
(self, rhs: PllMul)
src/rcc/v3.rs:450
Method
name
(&self)
src/signature.rs:31
Method
nb_read
(&mut self)
src/usart/mod.rs:396
Method
nb_transmit
Puts a frame in the transmit buffer to be sent on the bus. If the transmit buffer is full, this function will try to replace a pending lower priority
src/can/can.rs:215
Method
new
Create a new I2C driver.
src/i2c.rs:112
Method
new
()
src/adc.rs:48
Method
new
(cmd: u8, arg: u32, resp: Response)
src/sdio.rs:1149
Method
new
Create a new USB driver.
src/usbd.rs:221
Method
new
(pin: Peri<'d, impl Pin>)
src/gpio.rs:135
Method
new
Create a new RNG driver.
src/rng.rs:50
Method
new
( pin: Peri<'d, T>, ch: Peri<'d, T::ExtiChannel>, pull: Pull, )
src/exti.rs:146
Method
new
Create a new `DacChannel` instance, consuming the underlying DAC peripheral. If you're not using DMA, pass [`dma::NoDma`] for the `dma` argument. Th
src/dac.rs:79
Method
new
Create a new SPI driver.
src/spi.rs:370
Method
new
Useful if you only want Uart Tx. It saves 1 pin and consumes a little less power.
src/usart/mod.rs:233
Method
new
()
src/can/registers.rs:8
Method
new
(id: impl Into<embedded_can::Id>, raw_data: &[u8])
src/can/frame.rs:12
Method
new
()
src/can/can.rs:426
Method
new
Create a new instance.
src/internal/drop.rs:14
Method
new
Construct the PHY. It assumes the address `phy_addr` in the SMI communication
src/eth/generic_smi.rs:45
Method
new
()
src/eth/v1/mod.rs:85
Method
new
Create a new buffer state.
src/eth/v10m/mod.rs:37
Method
new
(info: EndpointInfo, data: EndpointData<'d, SIZE>)
src/otg_fs/endpoint.rs:20
Method
new
( _usb: Peri<'d, T>, // _irq: impl interrupt::typelevel::Binding<T::Interrupt, InterruptHandle
src/otg_fs/mod.rs:114
Method
new
(ep_buffer: &'d mut [EndpointDataBuffer<SIZE>; NR_EP])
src/usb/mod.rs:14
Method
new
Create a new ring buffer.
src/dma/dma_bdma.rs:492
Method
new
(dma_buf: &'a mut [W])
src/dma/ringbuffer.rs:61
Method
new
()
src/usbpd/mod.rs:93
Method
new
Create a new timer driver.
src/timer/low_level.rs:183
Method
new
( tim: Peri<'d, T>, _ch1: Option<PwmPin<'d, T, Ch1>>, _ch1n: Option<ComplementaryPwmPi
src/timer/complementary_pwm.rs:53
Method
new
Create a new simple PWM driver.
src/timer/simple_pwm.rs:58
Method
new
()
src/embassy/time_driver_tim.rs:144
Method
new
(info: EndpointInfo, data: EndpointData<'d, SIZE>)
src/usbhs/endpoint.rs:18
Method
new
( _peri: Peri<'d, T>, _irqs: impl interrupt::typelevel::Binding<T::Interrupt, InterruptHandler
src/usbhs/mod.rs:134
Method
new
(ep0: Endpoint<'d, T, InOut, SIZE>)
src/usbhs/control.rs:18
Method
new
(spi: Spi<'static, peripherals::SPI2, hal::mode::Blocking>, dc: Output<'static>)
examples/ch32v305/src/bin/spi-lcd-st7735-cube.rs:90
Method
new
(usbpd: UsbPdPhy<'d, peripherals::USBPD, hal::mode::Async>)
examples/ch32l103/src/bin/usbpd.rs:71
Method
new
(spi: Spi<'static, peripherals::SPI1, hal::mode::Blocking>, dc: Output<'static>)
examples/ch32v203/src/bin/spi-lcd-st7735.rs:93
Method
new
(spi: Spi<'static, peripherals::SPI1, hal::mode::Blocking>, dc: Output<'static>)
examples/ch32v003/src/bin/spi-lcd-st7735-cube.rs:72
Method
new
(pin: Output<'static>)
examples/ch32v003/src/bin/gpio_ws2812.rs:90
Method
new
(i2c_dev: I2C, _address: u8)
examples/ch32v003/src/bin/embassy_i2c_shared_bus.rs:69
Method
new
(data: &'a [u8; 32])
examples/ch32x035/src/bin/uart_pms7003_async.rs:66
Method
new
(spi: Spi<'static, peripherals::SPI1, hal::mode::Blocking>, dc: Output<'static>)
examples/ch32x035/src/bin/spi-lcd-st7735.rs:93
Method
new
(usbpd: UsbPdPhy<'d, peripherals::USBPD, hal::mode::Async>)
examples/ch32x035/src/bin/usbpd.rs:71
Method
new
(i2c: I2c<'static, peripherals::I2C2, Blocking>, address: u8)
examples/ch32v307/src/bin/i2c-eeprom.rs:22
Method
new_1bit
Create a new SDMMC driver, with 1 data lane.
src/sdio.rs:259
Method
new_4bit
Create a new SDMMC driver, with 4 data lanes.
src/sdio.rs:288
Method
new_async
( peri: Peri<'d, T>, rx: Peri<'d, impl RxPin<T, REMAP>>, tx: Peri<'d, impl TxPin<T, RE
src/can/can.rs:81
Method
new_async
( peri: Peri<'d, T>, cc1: Peri<'d, impl CcPin<T>>, cc2: Peri<'d, impl CcPin<T>>,
src/usbpd/mod.rs:118
Method
new_blocking
Create a new blocking I2C driver.
src/i2c.rs:130
Method
new_blocking
Create a new SPI driver.
src/spi.rs:298
Method
new_blocking
Create a new blocking tx-only UART with no hardware flow control. Useful if you only want Uart Tx. It saves 1 pin and consumes a little less power.
src/usart/mod.rs:284
Method
new_blocking
( peri: Peri<'d, T>, rx: Peri<'d, impl RxPin<T, REMAP>>, tx: Peri<'d, impl TxPin<T, RE
src/can/can.rs:153
Method
new_blocking
( peri: Peri<'d, T>, cc1: Peri<'d, impl CcPin<T>>, cc2: Peri<'d, impl CcPin<T>>, )
src/usbpd/mod.rs:223
Method
new_blocking
Create a new flash driver, usable in blocking mode.
src/flash/common.rs:24
Method
new_blocking_half_duplex
( peri: Peri<'d, T>, tx: Peri<'d, impl TxPin<T, REMAP>>, mut config: Config, )
src/usart/mod.rs:948
Method
new_blocking_rxonly
Create a new SPI driver, in RX-only mode (only MISO pin, no MOSI).
src/spi.rs:323
Method
new_blocking_txonly
Create a new SPI driver, in TX-only mode (only MOSI pin, no MISO).
src/spi.rs:338
← previous
next →
701–800 of 1,020, ranked by callers