MCPcopy Create free account

hub / github.com/ariel-os/ariel-os / functions

Functions1,194 in github.com/ariel-os/ariel-os

↓ 436 callersFunctionnew
( pin: Peri<'_, P>, pull: ariel_os_embassy_common::gpio::Pull, schmitt_trigger: bool,
src/ariel-os-rp/src/gpio.rs:26
↓ 119 callersMethodtake
(semaphore: SemaphorePtr, timeout_us: Option<u32>)
src/ariel-os-esp/src/semaphore.rs:355
↓ 77 callersFunctionnew
( pin: Peri<'_, T>, pull: ariel_os_embassy_common::gpio::Pull, _schmitt_trigger: bool,
src/ariel-os-stm32/src/gpio.rs:22
↓ 64 callersFunctionnew
( pin: impl InputPin + 'a, pull: ariel_os_embassy_common::gpio::Pull, _schmitt_trigger
src/ariel-os-esp/src/gpio.rs:23
↓ 38 callersMethodinit
(&self, peripherals: &mut OptionalPeripherals)
src/ariel-os-stm32/src/extint_registry.rs:28
↓ 35 callersMethodget
Returns a "used" index (if any) and marks it unused.
src/lib/rbi/src/lib.rs:61
↓ 33 callersFunctionnew
( pin: Peri<'_, P>, pull: ariel_os_embassy_common::gpio::Pull, _schmitt_trigger: bool,
src/ariel-os-nrf/src/gpio.rs:23
↓ 28 callersMethodinsert
(&mut self, new: T)
src/lib/coapcore/src/oluru.rs:178
↓ 27 callersMethodget
()
src/ariel-os-rt/src/stack.rs:86
↓ 27 callersMethoditer
Returns an iterator visiting all items in arbitrary order.
src/lib/coapcore/src/oluru.rs:270
↓ 27 callersMethodwrite
(&mut self, _buf: &[u8])
src/ariel-os-hal/src/hal/dummy/usb.rs:80
↓ 26 callersMethodadd
Adds thread with tid `n` to runqueue number `rq`.
src/ariel-os-runqueue/src/runqueue.rs:82
↓ 24 callersFunctionexit
Terminates the debug console. # Note This may or may not stop the MCU.
src/ariel-os-debug/src/exit.rs:37
↓ 24 callersMethodfirst
(&self)
src/ariel-os-sensors/src/sensor/reading_channels.rs:167
↓ 24 callersMethodlen
(&self)
src/ariel-os-sensors/src/sensor/channels_samples_zip.rs:40
↓ 23 callersMethodset
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 callersMethodsignal
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 callersMethodpush
(&mut self, n: u8, rq: u8)
src/ariel-os-runqueue/src/runqueue.rs:286
↓ 19 callersMethodrun
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 callersMethodwait
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 callersFunctioncurrent_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 callersMethodlock
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 callersMethodwith_mut
(&self, f: F)
src/ariel-os-threads/src/ensure_once.rs:24
↓ 17 callersFunctionblock_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 callersFunctionget
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 callersMethoditer
(&self)
src/ariel-os-sensors/src/sensor/samples.rs:320
↓ 16 callersFunctionset
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 callersMethodcurrent
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 callersMethodis_empty
Returns `true` if no element is available for `get()`
src/lib/rbi/src/lib.rs:49
↓ 14 callersMethodset_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 callersFunctioncontext
Returns whether the given context is in the current 'cfg' contexts.
src/ariel-os-rt/build.rs:138
↓ 13 callersMethodreading_channels
(&self)
src/ariel-os-sensors-gnss-time-ext/src/lib.rs:264
↓ 13 callersMethodwith
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 callersMethodbuild_with_interrupt
(self)
src/ariel-os-hal/src/gpio.rs:308
↓ 12 callersMethodwait_for_reading
(&'static self)
src/sensors/ariel-os-sensor-aht20/src/i2c.rs:260
↓ 11 callersMethodas_ptr
(&self, cs: CriticalSection<'_>)
src/ariel-os-threads/src/ensure_once.rs:53
↓ 11 callersMethodas_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 callersFunctioninit
()
src/ariel-os-embassy/src/lib.rs:158
↓ 11 callersFunctionnow
()
src/ariel-os-esp/src/time_driver.rs:92
↓ 11 callersMethodpop
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 callersMethodvalue
Returns the sample value. # Errors [`SampleError`] is returned in case of error.
src/ariel-os-sensors/src/sample.rs:74
↓ 11 callersMethodwith_mut_cs
(&self, cs: CriticalSection<'_>, f: F)
src/ariel-os-threads/src/ensure_once.rs:38
↓ 10 callersMethodadvance
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 callersMethodcontains
(&self, core: CoreId)
src/ariel-os-threads/src/core_affinity.rs:39
↓ 10 callersMethodtrigger_measurement
(&self)
src/sensors/ariel-os-sensor-aht20/src/i2c.rs:242
↓ 10 callersMethodwait_for_reading
(&'static self)
src/sensors/ariel-os-sensor-stts22h/src/i2c.rs:206
↓ 10 callersFunctionwith_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 callersMethodclear
Removes any pending value from the signal.
src/ariel-os-sensors/src/signal.rs:104
↓ 9 callersFunctionhighest_freq_in
( range: core::ops::RangeInclusive<ariel_os_embassy_common::spi::main::Kilohertz>, )
src/ariel-os-embassy/src/spi/main/mod.rs:47
↓ 9 callersMethodpop_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 callersMethodread
( &self, _buf: &'a mut [u8], )
src/ariel-os-hal/src/hal/dummy/ble.rs:69
↓ 9 callersMethodset_priority
Changes the priority of a thread and triggers the scheduler if needed.
src/ariel-os-threads/src/lib.rs:322
↓ 9 callersMethodspawn
(&self, _token: SpawnToken<S>)
src/ariel-os-hal/src/hal/dummy/executor.rs:32
↓ 8 callersFunctioncore_id
()
src/ariel-os-threads/src/lib.rs:708
↓ 8 callersFunctioncrypto_rng
()
src/ariel-os-random/src/lib.rs:302
↓ 8 callersFunctionhighest_freq_in
( range: core::ops::RangeInclusive<ariel_os_embassy_common::i2c::controller::Kilohertz>, )
src/ariel-os-hal/src/i2c/controller/mod.rs:43
↓ 8 callersFunctionjoin
(mut control: cyw43::Control<'static>)
src/ariel-os-rp/src/cyw43.rs:32
↓ 8 callersMethodload
()
src/ariel-os-coap/src/stored.rs:96
↓ 8 callersMethodput_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 callersMethodsamples
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 callersFunctionschedule
()
src/ariel-os-threads/src/arch/mod.rs:84
↓ 8 callersMethodset
Sets the current state.
src/ariel-os-sensors-utils/src/atomic_state.rs:33
↓ 8 callersMethodtrigger_measurement
(&self)
src/sensors/ariel-os-sensor-stts22h/src/i2c.rs:188
↓ 7 callersMethodbuild
Returns an [`Input`] by finalizing the builder.
src/ariel-os-hal/src/gpio.rs:286
↓ 7 callersMethodcurrent_tid
(&self)
src/ariel-os-threads/src/lib.rs:166
↓ 7 callersMethodget
Gets the contents of this [`SameExecutorCell`].
src/ariel-os-embassy-common/src/cell.rs:45
↓ 7 callersMethodget_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 callersMethodrender
( &self, message: &mut M, )
src/lib/coapcore/src/ace.rs:380
↓ 6 callersFunctionclamp_to_u8
(value: f32)
src/sensors/ariel-os-sensor-nrf91-gnss/src/lib.rs:61
↓ 6 callersMethoddel
Removes thread with tid `n`.
src/ariel-os-runqueue/src/runqueue.rs:112
↓ 6 callersFunctiondigit
(a: u32)
examples/thermometer/src/main.rs:139
↓ 6 callersMethodfill_bytes
(&mut self, dest: &mut [u8])
src/ariel-os-random/src/lib.rs:90
↓ 6 callersMethodget_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 callersMethodlevel
(&self)
src/lib/coapcore/src/seccontext.rs:115
↓ 6 callersFunctionlimits
()
src/ariel-os-rt/src/lib.rs:91
↓ 6 callersFunctionnetwork_stack
Returns a new [`NetworkStack`]. Returns [`None`] if networking is not yet initialized.
src/ariel-os-embassy/src/net.rs:36
↓ 6 callersMethodpeek_head
Returns the head of the runqueue without removing it.
src/ariel-os-runqueue/src/runqueue.rs:90
↓ 6 callersMethodstatus
(&self)
doc/schema.rs:83
↓ 6 callersFunctionwait_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 callersFunctionwfi
()
src/ariel-os-rt/src/riscv.rs:13
↓ 6 callersMethodwith
(&self, f: F)
src/ariel-os-threads/src/ensure_once.rs:17
↓ 6 callersFunctionyield_same
"Yields" to another thread with the same priority.
src/ariel-os-threads/src/lib.rs:743
↓ 5 callersFunctionconvert_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 callersMethodcurrent_tid_mut
(&mut self)
src/ariel-os-threads/src/lib.rs:185
↓ 5 callersMethodenable
(&mut self)
src/ariel-os-hal/src/hal/dummy/usb.rs:124
↓ 5 callersFunctioninit
()
src/ariel-os-rt/src/lib.rs:126
↓ 5 callersFunctioninit_sensor
(sht3x: &'static Aht20<I2cDeviceMock>)
src/sensors/ariel-os-sensor-aht20/src/i2c.rs:615
↓ 5 callersFunctioninit_sensor
(stts22h: &'static Stts22h<I2cDeviceMock>)
src/sensors/ariel-os-sensor-stts22h/src/i2c.rs:467
↓ 5 callersFunctioninsert
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 callersMethodis_empty
Determines if this [`ThreadList`] is empty.
src/ariel-os-threads/src/threadlist.rs:108
↓ 5 callersFunctionis_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 callersFunctionlock
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 callersMethodnext
(self)
src/ariel-os-nrf/src/spi/main/mod.rs:80
↓ 5 callersMethodrender
( self, msg: &mut M, )
src/lib/coapcore/src/seccontext.rs:1014
↓ 5 callersMethodreset
Soft resets the device. # Errors - When the I2C connection fails.
src/sensors/ariel-os-sensor-aht20/src/i2c.rs:125
↓ 5 callersMethodrun
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 callersMethodrun
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 callersMethodsample
(&self)
src/ariel-os-sensors/src/sensor/samples.rs:160
↓ 5 callersFunctionsockaddr_nal2smol
(sockaddr: SocketAddr)
src/ariel-os-coap/src/udp_nal/util.rs:17
↓ 5 callersMethodtouch
(&mut self, position: usize)
src/lib/coapcore/src/oluru.rs:240
next →1–100 of 1,194, ranked by callers