/// Invokes a remote function call to a Flipper device, pulling a buffer of
/// data back upon return.
///
/// This is currently only used for certain Standard Modules such as uart0
/// for sending and receiving data over a bus. However, it may be expanded
/// in the future to support user module functions as well.
Invokes a remote function call to a Flipper device, pulling a buffer of
data back upon return.

This is currently only used for certain Standard Modules such as uart0
for sending and receiving data over a bus. However, it may be expanded
in the future to support user module functions as well.
Invokes a remote function call to a Flipper device pulling a buffer of data back upon return . This is currently only used for certain Standard Modules such as uart0 for sending and receiving data over a bus . However it may be expanded in the future to support user module functions as well .
pub fn lf_pull<'a, T: LfReturnable>(module: &'a ModuleFFI, index: u8, buffer: &mut [u8], args: Args) -> T {
    unsafe {
        let mut arglist: *mut _lf_ll = ptr::null_mut();
        for arg in args.iter() {
            libflipper::lf_ll_append(&mut arglist, &arg.0 as *const _lf_arg as *const c_void, ptr::null());
        }
        let ret = libflipper::lf_pull(module.as_ptr(), index, buffer.as_mut_ptr() as *mut c_void, buffer.len() as u32, arglist);
        T::from(LfReturn(ret))
    }
}
pub fn lf_pull < ' a , T : LfReturnable > ( module : & ' a ModuleFFI , index : u8 , buffer : & mut [ u8 ] , args : Args ) -> T { unsafe { let mut arglist : * mut _lf_ll = ptr :: null_mut ( ) ; for arg in args . iter ( ) { libflipper :: lf_ll_append ( & mut arglist , & arg . 0 as * const _lf_arg as * const c_void , ptr :: null ( ) ) ; } let ret = libflipper :: lf_pull ( module . as_ptr ( ) , index , buffer . as_mut_ptr ( ) as * mut c_void , buffer . len ( ) as u32 , arglist ) ; T :: from ( LfReturn ( ret ) ) } }
Invokes a remote function call to a Flipper device, pulling a buffer of
data back upon return.
Invokes a remote function call to a Flipper device pulling a buffer of data back upon return .
module
&'a ModuleFFI
index
u8
buffer
&mut [u8]
args
Args