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

info(t()) :: {:ok, t()} | {:error, term()}

Given an open framebuffer, refresh its fixed and variable device information.

Arguments

parameterrequireddefault
framebuffertrue
Link to this function

open(device \\ "/dev/fb0")

View Source

Specs

open(device_t()) :: {:ok, t()} | {:error, term()}

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

parameterrequireddefault
devicefalse/dev/fb0