expose pca954x_select api #167
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: M-Labs/artiq-zynq#167
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "mwojcik/artiq-zynq:pca954x_select_api"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
PR accompanying to ARTIQ's PCA954X support (#1860).
Needs more testing still. Doesn't seem to work (testing on a crate with Urukuls, getting PLL lock timeout even after changing), and not sure if it's because of Urukul cards or something else.
Urukul PLLs don't have to do with I2C.
Oh. Yeah, true, it's only for the EEPROMs for syncing.
...then certainly more checks are necessary, until I can really confirm it working.
@ -63,0 +75,4 @@
0x20 => Some(5),
0x40 => Some(6),
0x80 => Some(7),
_ => { artiq_raise!("I2CError", "switch select supports only one channel"); return }
return is not needed I think?
@ -63,0 +64,4 @@
if busno > 0 {
artiq_raise!("I2CError", "I2C bus could not be accessed");
}
unsafe {
At least the match statement does not need to be in unsafe.
[wip] expose pca954x_select apito expose pca954x_select api