Electronic Components Datasheet Search
  English  ▼

X  

UM0851 Datasheet(PDF) 196 Page - STMicroelectronics

Part # UM0851
Description  SPEAr is a family of highly customizable ARM-based embedded
PDF  245 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

UM0851 Datasheet(HTML) 196 Page - STMicroelectronics

Back Button UM0851 Datasheet HTML 192Page - STMicroelectronics UM0851 Datasheet HTML 193Page - STMicroelectronics UM0851 Datasheet HTML 194Page - STMicroelectronics UM0851 Datasheet HTML 195Page - STMicroelectronics UM0851 Datasheet HTML 196Page - STMicroelectronics UM0851 Datasheet HTML 197Page - STMicroelectronics UM0851 Datasheet HTML 198Page - STMicroelectronics UM0851 Datasheet HTML 199Page - STMicroelectronics UM0851 Datasheet HTML 200Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 196 / 245 page
background image
Audio/video drivers
UM0851
196/245
Doc ID 16604 Rev 2
hold a pixel, pixclock, HSYNC duration, VSYNC duration, and margin lengths. These
values are user programmable:
struct fb_var_screeninfo {
__u32 xres; /* Visible resolution in the X axis */
__u32 yres; /* Visible resolution in the Y axis */
/* ... */
__u32 bits_per_pixel; /* Number of bits required to hold a pixel */
/* ... */
__u32 pixclock;
/* Pixel clock in picoseconds */
__u32 left_margin;
/* Time from sync to picture */
__u32 right_margin; /* Time from picture to sync */
/* ... */
__u32 hsync_len; /* Length of horizontal sync */
__u32 vsync_len; /* Length of vertical sync */
/* ... */
};
2.
Fixed information about the video hardware, such as the start address and size of
frame buffer memory, is held in struct fb_fix_screeninfo. These values cannot be
altered by the user:
struct fb_fix_screeninfo {
char id[16]; /* Identification string */
unsigned long smem_start; /* Start of frame buffer memory */
__u32 smem_len; /* Length of frame buffer memory */
/* ... */
};
3.
The struct fb_cmap specifies the color map, which is used to convey the user's
definition of colors to the underlying video hardware. You can use this structure to
define the RGB (Red, Green, and Blue) ratio that you desire for different colors: Device
independent color-map information. You can get and set the color-map using the
FBIOGETCMAP and FBIOPUTCMAP ioctls:
struct fb_cmap {
__u32 start; /* First entry */
__u32 len;/* Number of entries */
__u16 *red; /* Red values */
__u16 *green; /* Green values */
__u16 *blue; /* Blue values */
__u16 *transp; /* Transparency */
};
Sample User application
Using the steps given below, you can prepare a simple user application, which works over
the framebuffer API. The program shows three color bands on the screen by operating on
/dev/fb0, the framebuffer device node corresponding to the display.
After opening the framebuffer device node (/dev/fb0) the program gets the fixed screen and
variable screen information. It first deciphers the visible resolutions and the bits per pixel in a
hardware-independent manner using the framebuffer ioctl FBIOGET_VSCREENINFO. This
interface command obtains the display's variable parameters by operating on the struct
fb_var_screeninfo. The command FB_ACTIVATE_FORCE enables and activates the CLCD
. The program then goes on to mmap () the framebuffer memory and writes color data in
each constituent pixel bit.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com