Module kernel::services::emb_display
source · Expand description
[embedded-graphics
] display driver
This is an early attempt at a “frame buffer” style display driver.
This implementation is sort of a work in progress, it isn’t really a great long-term solution, but rather “okay for now”.
A framebuffer of pixels is allocated for the entire display on registration. This could be, for example, 400x240 pixels.
The driver will then allow for a certain number of “sub frames” to be requested.
These sub frames could be for the entire display (400x240), or a portion of it, for example 200x120 pixels.
Clients of the driver can draw into the sub-frames that they receive, then send them back to be rendered into the total frame. Any data in the client’s sub-frame will replace the current contents of the whole frame buffer.
The current server assumes 8 bits per pixel, which is implementation defined for color/greyscale format (sorry).
Structs
- Client interface to
EmbDisplayService
. - Registered driver type for the
EmbDisplay
service. - FrameChunk is recieved after client has sent a request for one
Enums
- These are all of the possible requests from client to server