MCPcopy Create free account

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

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

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