DigitalSensors (Emulated GPIO) development in M2M commboard
Southbound functions to be developed
result emu_gpio_config(Signal, HW-Parse, Mode, Pull, Timming)
Inputs
Output
Change the mode of a PIN. It is called from config and form read_write
result emu_gpio_set_mode(Signal, Mode)
Inputs
result emu_gpio_read_write(id_sensor, Stream_CS, Stream_SDI, Stream_SDO, Stream_SCK)
Inputs
- 1 / 0 : Write 1 or 0
- X : Leave the pin as it is
- R : Read the pin Examples of Stream: "1100", "XXX1", "1RRR". Each character takes a period of the signal.
Output
These function(s) should be developed in the file southbound_ec.c
The main three functions of this development should be called from main.c with different options in order to demonstrate its behaviour and ease the testing.
Structures to be used and examples:
TODO By Francis