2021-02-17 | Paul Boddie | file changeset files shortlog | Added some measurements to investigate peripheral behaviour. | letux400-i2c-state-machine |
paul@111 | 1 | #include <l4/devices/protocols.h> |
paul@111 | 2 | #include <stdint.h> |
paul@111 | 3 | |
paul@111 | 4 | /* A PWM interface. PWM devices may also support the Activation interface. */ |
paul@111 | 5 | |
paul@111 | 6 | [protocol(LANDFALL_PWM)] |
paul@111 | 7 | interface PWM |
paul@111 | 8 | { |
paul@111 | 9 | void set_control(in uint8_t control); |
paul@111 | 10 | |
paul@111 | 11 | void set_duty(in uint16_t duty); |
paul@111 | 12 | |
paul@111 | 13 | void set_period(in uint16_t period); |
paul@111 | 14 | }; |