at91sam9263 ATMEL Corporation, at91sam9263 Datasheet - Page 934

no-image

at91sam9263

Manufacturer Part Number
at91sam9263
Description
At91 Arm Thumb Microcontrollers
Manufacturer
ATMEL Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AT91SAM9263
Manufacturer:
AT
Quantity:
1
Part Number:
at91sam9263-CJ
Manufacturer:
ATMEL
Quantity:
181
Part Number:
at91sam9263-CU
Manufacturer:
ATMEL
Quantity:
132
Part Number:
at91sam9263-EK
Manufacturer:
Atmel
Quantity:
135
Part Number:
at91sam9263B-CU
Manufacturer:
IDT
Quantity:
1 043
Part Number:
at91sam9263B-CU
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
at91sam9263B-CU
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
at91sam9263B-CU-100
Manufacturer:
ATMEL
Quantity:
1 000
Part Number:
at91sam9263B-CU-100
Manufacturer:
ATMEL
Quantity:
3 060
Part Number:
at91sam9263B-CU-100
Manufacturer:
Atmel
Quantity:
10 000
44.4.3
44.4.4
934
AT91SAM9263 Preliminary
Clipped Line Draw
Polygon Fill
This function draws a thick (2 pixels wide) patterned (pixel ON,OFF, ON, OFF…) black line from
start point (startx, starty) to end point (endx, endy). Only the pixels that fall on or within the clip
rectangle boundary are drawn. startx, starty, endx, endy should be in pixel units.
This function fills a polygon with patterned black color. The number of vertices can be a maxi-
mum of 16. x_vertices and y_vertices should be in pixel units.
Void clipped_line_draw(signed long int startx, signed long int starty,
{
while(graphics_control.2DGC_GSR & 3);
graphics_control.2DGC_SBXR = startx;
graphics_control.2DGC_SBYR = starty;
graphics_control.2DGC_TEXR = endx;
graphics_control.2DGC_TEYR = endy;
graphics_control.2DGC_LOR = 0x00; // Select logic operation MOV
graphics_control.2DGC_CSR = 0x00; // Colour black
graphics_control.2DGC_LWR = 0x02; // 2 pixels wide
graphics_control.2DGC_LPR = 0x5555; // Patterned line ON, OFF, ON, OFF …
// set clip rectangle boundary (4,2), (8,2), (4,4), (8,4)
graphics_control.2DGC_CXMINR = 4;
graphics_control.2DGC_CXMAXR = 8;
graphics_control.2DGC_CYMINR = 2;
graphics_control.2DGC_CYMAXR = 4;
graphics_control.2DGC_CCR = 1; // Enable clipping
graphics_control.2DGC_GOR = 0xD5; // Line draw, absolute, no update, 1D
pattern
while(graphics_control.2DGC_GSR & 1);
}
Void polygon_fill(unsigned short *x_vertices, unsigned short *y_vertices,
{
int i;
while(graphics_control.2DGC_GSR & 3);
for(i = 0; i < vertex_count; i++)
{
}
graphics_control.2DGC_VXR[i] = x_vertices;
graphics_control.2DGC_VYR[i] = y_vertices;
x_vertices++;
y_vertices++;
unsigned short pattern, unsigned char vertex_count)
signed long int endx, signed long int endy)
6249D–ATARM–20-Dec-07

Related parts for at91sam9263