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
↓ 5 callers
Method
update
Given a state and an option, produce the next state and whether the option should be counted as consumed for the purpose of assessing .well-known/edch
src/lib/coapcore/src/seccontext.rs:1082
↓ 5 callers
Function
waiter
()
examples/threading-event/src/main.rs:9
↓ 4 callers
Method
acquire
Get this lock (blocking). If the lock was unlocked, it will be locked and the function returns. If the lock was locked, this function will block the
src/ariel-os-threads/src/sync/lock.rs:64
↓ 4 callers
Function
add_custom_filters
(env: &mut Environment)
doc/gen_book.rs:964
↓ 4 callers
Function
ariel_os_crate_or_internal
Returns a [`struct@syn::Ident`] identifying the `ariel-os` dependency, or an (internal) fallback crate that provides the same relevant items. # Panic
src/ariel-os-macros/src/utils.rs:24
↓ 4 callers
Method
bytes
(&self)
src/ariel-os-nrf/src/identity.rs:21
↓ 4 callers
Function
config
()
src/ariel-os-embassy/src/ble.rs:24
↓ 4 callers
Method
corresponding_cown
(&self)
src/lib/coapcore/src/seccontext.rs:146
↓ 4 callers
Function
device
# Panics Panics if we fail to launch the cyw43 runner task.
src/ariel-os-rp/src/cyw43.rs:62
↓ 4 callers
Function
ffs
(val: usize)
src/ariel-os-runqueue/src/runqueue.rs:206
↓ 4 callers
Function
find_crate
Returns a [`struct@syn::Ident`] identifying the `name` dependency (or `None`). # Panics - Panics if `name` is used as a dependency of itself.
src/ariel-os-macros/src/utils.rs:42
↓ 4 callers
Method
interface_eui48
Generates an EUI-48 identifier ("6-byte MAC address") based on the device identity. See `ariel_os::identity::interface_eu48` for details.
src/ariel-os-embassy-common/src/identity.rs:88
↓ 4 callers
Method
is_set
Returns whether the [`Event`] is set.
src/ariel-os-threads/src/sync/event.rs:55
↓ 4 callers
Method
is_valid_tid
Checks if a thread with valid state exists for this `thread_id`.
src/ariel-os-threads/src/lib.rs:260
↓ 4 callers
Method
must_spawn
(&self, _token: SpawnToken<S>)
src/ariel-os-hal/src/hal/dummy/executor.rs:37
↓ 4 callers
Method
notify_one
Notify one waiter.
src/ariel-os-threads/src/sync/wait_queue.rs:114
↓ 4 callers
Method
release
Releases the lock. If the lock was locked, and there were waiters, the first waiter will be woken up. If the lock was locked and there were no waiter
src/ariel-os-threads/src/sync/lock.rs:99
↓ 4 callers
Function
report_usage
(label: &str)
tests/stack-painting/src/main.rs:28
↓ 4 callers
Function
schedule_on_core
Triggers the scheduler on core `id`.
src/ariel-os-threads/src/smp/mod.rs:96
↓ 4 callers
Method
send
Send on the channel (blocking). If there is no receiver waiting yet, the current thread is suspended until a receiver is ready. # Panics Panics if
src/ariel-os-threads/src/sync/channel.rs:49
↓ 4 callers
Function
settings_from_env
()
scripts/editor-config.rs:367
↓ 4 callers
Function
sp
Returns the current `SP` register value.
src/ariel-os-rt/src/riscv.rs:18
↓ 4 callers
Function
startup
()
src/ariel-os-rt/src/lib.rs:158
↓ 4 callers
Function
wait_any
Waits until any flag in `mask` is set for the current thread. Returns all set flags for this mask and clears them for the thread. # Panics Panics i
src/ariel-os-threads/src/thread_flags.rs:51
↓ 3 callers
Method
add_current_thread_to_rq
(&mut self)
src/ariel-os-threads/src/lib.rs:422
↓ 3 callers
Method
as_name
(self)
src/ariel-os-macros/src/config.rs:156
↓ 3 callers
Function
benchmark
(iterations: usize, mut f: F)
src/ariel-os-bench/src/esp.rs:6
↓ 3 callers
Function
convert_gnss_config
(config: &Config)
src/sensors/ariel-os-sensor-nrf91-gnss/src/config.rs:34
↓ 3 callers
Function
create_raw
( func: fn(), arg: Option<usize>, stack: &'static mut [u8], prio: u8, core_affinity: Optio
src/ariel-os-threads/src/lib.rs:682
↓ 3 callers
Function
current_stack_limits
Returns the current thread's stack limits (lowest, highest).
src/ariel-os-threads/src/lib.rs:826
↓ 3 callers
Function
driver
(peripherals: Peripherals)
src/ariel-os-esp/src/usb/mod.rs:24
↓ 3 callers
Method
flush
(&self)
src/ariel-os-log/src/log_logger.rs:78
↓ 3 callers
Method
force_insert
Inserts an element without regard for its level. The element is inserted unconditionally, and the least priority element is returned by value.
src/lib/coapcore/src/oluru.rs:220
↓ 3 callers
Function
gen_board_functionalities
(matrix: &schema::Matrix)
doc/gen_book.rs:680
↓ 3 callers
Function
generate_aai_mac_address
( truncated_board_hash: [u8; 6], device_id_bytes: impl AsRef<[u8]>, if_index: u32, )
src/ariel-os-embassy-common/src/identity.rs:132
↓ 3 callers
Function
get_ble_host_resources
Initializes the BLE host resources. Call this function to get the `HostResources` instance that can be used to initialize the trouBLE stack.
src/ariel-os-embassy-common/src/ble.rs:25
↓ 3 callers
Method
get_mut_async
Gets the contents of this [`SameExecutorCell`] exclusively from an exclusive reference. Despite being async, this function never blocks/yields, it re
src/ariel-os-embassy-common/src/cell.rs:83
↓ 3 callers
Method
get_next_tid
(&mut self)
src/ariel-os-threads/src/lib.rs:445
↓ 3 callers
Method
get_next_with_rq
(&self)
src/ariel-os-runqueue/src/runqueue.rs:129
↓ 3 callers
Function
get_priority
Returns the priority of a thread. Returns `None` if this is not a valid thread.
src/ariel-os-threads/src/lib.rs:814
↓ 3 callers
Function
init_task
(mut peripherals: hal::OptionalPeripherals)
src/ariel-os-embassy/src/lib.rs:201
↓ 3 callers
Method
input_path
(&self)
doc/gen_book.rs:37
↓ 3 callers
Method
into_hal_peripheral
(self)
src/ariel-os-hal/src/hal/dummy/peripheral.rs:36
↓ 3 callers
Method
is_empty
Checks if a runqueue is empty.
src/ariel-os-runqueue/src/runqueue.rs:181
↓ 3 callers
Function
is_in_current_contexts
Returns whether any of the current `cfg` contexts is one of the given contexts.
src/ariel-os-rp/build.rs:31
↓ 3 callers
Method
iter_from
( &self, start: ThreadId, rq: RunqueueId, )
src/ariel-os-runqueue/src/runqueue.rs:190
↓ 3 callers
Method
iter_mut
(&mut self)
examples/usb-keyboard/src/main.rs:123
↓ 3 callers
Method
khz
(self)
src/ariel-os-hal/src/hal/dummy/i2c/controller.rs:62
↓ 3 callers
Method
khz
(self)
src/ariel-os-esp/src/i2c/controller/mod.rs:69
↓ 3 callers
Method
label
(&self)
src/ariel-os-sensors-gnss-time-ext/src/lib.rs:280
↓ 3 callers
Method
label
(&self)
src/ariel-os-sensors/src/sensor.rs:298
↓ 3 callers
Method
lookup
Iterate over items from highest priority to lowest, most recently used first. If the function `f_test` (which receives a shared reference to the entr
src/lib/coapcore/src/oluru.rs:153
↓ 3 callers
Method
nosec_authorization
(&self)
src/lib/coapcore/src/seccfg.rs:187
↓ 3 callers
Method
recv
Receive on the channel (blocking). If there is no sender waiting yet, the current thread is suspended until a sender is ready. # Panics Panics if t
src/ariel-os-threads/src/sync/channel.rs:125
↓ 3 callers
Method
schedule_if_higher_prio
Triggers the scheduler if the thread has a higher priority than (one of) the running thread(s).
src/ariel-os-threads/src/lib.rs:384
↓ 3 callers
Method
sensors
(&self)
src/ariel-os-sensors-registry/src/lib.rs:42
↓ 3 callers
Function
set_deadline
Sets up the deadline timer. Returns true if the deadline was in the future. # Panics - panics when not called from a thread
src/ariel-os-threads/src/timeout.rs:66
↓ 3 callers
Function
set_priority
Changes the priority of a thread. This might trigger a context switch.
src/ariel-os-threads/src/lib.rs:821
↓ 3 callers
Method
stack_paint_init
(&mut self, sp: usize)
src/ariel-os-threads/src/thread.rs:86
↓ 3 callers
Method
start
(&self, _: crate::hal::SWI)
src/ariel-os-hal/src/hal/dummy/executor.rs:17
↓ 3 callers
Function
task_priority
(task: ThreadPtr)
src/ariel-os-esp/src/semaphore.rs:37
↓ 3 callers
Function
test_with_size
(size: u8, n: usize)
src/lib/rbi/src/lib.rs:148
↓ 3 callers
Method
to_microg_from_lsb
(self, lsb: i16)
src/sensors/ariel-os-sensor-lis2du12/src/lib.rs:38
↓ 3 callers
Method
toggle
Toggles the output level.
src/ariel-os-hal/src/gpio.rs:371
↓ 3 callers
Method
try_lock
Attempts to acquire this lock, in a non-blocking fashion. If the mutex was unlocked, it will be locked and a [`MutexGuard`] is returned. If the mutex
src/ariel-os-threads/src/sync/mutex.rs:133
↓ 3 callers
Method
try_send
Try to send on the channel (non-blocking). Returns `true` if a receiver was waiting and received the data, `false` otherwise.
src/ariel-os-threads/src/sync/channel.rs:92
↓ 3 callers
Method
wait_cs
(&self, cs: CriticalSection<'_>)
src/ariel-os-threads/src/sync/wait_queue.rs:39
↓ 2 callers
Method
arm_next_wakeup
Set the next timer wakeup. # Panics - panics if the underlying timer's `schedule()` fails with an unexpected error
src/ariel-os-esp/src/time_driver.rs:54
↓ 2 callers
Function
ble_stack
Returns the system ble stack. # Panics - panics if the stack was already taken - panics when not called from the main executor
src/ariel-os-rp/src/ble.rs:27
↓ 2 callers
Function
calculate_crc
Calculate the CRC of a 5 byte value. The algorithm is described in section 5.4.4 The important information are: - the polynomial: X^8 + X^5 + X^4 + 1,
src/sensors/ariel-os-sensor-aht20/src/lib.rs:121
↓ 2 callers
Function
can_contain
( _: &heapless_for_nrfmodem::Vec<TContained, N_CONTAINED>, )
src/ariel-os-nrf/src/ltem.rs:126
↓ 2 callers
Method
categories
(&self)
src/sensors/ariel-os-sensor-aht20/src/i2c.rs:282
↓ 2 callers
Function
cfg_only_once
(seen: &mut HashSet<String>, cfg: &str)
src/ariel-os-stm32/build.rs:35
↓ 2 callers
Function
clear_deadline
Clears the current thread's deadline timer. Returns true if the deadline had not been reached yet. # Panics - panics when not called from a thread
src/ariel-os-threads/src/timeout.rs:90
↓ 2 callers
Function
coap_client
Returns a CoAP client requester. This asynchronously blocks until [`coap_run()`] has been called (which happens at startup when the corresponding fea
src/ariel-os-coap/src/lib.rs:182
↓ 2 callers
Function
coap_run_impl
Workhorse of [`coap_run`], see there for details. This is a separate function because if that function is not exposed publicly (i.e. when the laze fe
src/ariel-os-coap/src/lib.rs:121
↓ 2 callers
Function
construct_rng
(_peripherals: &mut crate::OptionalPeripherals)
src/ariel-os-esp/src/lib.rs:32
↓ 2 callers
Function
context_any
Returns the first of the given contexts that is in the current `cfg` contexts.
src/ariel-os-rt/build.rs:132
↓ 2 callers
Method
convert_to_samples
( &'static self, data: &nrf_modem::nrfxlib_sys::nrf_modem_gnss_pvt_data_frame, )
src/sensors/ariel-os-sensor-nrf91-gnss/src/lib.rs:262
↓ 2 callers
Method
cown_but_not
Produces a [`COwn`] (as a recipient identifier) that is both available and not equal to the peer's recipient identifier.
src/lib/coapcore/src/seccontext.rs:238
↓ 2 callers
Method
decrypt_symmetric_token
( &self, headers: &HeaderMap<'_>, aad: &[u8], ciphertext_buffer: &'buf mut [u8
src/lib/coapcore/src/seccfg.rs:221
↓ 2 callers
Function
device_id_bytes
Obtains a unique identifier of the device in its byte serialized form. See module level documentation for that identifier's properties. # Errors Th
src/ariel-os-identity/src/lib.rs:44
↓ 2 callers
Function
disable
()
src/ariel-os-nrf/src/ltem.rs:34
↓ 2 callers
Method
display_name
(&self)
src/sensors/ariel-os-sensor-aht20/src/i2c.rs:301
↓ 2 callers
Function
do_something
()
tests/stack-painting/src/main.rs:43
↓ 2 callers
Function
enable
()
src/ariel-os-nrf/src/ltem.rs:41
↓ 2 callers
Function
erase_all
Resets the flash in the entire flash range.
src/ariel-os-storage/src/lib.rs:141
↓ 2 callers
Method
extract_oscore_edhoc
( &mut self, request: &M, oscore_option: &OscoreOption, with_edhoc: bool,
src/lib/coapcore/src/seccontext.rs:428
↓ 2 callers
Function
fast_rng
()
src/ariel-os-random/src/lib.rs:279
↓ 2 callers
Method
fill_bytes
(&mut self, dest: &mut [u8])
src/ariel-os-native/src/hwrng.rs:17
↓ 2 callers
Method
flag_set
thread flags implementation
src/ariel-os-threads/src/thread_flags.rs:101
↓ 2 callers
Method
get
Gets the last stored value from the flash that is associated with the given key. If no value with the key is found, `None` is returned. # Panics Cu
src/ariel-os-storage/src/storage.rs:105
↓ 2 callers
Function
get_element_after_marker
( iter: impl Iterator<Item = (ReadingChannel, Sample)>, marker: Label, position: usize, )
src/ariel-os-sensors-gnss-time-ext/src/lib.rs:204
↓ 2 callers
Function
get_keyboard_report
(keycode: u8)
examples/usb-keyboard/src/main.rs:95
↓ 2 callers
Method
get_mut
Gets the contents of this [`SameExecutorCell`] exclusively from an exclusive reference.
src/ariel-os-embassy-common/src/cell.rs:54
↓ 2 callers
Method
get_pos
(&self, pos: usize)
src/lib/ringbuffer/src/lib.rs:70
↓ 2 callers
Method
get_state
Returns the state of a thread.
src/ariel-os-threads/src/lib.rs:307
↓ 2 callers
Function
init
This module is intended to contain the auto-@generated instantiation and registration of sensor drivers.
examples/sensors-debug/src/sensors.rs:4
↓ 2 callers
Function
init
This module is intended to contain the auto-@generated instantiation and registration of sensor drivers.
examples/thermometer/src/sensors.rs:4
↓ 2 callers
Method
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/storage.rs:87
← previous
next →
101–200 of 1,194, ranked by callers