Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/embassy-rs/embassy
/ functions
Functions
11,534 in github.com/embassy-rs/embassy
⨍
Functions
11,534
◇
Types & classes
3,598
↓ 3,931 callers
Function
new
Create a new network stack.
embassy-net/src/lib.rs:313
↓ 2,570 callers
Method
modify
(&self, f: impl FnOnce(&mut T) -> R)
embassy-usb-synopsys-otg/src/otg_v1.rs:85
↓ 929 callers
Function
regs
()
embassy-nrf/src/ppi/ppi.rs:15
↓ 811 callers
Method
reborrow
Reborrow the channel, allowing it to be used in multiple places.
embassy-rp/src/dma.rs:90
↓ 724 callers
Function
init
(_cx: init::Context)
examples/stm32l4-rtic/src/bin/blinky.rs:27
↓ 720 callers
Method
write_value
(&self, val: T)
embassy-usb-synopsys-otg/src/otg_v1.rs:68
↓ 452 callers
Method
len
Returns the length of the descriptor field
embassy-usb/src/msos.rs:35
↓ 381 callers
Method
len
Return length as u8
embassy-stm32/src/can/frame.rs:68
↓ 366 callers
Method
spawn
Spawn a task into an executor. You obtain the `token` by calling a task function (i.e. one marked with `#[embassy_executor::task]`).
embassy-executor/src/spawner.rs:162
↓ 358 callers
Function
new
Create a new instance of the CYW43 driver. Returns a handle to the network device, control handle and a runner for driving the low level stack.
cyw43/src/lib.rs:239
↓ 340 callers
Method
write
Sends data, discarding any received data. If necessary, the write buffer will be copied into RAM (see struct description for detail). Returns number o
embassy-nrf/src/spis.rs:432
↓ 330 callers
Method
into
(self)
embassy-mspm0/src/i2c.rs:59
↓ 324 callers
Method
into
(self)
embassy-net-enc28j60/src/bank0.rs:66
↓ 302 callers
Method
iter
Returns an iterator over the pins in this acquisition bank. This method allows for easy traversal of all configured pins in the bank.
embassy-stm32/src/tsc/acquisition_banks.rs:35
↓ 297 callers
Method
map
Returns a locked view over a portion of the locked data.
embassy-sync/src/mutex.rs:190
↓ 288 callers
Method
copy_from_slice
Fills the packet payload with given `src` data # Panics This function panics if `src` is larger than `Self::CAPACITY`
embassy-nrf/src/radio/ieee802154.rs:485
↓ 280 callers
Method
as_ptr
The returned pointer is valid for the entire TaskStorage.
embassy-executor/src/raw/mod.rs:168
↓ 275 callers
Method
store
(&self, val: u64, order: Ordering)
embassy-rp/src/pio/mod.rs:1411
↓ 274 callers
Method
wake
Wake all registered wakers. This clears the buffer
embassy-sync/src/waitqueue/multi_waker.rs:46
↓ 264 callers
Method
set_high
(&mut self)
embassy-rp/src/gpio.rs:408
↓ 249 callers
Method
load
Boots the application. # Safety This modifies the stack pointer and reset vector and will run code placed in the active partition.
embassy-boot-rp/src/lib.rs:53
↓ 248 callers
Method
init
(&mut self)
examples/stm32h7/src/bin/camera.rs:213
↓ 247 callers
Method
len
Returns the size of this packet's payload
embassy-nrf/src/radio/ieee802154.rs:493
↓ 245 callers
Method
is_empty
Returns `true` if no MS OS descriptor data is available
embassy-usb/src/msos.rs:30
↓ 240 callers
Method
set_low
(&mut self)
embassy-rp/src/gpio.rs:414
↓ 232 callers
Method
into
(self)
embassy-stm32/src/tsc/types.rs:46
↓ 228 callers
Function
info
(id: u8)
embassy-stm32/src/dma/mod.rs:139
↓ 201 callers
Method
waker
Get the waker for this channel
embassy-mcxa/src/dma.rs:1353
↓ 196 callers
Method
read
(&self, mut f: impl FnMut(Dr, Tr, u16) -> Result<R, RtcError>)
embassy-stm32/src/rtc/mod.rs:92
↓ 195 callers
Method
read
(&mut self, channel: &mut impl AdcChannel<T>, sample_time: SampleTime)
embassy-stm32/src/adc/f1.rs:122
↓ 178 callers
Method
write
Write data using DMA. This configures the DMA channel for a memory-to-peripheral transfer and waits for completion asynchronously. Large buffers are
embassy-mcxa/src/lpuart/dma.rs:146
↓ 174 callers
Method
read
(&self)
embassy-nrf/src/rtc.rs:271
↓ 172 callers
Method
register
Register a waker. If the buffer is full, [wakes all the wakers](Self::wake), clears its buffer and registers the waker.
embassy-sync/src/waitqueue/multi_waker.rs:22
↓ 171 callers
Method
borrow
Creates one further [`Sender`] over the same channel.
embassy-sync/src/zerocopy_channel.rs:119
↓ 170 callers
Method
write
(&self, lcd: &mut Lcd<'_, LCD>)
examples/stm32u0/src/bin/lcd.rs:330
↓ 168 callers
Method
borrow_mut
Acquire an RTC borrow.
embassy-stm32/src/rtc/mod.rs:135
↓ 164 callers
Method
run
Runs the `UsbDevice` forever. This future may leave the bus in an invalid state if it is dropped. After dropping the future, [`UsbDevice::disable()`]
embassy-usb/src/lib.rs:274
↓ 158 callers
Method
lock
Lock the mutex. This will wait for the mutex to be unlocked if it's already locked.
embassy-sync/src/mutex.rs:77
↓ 157 callers
Method
read
DMA read from a peripheral to memory. SAFETY: Slice must point to a valid location reachable by DMA.
embassy-rp/src/dma.rs:140
↓ 155 callers
Function
now
()
embassy-time-driver/src/lib.rs:148
↓ 155 callers
Method
write
(&mut self, init_mode: bool, f: F)
embassy-stm32/src/rtc/v2.rs:96
↓ 151 callers
Method
as_ref
Access the data as a reference to a type `T`. Safety: - The type must be valid when zero-initialized. - The timer queue should only be interpreted a
embassy-executor-timer-queue/src/lib.rs:76
↓ 147 callers
Method
get
Returns the current value of the `Watch` once it is initialized, marking it as seen. Note**: Futures do nothing unless you `.await` or poll them.
embassy-sync/src/watch.rs:554
↓ 145 callers
Method
as_mut_ptr
(&self)
embassy-executor/src/raw/util.rs:11
↓ 140 callers
Method
write
Transmit the provided buffer. Non-blocking version, bails out if it would block.
embassy-imxrt/src/flexcomm/uart.rs:230
↓ 137 callers
Method
as_mut
(&self)
embassy-executor/src/raw/util.rs:16
↓ 135 callers
Method
start
Start a new measurement. Allow at least 1000ms before getting `temperature`.
examples/stm32g0/src/bin/onewire_ds18b20.rs:235
↓ 133 callers
Method
bits
Number of bits of the resolution.
embassy-mspm0/src/adc.rs:52
↓ 130 callers
Method
into
(self)
embassy-nrf/src/spim.rs:111
↓ 126 callers
Method
push
Force push data to TX FIFO.
embassy-rp/src/pio/mod.rs:448
↓ 126 callers
Method
read
(&mut self, address: u32, buffer: &mut [u8])
examples/stm32h7/src/bin/qspi_mdma.rs:85
↓ 126 callers
Method
toggle
(&mut self)
embassy-rp/src/gpio.rs:444
↓ 126 callers
Method
write
DMA write from memory to a peripheral. SAFETY: Slice must point to a valid location reachable by DMA.
embassy-rp/src/dma.rs:188
↓ 122 callers
Function
delay
()
tests/rp/src/bin/gpio.rs:286
↓ 122 callers
Function
new
Make sure to use `HfclkSource::ExternalXtal` as the `hfclk_source` to use the radio (nrf52840 product spec v1.11 5.4.1) ``` # use embassy_nrf::config:
embassy-nrf/src/embassy_net_802154_driver.rs:82
↓ 120 callers
Method
add
Adds a value to the secure counter. # Arguments `add` - Value to add to the secure counter
embassy-mcxa/src/cdog.rs:213
↓ 114 callers
Method
blocking_read
Read from address into buffer blocking caller until done.
embassy-rp/src/i2c.rs:608
↓ 111 callers
Method
write_all
Write all bytes to the pipe. This method writes all bytes from `buf` into the pipe
embassy-sync/src/pipe.rs:386
↓ 108 callers
Method
rx
Return a read handle for reading state machine outputs.
embassy-rp/src/pio/mod.rs:1011
↓ 105 callers
Method
set_enable
Enable state machine.
embassy-rp/src/pio/mod.rs:918
↓ 104 callers
Method
clone
(&self)
embassy-sync/src/pipe.rs:28
↓ 104 callers
Method
set_bit
(self)
embassy-stm32/src/can/fd/message_ram/txbuffer_element.rs:43
↓ 102 callers
Function
drop
(_: *const ())
embassy-executor/src/raw/waker.rs:15
↓ 100 callers
Method
iter_mut
Iterate over all active connections mutably
embassy-stm32-wpan/src/wba/gap/connection.rs:363
↓ 95 callers
Function
init
(_: init::Context)
examples/nrf52840-rtic/src/bin/blinky.rs:20
↓ 89 callers
Method
tx
Return a handle for writing to inputs.
embassy-rp/src/pio/mod.rs:1016
↓ 86 callers
Method
blocking_write
Write to address from buffer blocking caller until done.
embassy-rp/src/i2c.rs:615
↓ 86 callers
Function
join
Joins the result of two futures, waiting for them both to complete. This function will return a new future which awaits both futures to complete. The
embassy-futures/src/join.rs:142
↓ 86 callers
Method
register
(&self, arg: &core::task::Waker)
embassy-stm32/src/can/fdcan.rs:634
↓ 85 callers
Function
enable
Enables peripheral `T`.
embassy-imxrt/src/clocks.rs:1543
↓ 85 callers
Method
regs
(&self)
embassy-mcxa/src/spi/mod.rs:43
↓ 83 callers
Method
finalize
Finalizes the CRC calculation and reads the resulting CRC from the hardware consuming `self`.
embassy-mcxa/src/crc.rs:221
↓ 83 callers
Method
into
(self)
embassy-rp/src/pio/mod.rs:578
↓ 83 callers
Method
write_operand
(&mut self, offset: usize, data: &[u8])
embassy-stm32/src/pka/mod.rs:1632
↓ 82 callers
Method
len
(&self)
examples/stm32g0/src/bin/spi_neopixel.rs:39
↓ 81 callers
Method
read
(&mut self, offset: u32, bytes: &mut [u8])
embassy-stm32/src/flash/common.rs:231
↓ 80 callers
Function
init
()
tests/stm32/src/common.rs:878
↓ 79 callers
Method
modify
(&mut self, register: Register, f: F)
examples/stm32h7/src/bin/camera.rs:297
↓ 79 callers
Method
regs
(&self)
embassy-mcxa/src/i2c/mod.rs:46
↓ 79 callers
Method
split
(mut self)
embassy-rp/src/pwm.rs:327
↓ 78 callers
Function
regs
()
embassy-mspm0/src/trng.rs:527
↓ 77 callers
Method
data
Get reference to data
embassy-stm32/src/can/frame.rs:221
↓ 77 callers
Method
waker
(&self)
embassy-nrf/src/gpiote.rs:694
↓ 74 callers
Method
build
(mut self)
examples/rp/src/bin/pio_servo.rs:63
↓ 73 callers
Method
extend
Make the block one word larger
embassy-rp/src/block.rs:167
↓ 73 callers
Method
is_empty
Check if the advertising data is empty
embassy-stm32-wpan/src/wba/gap/types.rs:211
↓ 73 callers
Method
len
Get the length of the advertising data
embassy-stm32-wpan/src/wba/gap/types.rs:206
↓ 72 callers
Function
mhz
This is a convenience shortcut for [`Hertz::mhz`]
embassy-stm32/src/time.rs:70
↓ 72 callers
Method
read
Read from UART RX. Non-blocking version, bails out if it would block.
embassy-imxrt/src/flexcomm/uart.rs:345
↓ 69 callers
Method
read
Read data from the I2S ringbuffer. SAI is always receiving data in the background. This function pops already-received data from the buffer. If there’
embassy-stm32/src/i2s.rs:216
↓ 67 callers
Method
finish_blocking
Finishes the cipher operation and returns the authentication tag (for GCM/CCM).
embassy-stm32/src/aes/mod.rs:1206
↓ 66 callers
Method
busy
Check if UART is busy transmitting.
embassy-rp/src/uart/mod.rs:193
↓ 66 callers
Method
take
Take the underlying value if it was initialized, uninitializing the `OnceLock` in the process.
embassy-sync/src/once_lock.rs:134
↓ 65 callers
Method
index
Get the channel index (0..3)
embassy-stm32/src/timer/mod.rs:38
↓ 64 callers
Method
join
Join split rx and tx portions back together
embassy-stm32/src/can/fdcan.rs:381
↓ 64 callers
Method
read
Read data from the ring buffer asynchronously. This waits until at least one byte is available, then reads as much as possible into the destination b
embassy-mcxa/src/dma.rs:1990
↓ 62 callers
Method
contains
Check if a property is set
embassy-stm32-wpan/src/wba/gatt/types.rs:63
↓ 62 callers
Method
payload_blocking
Process payload data in blocking mode. Set `last` to true for the final block. Intermediate chunks (`last=false`) must be block-aligned (16 bytes). O
embassy-stm32/src/aes/mod.rs:1104
↓ 62 callers
Method
set_dmaen
(&mut self, val: bool)
embassy-usb-synopsys-otg/src/otg_v1.rs:1607
↓ 62 callers
Method
write
(&mut self, address: u8, bytes: &[u8])
embassy-mspm0/src/i2c.rs:861
next →
1–100 of 11,534, ranked by callers