#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_spi_mode_cpol_cpha(
mode: u8,
out_cpol: *mut bool,
out_cpha: *mut bool,
) -> PamojaStatusExpand description
Returns the (CPOL, CPHA) pair an SPI mode number names.
§Returns
PamojaStatus::Ok on success, with *out_cpol set to whether the clock
idles high and *out_cpha to whether data is sampled on the trailing edge, or
PamojaStatus::InvalidArgument if mode is above 3.
§Safety
out_cpol and out_cpha must each point to a writable bool.