View Source Framebuffer (framebuffer v0.0.1)
Abstraction over Linux framebuffer devices.
Linux headers
Linux documentation
Link to this section Summary
Functions
Given an open framebuffer, refresh its fixed and variable device information.
Opens a framebuffer device and returns an :ok
tuple with a Framebuffer.t/0
including fixed and variable device information and a reference to an open
file descriptor. This file descriptor is kept open for the lifetime of the
reference.
Link to this section Types
Specs
device_t() :: Path.t()
Specs
t() :: %Framebuffer{ fix_screeninfo: Framebuffer.Screeninfo.Fix.t(), ref: reference(), var_screeninfo: Framebuffer.Screeninfo.Var.t() }
Link to this section Functions
Specs
Given an open framebuffer, refresh its fixed and variable device information.
Arguments
parameter | required | default |
---|---|---|
framebuffer | true |
Specs
Opens a framebuffer device and returns an :ok
tuple with a Framebuffer.t/0
including fixed and variable device information and a reference to an open
file descriptor. This file descriptor is kept open for the lifetime of the
reference.
Arguments
parameter | required | default |
---|---|---|
device | false | /dev/fb0 |