[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH v2 2/5] hw/misc/led: Add LED_STATUS_CHANGED QAPI event
From: |
Peter Maydell |
Subject: |
Re: [RFC PATCH v2 2/5] hw/misc/led: Add LED_STATUS_CHANGED QAPI event |
Date: |
Mon, 15 Jun 2020 17:05:49 +0100 |
On Fri, 12 Jun 2020 at 18:54, Philippe Mathieu-Daudé <f4bug@amsat.org> wrote:
>
> Allow LED devices to emit STATUS_CHANGED events on a QMP chardev.
>
> QMP event examples:
>
> {
> "timestamp": {
> "seconds": 1591704274,
> "microseconds": 520850
> },
> "event": "LED_STATUS_CHANGED",
> "data": {
> "name": "Green LED #0",
> "status": "on"
> }
> }
> {
> "timestamp": {
> "seconds": 1591704275,
> "microseconds": 530912
> },
> "event": "LED_STATUS_CHANGED",
> "data": {
> "name": "Green LED #0",
> "status": "off"
> }
> }
Is there a proof-of-concept of what might be on the other end of this
QMP link consuming these events and doing something useful with them?
thanks
-- PMM
- [RFC PATCH v2 0/5] hw/misc: Add LED device, Philippe Mathieu-Daudé, 2020/06/12
- [RFC PATCH v2 2/5] hw/misc/led: Add LED_STATUS_CHANGED QAPI event, Philippe Mathieu-Daudé, 2020/06/12
- Re: [RFC PATCH v2 2/5] hw/misc/led: Add LED_STATUS_CHANGED QAPI event,
Peter Maydell <=
- [RFC PATCH v2 3/5] hw/misc/led: Add create_led_by_gpio_id() helper, Philippe Mathieu-Daudé, 2020/06/12
- [RFC PATCH v2 4/5] hw/arm/microbit: Add a fake LED to use as proof-of-concept with Zephyr, Philippe Mathieu-Daudé, 2020/06/12
- [RFC PATCH v2 5/5] hw/arm/tosa: Use LED device for the Bluetooth led, Philippe Mathieu-Daudé, 2020/06/12