Module utils

Module utils 

Source
Expand description

Utility types and functions for OSAL-RS.

This module contains common types, error definitions, and helper functions used throughout the library.

Structs§

Bytes

Enums§

CpuRegisterSize
CPU register size enumeration.
Error
Error types for OSAL-RS operations.
OsalRsBool
Boolean type compatible with RTOS return values.

Constants§

MAX_DELAY
Maximum delay constant for blocking operations.

Functions§

bytes_to_hex
Converts a byte slice to a hexadecimal string representation.
bytes_to_hex_into_slice
Converts a byte slice to hexadecimal representation into a pre-allocated buffer.
hex_to_bytes
Converts a hexadecimal string to a vector of bytes.
hex_to_bytes_into_slice
Converts a hexadecimal string to bytes into a pre-allocated buffer.
register_bit_size
Determines the CPU register size at compile time.

Type Aliases§

ArcMux
Shortcut for Arc<Mutex>
ConstPtr
Const pointer type for C FFI.
DoublePtr
Pointer to pointer type for C FFI.
Ptr
Mutable pointer type for C FFI.
Result
Standard Result type for OSAL-RS operations.