|
Ersa Wearable Platform
Embedded smartwatch firmware and application framework
|
#include <apple_media.h>
Public Member Functions | |
| bool | update (const uint8_t *bytes, size_t length) |
Public Attributes | |
| char | title [32] {} |
| char | artist [32] {} |
| bool | playing {false} |
Decoded AMS media state independent from BLE transport and device hardware. A protocol adapter parses notifications into this value, then the companion source publishes a semantic media update. Keeping parsing here allows the exact same byte handling to run in host tests and in the firmware.
|
inline |
Apply one AMS Entity Update notification.
| bytes | Notification payload beginning with entity/attribute IDs. |
| length | Number of valid bytes in bytes. |
| char ersa::protocols::AmsMedia::artist[32] {} |
Current artist name, truncated and null-terminated.
| bool ersa::protocols::AmsMedia::playing {false} |
Whether the player reports playback rather than paused/stopped state.
| char ersa::protocols::AmsMedia::title[32] {} |
Current title, truncated and null-terminated to fixed embedded storage.