Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ariel-os/ariel-os
/ functions
Functions
1,194 in github.com/ariel-os/ariel-os
⨍
Functions
1,194
◇
Types & classes
362
↓ 436 callers
Function
new
( pin: Peri<'_, P>, pull: ariel_os_embassy_common::gpio::Pull, schmitt_trigger: bool,
src/ariel-os-rp/src/gpio.rs:26
↓ 119 callers
Method
take
(semaphore: SemaphorePtr, timeout_us: Option<u32>)
src/ariel-os-esp/src/semaphore.rs:355
↓ 77 callers
Function
new
( pin: Peri<'_, T>, pull: ariel_os_embassy_common::gpio::Pull, _schmitt_trigger: bool,
src/ariel-os-stm32/src/gpio.rs:22
↓ 64 callers
Function
new
( pin: impl InputPin + 'a, pull: ariel_os_embassy_common::gpio::Pull, _schmitt_trigger
src/ariel-os-esp/src/gpio.rs:23
↓ 38 callers
Method
init
(&self, peripherals: &mut OptionalPeripherals)
src/ariel-os-stm32/src/extint_registry.rs:28
↓ 35 callers
Method
get
Returns a "used" index (if any) and marks it unused.
src/lib/rbi/src/lib.rs:61
↓ 33 callers
Function
new
( pin: Peri<'_, P>, pull: ariel_os_embassy_common::gpio::Pull, _schmitt_trigger: bool,
src/ariel-os-nrf/src/gpio.rs:23
↓ 28 callers
Method
insert
(&mut self, new: T)
src/lib/coapcore/src/oluru.rs:178
↓ 27 callers
Method
get
()
src/ariel-os-rt/src/stack.rs:86
↓ 27 callers
Method
iter
Returns an iterator visiting all items in arbitrary order.
src/lib/coapcore/src/oluru.rs:270
↓ 27 callers
Method
write
(&mut self, _buf: &[u8])
src/ariel-os-hal/src/hal/dummy/usb.rs:80
↓ 26 callers
Method
add
Adds thread with tid `n` to runqueue number `rq`.
src/ariel-os-runqueue/src/runqueue.rs:82
↓ 24 callers
Function
exit
Terminates the debug console. # Note This may or may not stop the MCU.
src/ariel-os-debug/src/exit.rs:37
↓ 24 callers
Method
first
(&self)
src/ariel-os-sensors/src/sensor/reading_channels.rs:167
↓ 24 callers
Method
len
(&self)
src/ariel-os-sensors/src/sensor/channels_samples_zip.rs:40
↓ 23 callers
Method
set
Sets the event. If the event was unset, and there were waiters, all waiters will be woken up. If the event was already set, the function just returns
src/ariel-os-threads/src/sync/event.rs:105
↓ 21 callers
Method
signal
Signal that a new value is available and will replace the previous value if it wasn't read.
src/ariel-os-sensors/src/signal.rs:49
↓ 19 callers
Method
push
(&mut self, n: u8, rq: u8)
src/ariel-os-runqueue/src/runqueue.rs:286
↓ 19 callers
Method
run
Runs the executor. The `init` closure is called with a [`Spawner`] that spawns tasks on this executor. Use it to spawn the initial task(s). After `in
src/ariel-os-embassy/src/thread_executor.rs:69
↓ 19 callers
Method
wait
Returns a future that will return once a value is available. This is not meant to have multiple tasks waiting for a signal. If multiple tasks are wai
src/ariel-os-sensors/src/signal.rs:71
↓ 18 callers
Function
current_tid
Returns the [`ThreadId`] of the currently active thread. Note: when called from ISRs, this will return the thread id of the thread that was interrupt
src/ariel-os-threads/src/lib.rs:702
↓ 18 callers
Method
lock
Acquires a mutex, blocking the current thread until it is able to do so. If the mutex was unlocked, it will be locked and a [`MutexGuard`] is returne
src/ariel-os-threads/src/sync/mutex.rs:93
↓ 18 callers
Method
with_mut
(&self, f: F)
src/ariel-os-threads/src/ensure_once.rs:24
↓ 17 callers
Function
block_on
Runs a future to completion. This runs the given future on the current thread, blocking until it is complete, and yielding its resolved result. # Pa
src/ariel-os-threads/src/blocker.rs:33
↓ 17 callers
Function
get
Gets the last stored value from the flash that is associated with the given key. Note: Always [`get()`] the same value type that was [`insert()`]! I
src/ariel-os-storage/src/lib.rs:116
↓ 17 callers
Method
iter
(&self)
src/ariel-os-sensors/src/sensor/samples.rs:320
↓ 16 callers
Function
set
Sets flags for a thread. If the thread was blocked on these flags it's unblocked and added to the runqueue. # Panics Panics if `thread_id` is >= [`
src/ariel-os-threads/src/thread_flags.rs:25
↓ 14 callers
Method
current
Returns checked mutable access to the thread data of the currently running thread. Returns `None` if there is no current thread.
src/ariel-os-threads/src/lib.rs:154
↓ 14 callers
Method
is_empty
Returns `true` if no element is available for `get()`
src/lib/rbi/src/lib.rs:49
↓ 14 callers
Method
set_state
Sets the state of a thread and triggers the scheduler if needed. This function also handles adding/ removing the thread to the Runqueue depending on
src/ariel-os-threads/src/lib.rs:276
↓ 13 callers
Function
context
Returns whether the given context is in the current 'cfg' contexts.
src/ariel-os-rt/build.rs:138
↓ 13 callers
Method
reading_channels
(&self)
src/ariel-os-sensors-gnss-time-ext/src/lib.rs:264
↓ 13 callers
Method
with
Calls a closure on a lent object. This blocks until [`Delegate::lend()`] is called on the instance. # Panics Panics if called multiple times on the
src/ariel-os-embassy/src/delegate.rs:94
↓ 12 callers
Method
build_with_interrupt
(self)
src/ariel-os-hal/src/gpio.rs:308
↓ 12 callers
Method
wait_for_reading
(&'static self)
src/sensors/ariel-os-sensor-aht20/src/i2c.rs:260
↓ 11 callers
Method
as_ptr
(&self, cs: CriticalSection<'_>)
src/ariel-os-threads/src/ensure_once.rs:53
↓ 11 callers
Method
as_slice
Reports the value of self as an OSCORE Key ID. This is currently the only slice form this type supports: There is no function to view this as an enco
src/lib/coapcore/src/helpers.rs:98
↓ 11 callers
Function
init
()
src/ariel-os-embassy/src/lib.rs:158
↓ 11 callers
Function
now
()
src/ariel-os-esp/src/time_driver.rs:92
↓ 11 callers
Method
pop
Removes the head from this [`ThreadList`]. Sets the thread's [`ThreadState`] to [`ThreadState::Running`] and triggers the scheduler. Returns the thr
src/ariel-os-threads/src/threadlist.rs:62
↓ 11 callers
Method
value
Returns the sample value. # Errors [`SampleError`] is returned in case of error.
src/ariel-os-sensors/src/sample.rs:74
↓ 11 callers
Method
with_mut_cs
(&self, cs: CriticalSection<'_>, f: F)
src/ariel-os-threads/src/ensure_once.rs:38
↓ 10 callers
Method
advance
Advances runqueue number `rq`. This is used to "yield" to another thread of *the same* priority. Returns `false` if the operation had no effect, i.e
src/ariel-os-runqueue/src/runqueue.rs:175
↓ 10 callers
Method
contains
(&self, core: CoreId)
src/ariel-os-threads/src/core_affinity.rs:39
↓ 10 callers
Method
trigger_measurement
(&self)
src/sensors/ariel-os-sensor-aht20/src/i2c.rs:242
↓ 10 callers
Method
wait_for_reading
(&'static self)
src/sensors/ariel-os-sensor-stts22h/src/i2c.rs:206
↓ 10 callers
Function
with_global
Locks the global RNG for a single operation. # Panics … if initialization did not happen. # Deadlocks … if the action attempts to lock RNG.
src/ariel-os-random/src/lib.rs:63
↓ 9 callers
Method
clear
Removes any pending value from the signal.
src/ariel-os-sensors/src/signal.rs:104
↓ 9 callers
Function
highest_freq_in
( range: core::ops::RangeInclusive<ariel_os_embassy_common::spi::main::Kilohertz>, )
src/ariel-os-embassy/src/spi/main/mod.rs:47
↓ 9 callers
Method
pop_head
Removes thread with tid `n` from runqueue number `rq`. # Panics Panics if `n` is not the queue's head. This is fine, Ariel OS only ever calls `pop_h
src/ariel-os-runqueue/src/runqueue.rs:100
↓ 9 callers
Method
read
( &self, _buf: &'a mut [u8], )
src/ariel-os-hal/src/hal/dummy/ble.rs:69
↓ 9 callers
Method
set_priority
Changes the priority of a thread and triggers the scheduler if needed.
src/ariel-os-threads/src/lib.rs:322
↓ 9 callers
Method
spawn
(&self, _token: SpawnToken<S>)
src/ariel-os-hal/src/hal/dummy/executor.rs:32
↓ 8 callers
Function
core_id
()
src/ariel-os-threads/src/lib.rs:708
↓ 8 callers
Function
crypto_rng
()
src/ariel-os-random/src/lib.rs:302
↓ 8 callers
Function
highest_freq_in
( range: core::ops::RangeInclusive<ariel_os_embassy_common::i2c::controller::Kilohertz>, )
src/ariel-os-hal/src/i2c/controller/mod.rs:43
↓ 8 callers
Function
join
(mut control: cyw43::Control<'static>)
src/ariel-os-rp/src/cyw43.rs:32
↓ 8 callers
Method
load
()
src/ariel-os-coap/src/stored.rs:96
↓ 8 callers
Method
put_current
Puts the current (blocked) thread into this [`ThreadList`] and triggers the scheduler. Returns a `RunqueueId` if the highest priority among the waite
src/ariel-os-threads/src/threadlist.rs:25
↓ 8 callers
Method
samples
Returns an iterator over [`Sample`]s of a sensor reading. The order of [`Sample`]s is not significant, but is fixed. # For implementors The default
src/ariel-os-sensors/src/sample.rs:157
↓ 8 callers
Function
schedule
()
src/ariel-os-threads/src/arch/mod.rs:84
↓ 8 callers
Method
set
Sets the current state.
src/ariel-os-sensors-utils/src/atomic_state.rs:33
↓ 8 callers
Method
trigger_measurement
(&self)
src/sensors/ariel-os-sensor-stts22h/src/i2c.rs:188
↓ 7 callers
Method
build
Returns an [`Input`] by finalizing the builder.
src/ariel-os-hal/src/gpio.rs:286
↓ 7 callers
Method
current_tid
(&self)
src/ariel-os-threads/src/lib.rs:166
↓ 7 callers
Method
get
Gets the contents of this [`SameExecutorCell`].
src/ariel-os-embassy-common/src/cell.rs:45
↓ 7 callers
Method
get_unchecked_mut
Returns mutable access to any thread data. # Panics Panics if `thread_id` is >= [`THREAD_COUNT`]. If the thread for this `thread_id` is in an invali
src/ariel-os-threads/src/lib.rs:245
↓ 7 callers
Method
render
( &self, message: &mut M, )
src/lib/coapcore/src/ace.rs:380
↓ 6 callers
Function
clamp_to_u8
(value: f32)
src/sensors/ariel-os-sensor-nrf91-gnss/src/lib.rs:61
↓ 6 callers
Method
del
Removes thread with tid `n`.
src/ariel-os-runqueue/src/runqueue.rs:112
↓ 6 callers
Function
digit
(a: u32)
examples/thermometer/src/main.rs:139
↓ 6 callers
Method
fill_bytes
(&mut self, dest: &mut [u8])
src/ariel-os-random/src/lib.rs:90
↓ 6 callers
Method
get_unchecked
Returns immutable access to any thread data. # Panics Panics if `thread_id` is >= [`THREAD_COUNT`]. If the thread for this `thread_id` is in an inva
src/ariel-os-threads/src/lib.rs:234
↓ 6 callers
Method
level
(&self)
src/lib/coapcore/src/seccontext.rs:115
↓ 6 callers
Function
limits
()
src/ariel-os-rt/src/lib.rs:91
↓ 6 callers
Function
network_stack
Returns a new [`NetworkStack`]. Returns [`None`] if networking is not yet initialized.
src/ariel-os-embassy/src/net.rs:36
↓ 6 callers
Method
peek_head
Returns the head of the runqueue without removing it.
src/ariel-os-runqueue/src/runqueue.rs:90
↓ 6 callers
Method
status
(&self)
doc/schema.rs:83
↓ 6 callers
Function
wait_one
Waits until any flag in `mask` is set for the current thread. Compared to [`wait_any`], this returns and clears only one flag from the mask. # Panic
src/ariel-os-threads/src/thread_flags.rs:67
↓ 6 callers
Function
wfi
()
src/ariel-os-rt/src/riscv.rs:13
↓ 6 callers
Method
with
(&self, f: F)
src/ariel-os-threads/src/ensure_once.rs:17
↓ 6 callers
Function
yield_same
"Yields" to another thread with the same priority.
src/ariel-os-threads/src/lib.rs:743
↓ 5 callers
Function
convert_datetime_to_parts
Converts time to parts to be put into [`Samples`]. `timestamp_nanos` is an UTC timestamp as nanoseconds since the UNIX epoch. The first element of t
src/ariel-os-sensors-gnss-time-ext/src/lib.rs:184
↓ 5 callers
Method
current_tid_mut
(&mut self)
src/ariel-os-threads/src/lib.rs:185
↓ 5 callers
Method
enable
(&mut self)
src/ariel-os-hal/src/hal/dummy/usb.rs:124
↓ 5 callers
Function
init
()
src/ariel-os-rt/src/lib.rs:126
↓ 5 callers
Function
init_sensor
(sht3x: &'static Aht20<I2cDeviceMock>)
src/sensors/ariel-os-sensor-aht20/src/i2c.rs:615
↓ 5 callers
Function
init_sensor
(stts22h: &'static Stts22h<I2cDeviceMock>)
src/sensors/ariel-os-sensor-stts22h/src/i2c.rs:467
↓ 5 callers
Function
insert
Stores a key-value pair into flash memory. It will overwrite the last value that has the same key.
src/ariel-os-storage/src/lib.rs:104
↓ 5 callers
Method
is_empty
Determines if this [`ThreadList`] is empty.
src/ariel-os-threads/src/threadlist.rs:108
↓ 5 callers
Function
is_in_current_contexts
Returns whether any of the current `cfg` contexts is one of the given contexts.
src/ariel-os-storage/build.rs:51
↓ 5 callers
Function
lock
Gets a [`MutexGuard`] of the global [`Storage`] object. This can be used to implement atomic RMW (like counters). It is not needed for using the glob
src/ariel-os-storage/src/lib.rs:166
↓ 5 callers
Method
next
(self)
src/ariel-os-nrf/src/spi/main/mod.rs:80
↓ 5 callers
Method
render
( self, msg: &mut M, )
src/lib/coapcore/src/seccontext.rs:1014
↓ 5 callers
Method
reset
Soft resets the device. # Errors - When the I2C connection fails.
src/sensors/ariel-os-sensor-aht20/src/i2c.rs:125
↓ 5 callers
Method
run
Listens for measurement requests generated by [`Aht20::trigger_measurement()`], and responds to them. This should be called before [`Aht20::wait_for_r
src/sensors/ariel-os-sensor-aht20/src/i2c.rs:147
↓ 5 callers
Method
run
Listens for measurement requests generated by [`Stts22h::trigger_measurement()`], and responds to them. This should be called before [`Stts22h::wait_f
src/sensors/ariel-os-sensor-stts22h/src/i2c.rs:125
↓ 5 callers
Method
sample
(&self)
src/ariel-os-sensors/src/sensor/samples.rs:160
↓ 5 callers
Function
sockaddr_nal2smol
(sockaddr: SocketAddr)
src/ariel-os-coap/src/udp_nal/util.rs:17
↓ 5 callers
Method
touch
(&mut self, position: usize)
src/lib/coapcore/src/oluru.rs:240
next →
1–100 of 1,194, ranked by callers