30.10.2014 Views

o_195h4n6al16jb186b1b2qs7fgssa.pdf

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

is given as a parameter. The argument pmust be the address of an<br />

object in an EE data, PSV or executable memory space; otherwise an<br />

error message is produced and the compilation fails. See the space<br />

attribute in the MPLAB®<br />

C30 C Compiler User’s Guide.<br />

Prototype: unsigned int __builtin_psvpage(const void *p);<br />

Argument: p object address<br />

Return Value: Returns the psv page number of the object whose address is given<br />

as a<br />

parameter.<br />

Assembler<br />

Operator / Machine<br />

Instruction:<br />

psvpage<br />

MPLAB C30 Built-in Functions<br />

2004 Microchip Technology Inc. DS51456B-page 379<br />

5.3 BUILT-IN FUNCTION ERROR MESSAGES<br />

The following error messages are produced when the built-in functions are used<br />

incorrectly.<br />

Argument to __builtin_function() is not the address of an object in<br />

code, psv, or eedata section<br />

The argument to the following built-in functions must be an explicit object<br />

address:<br />

• __builtin_tblpage<br />

• __builtin_tbloffset<br />

• __builtin_psvpage<br />

• __builtin_psvoffset<br />

For example, if objis object in an executable or read-only section, the following<br />

syntax<br />

is valid:<br />

unsigned page = __builtin_function(&obj);<br />

__builtin_psvoffset<br />

Description: The function returns the psv page offset of the object whose<br />

address is<br />

given as a parameter. The argument pmust be the address of an<br />

object in an EE data, PSV or executable memory space; otherwise an<br />

error message is produced and the compilation fails. See the space<br />

attribute in the MPLAB®<br />

C30 C Compiler User’s Guide.<br />

Prototype: unsigned int __builtin_psvoffset(const void *p);<br />

Argument: p object address<br />

Ví dụ sử dụng ............................................... 101<br />

Mở ................................................. ................ 96<br />

Đọc ................................................. ................ 99<br />

Thiết lập kênh ................................................ ...... 99<br />

Thiết lập ngắt PriorityMacro ............................. 100<br />

Bắt đầu chuyển đổi ............................................... 96<br />

Dừng lấy mẫu ................................................ 99 ...<br />

Cấp phát bộ nhớ ................................................ 284 ....<br />

calloc ................................................. .............. 278<br />

Miễn phí ................................................. ................ 281<br />

realloc ................................................. ............ 287<br />

Ký tự chữ cái<br />

Xác định ................................................. ........... 196<br />

Kiểm tra cho ................................................ ............ 196<br />

Kí tự<br />

Xác định ................................................. ........... 196<br />

Kiểm tra cho ................................................ ............ 196<br />

AM / PM ............................................... .................... 323<br />

Nối ................................................. .......... 300, 306<br />

arccosine<br />

Đôi Floating Point ...................................... 325<br />

Độc Floating Point ....................................... 326<br />

arcsine<br />

Đôi Floating Point ...................................... 327<br />

Độc Floating Point ....................................... 327<br />

arctangent<br />

Đôi Floating Point ...................................... 328<br />

Độc Floating Point ....................................... 329<br />

dsPIC<br />

®<br />

Thư viện Công cụ Ngôn ngữ<br />

DS51456B trang 384 2004 Microchip Technology Inc<br />

arctangent của y / x<br />

Đôi Floating Point ...................................... 329<br />

Độc Floating Point ....................................... 331<br />

Danh sách tham số .................................. 221, 267, 268, 269<br />

Thông báo lỗi số học ....................................... 216<br />

ASCII Character Set ............................................... 381<br />

asctime ................................................. .................. 318

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!