Skip to main content

pamoja_pca9685_channel_register

Function pamoja_pca9685_channel_register 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_pca9685_channel_register( channel: u8, out_register: *mut u8, ) -> PamojaStatus
Expand description

Returns the first of a PCA9685 channel’s four consecutive registers.

§Returns

PamojaStatus::Ok on success, with *out_register set, or PamojaStatus::InvalidArgument if channel is 16 or above.

§Safety

out_register must point to a writable uint8_t.