FuriThreadStdinReadCallback

Type Alias FuriThreadStdinReadCallback 

Source
pub type FuriThreadStdinReadCallback = Option<unsafe extern "C" fn(buffer: *mut c_char, size: usize, timeout: FuriWait, context: *mut c_void) -> usize>;
Expand description

Standard input callback function pointer type

The function to be used as a standard input callback MUST follow this signature.

§Arguments

  • buffer (direction out) - buffer to read data into
  • size (direction in) - maximum number of bytes to read into the buffer
  • timeout (direction in) - how long to wait for (in ticks) before giving up
  • context (direction in) - optional context

§Returns

number of bytes that was actually read into the buffer

Aliased Type§

pub enum FuriThreadStdinReadCallback {
    None,
    Some(unsafe extern "C" fn(*mut u8, usize, FuriWait, *mut c_void) -> usize),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut u8, usize, FuriWait, *mut c_void) -> usize)

Some value of type T.