Skip to main content

pamoja_modbus_read_holding_registers_reply

Function pamoja_modbus_read_holding_registers_reply 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_modbus_read_holding_registers_reply( address: u8, values: *const u16, values_len: usize, out_buffer: *mut *mut PamojaBuffer, ) -> PamojaStatus
Expand description

Builds the reply a device sends to a read-holding-registers request.

§Returns

PamojaStatus::Ok on success, with *out_buffer set to a new buffer handle holding the frame.

§Safety

values must point to at least values_len readable uint16_t, and out_buffer to a writable *mut PamojaBuffer.