pub fn lf_push<'a, T: LfReturnable>(module: &'a ModuleFFI, index: u8, data: &[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_push(module.as_ptr(), index, data.as_ptr() as *const c_void, data.len() as u32, arglist);
        T::from(LfReturn(ret))
    }
}
/// Invokes a remote function call to a Flipper device, passing a buffer of
/// data with it.
///
/// 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, passing a buffer of
data with it.

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 passing a buffer of data with it . 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_push<'a, T: LfReturnable>(module: &'a ModuleFFI, index: u8, data: &[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_push(module.as_ptr(), index, data.as_ptr() as *const c_void, data.len() as u32, arglist);
        T::from(LfReturn(ret))
    }
}
pub fn lf_push < ' a , T : LfReturnable > ( module : & ' a ModuleFFI , index : u8 , data : & [ 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_push ( module . as_ptr ( ) , index , data . as_ptr ( ) as * const c_void , data . len ( ) as u32 , arglist ) ; T :: from ( LfReturn ( ret ) ) } }
Invokes a remote function call to a Flipper device, passing a buffer of
data with it.
Invokes a remote function call to a Flipper device passing a buffer of data with it .
module
&'a ModuleFFI
index
u8
data
&[u8]
args
Args
module
&'a ModuleFFI
index
u8
data
&[u8]
args
Args