Just completed the analong input connector CRUD (create, retrive, update, delete) API and UI coding. Here is a run through of the flow:
1) An analog input connector is always associated with a driver capable of analog to digital capability. ph Board is an example. We start with
declaring a new driver. This is reef-pi 3.0 feature, where we are introducing HAL (hardware abstraction layer), aka drivers. This gives builder ability to use multiple pca96985 and other new drivers. Connectors (jacks, inlets,outlets etc) are always associated with a specific driver. Currently rpi, pca9685 drivers are present. I am testing the ph board driver. The new driver (hal) feature allows providing custom configuration for individual drivers as well (for example different pca9685 drivers can have different i2c address and can operate at different pwm frequency). Individual drivers can offer different capabilities (digital in/out, pwm , analog in etc). Among the current drivers only ph board provides analog input capability, we'll need this driver to create an analog input connector.
2) Next we create an analog input connector (physically it can be a panel mount female bnc connector ) and associate it with the ph board driver.
Next I'll work on integrating this connector with the ph subsystem, which is currently using only an i2c address as configuration assuming its an ezo circuit. I'll change the ph module to use an analog input connector instead if i2c value, I'll have to convert the current ezo circuit driver as hal driver as well, to get it working with the new scheme of things,...