Electronic Components Datasheet Search
  English  ▼

X  

UM0851 Datasheet(PDF) 155 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) 155 Page - STMicroelectronics

Back Button UM0851 Datasheet HTML 151Page - STMicroelectronics UM0851 Datasheet HTML 152Page - STMicroelectronics UM0851 Datasheet HTML 153Page - STMicroelectronics UM0851 Datasheet HTML 154Page - STMicroelectronics UM0851 Datasheet HTML 155Page - STMicroelectronics UM0851 Datasheet HTML 156Page - STMicroelectronics UM0851 Datasheet HTML 157Page - STMicroelectronics UM0851 Datasheet HTML 158Page - STMicroelectronics UM0851 Datasheet HTML 159Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 155 / 245 page
background image
UM0851
Accelerator engine device drivers
Doc ID 16604 Rev 2
155/245
29 fb
89 i2c
90 mtd
128 ptm
136 pts
180 usb
189 usb_device
206 osst
250 usb_endpoint
251 C3
252 spear-jpeg
254 rtc
Block devices:
1 ramdisk
31 mtdblock
After obtaining the major number of the JPEG device, create JPEG nodes using the
following commands:
mknod /dev/jpegread c major 0
mknod /dev/jpegwrite c major 1
Here,
major: is major number allocated to JPEG
These user level nodes are used for any further interaction with the JPEG driver. The
following steps illustrate how to do encoding/decoding with JPEG.
Open JPEG nodes
After creating JPEG read and write nodes, the application should open them. Use the
following system call to open JPEG nodes:
rfd = open("/dev/jpegread", O_RDWR | O_SYNC);
wfd = open("/dev/jpegwrite", O_RDWR | O_SYNC);
O_RDWR access permission is used to get read/write permissions.
O_SYNC access permission is used for synchronous I/O. Any writes on the resulting
file descriptor will block the calling process until the data has been physically
written to the underlying hardware. MMap function used later will give uncached
memory if this flag is used, otherwise data consistency issues will occur.
Rfd & wfd: are read and write file descriptors used to further communicate with jpeg
nodes.
JPEG nodes can be opened by only one application at a time, thus it can’t be shared. On
success, positive file descriptors are returned, otherwise on error, -1 is returned and errno is
set appropriately. These file descriptors can be used for any further communication with the
JPEG device.
Set source image size
The JPEG driver must be told in advance the size of the input data (required by hardware).
Use the following system call to set the input data size:
ioctl(wfd, JPEGIOC_SET_SRC_IMG_SIZE, size);
wfd: file descriptor of jpeg write node.
JPEGIOC_SET_SRC_IMG_SIZE: ioctl command for setting input data size.
size: size of source image in bytes.



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