Skip to main content

pamoja_pwm_counts

Function pamoja_pwm_counts 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_pwm_counts( pwm: PamojaPwm, out_on: *mut u16, out_off: *mut u16, ) -> PamojaStatus
Expand description

Reads a PCA9685 setting back from the four register bytes a channel holds.

§Returns

PamojaStatus::Ok on success, with *out_on and *out_off set to the counts the registers hold, the full-on and full-off flags included.

§Safety

out_on and out_off must each point to a writable uint16_t.