#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_modbus_frame_coils(
frame: *const PamojaModbusFrame,
count: u16,
out_buffer: *mut *mut PamojaBuffer,
) -> PamojaStatusExpand description
Reads the coils or discrete inputs out of a read-bits response.
§Returns
PamojaStatus::Ok on success, with *out_buffer set to a new buffer handle
holding one byte per coil, 1 for on and 0 for off, which the caller must
release with pamoja_buffer_free, or
PamojaStatus::Codec if the response does not carry count bits.
§Safety
frame must be a live handle from pamoja_modbus_frame_parse or null, and
out_buffer must point to a writable *mut PamojaBuffer.