Built-in Functions
va_start
Syntax:
va_start( argptr , variable )
Parameters: argpt r is a special argument pointer of type va_list
variable – The second parameter to va_start() is the name of the last parameter
before the variable-argument list.
Returns:
Function:
Availability:
Requires:
Examples:
None
The function will initialize the argptr using a call to the macro va_start().
All devices.
#INCLUDE <stdarg.h>
int foo(int num, ...)
{
int sum = 0;
int i;
va_list argptr;
// create special argument pointer
va_start(argptr,num);
// initialize argptr
for(i=0; i<num; i++)
sum = sum + va_arg(argptr, int);
va_end(argptr);
return sum;
}
// end variable processing
Example
Files:
Also See:
None
nargs(), va_start(), va_arg()
write_bank( )
Syntax:
write_bank ( bank , offset , value )
Parameters: bank is the physical RAM bank 1-3 (depending on the device)
offset is the offset into user RAM for that bank (starts at 0)
value is the 8 bit data to write
Returns:
Function:
undefined
Write a data byte to the user RAM area of the specified memory bank. This
function may be used on some devices where full RAM access by auto variables is
not efficient. For example on the PIC16C57 chip setting the pointer size to 5 bits
will generate the most efficient ROM code however auto variables can not be
above 1Fh. Instead of going to 8 bit pointers you can save ROM by using this
305
相关PDF资料
PCI-EXP-T42G5-N1 IP CORE PCI EXPRESS ORCA 4
PCM18XH2 PROCESSOR MODULE MPLAB-ICE 2000
PCM18XN0 PROCESSOR MODULE FOR ICE2000
PDA-B-24-615-E-2B1-1-C CIRCUIT BREAKER MAG 1P 15A
PFMF.260.2 PFMF PTC FUSE SMT 2.6A 1812
PFNF.200.2 PFNF PTC FUSE SMT 2A 1206
PFRY.375 PTC-FUSE RADIAL 72 VDC
PFSM.150.33.2 FUSE PTC 8A 15V FST-TRIP SMD
相关代理商/技术参数
PCD_09 制造商:MACOM 制造商全称:Tyco Electronics 功能描述:Low Profile PCB Relay PCD
PCD-00173-0C 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY
PCD-00173-0E 制造商:Molex 功能描述:Ethernet Cable Assembly
PCD-00173-0H 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY
PCD-00173-0K 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY
PCD-00174-0C 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY; Cable Length - Imperial:3ft; Cable Length - Metric:914.4mm; Connector Type A:RJ45 Plug; Connector Type B:RJ45 Plug; Jacket Color:Red; Approval Bodies:CSA / UL; Body Material:PVC; Cable Assembly Type:Ethernet ;RoHS Compliant: NA
PCD-00174-0E 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY; Cable Length - Imperial:3ft; Cable Length - Metric:914.4mm; Connector Type A:RJ45 Plug; Connector Type B:RJ45 Plug; Jacket Color:Grey; Approval Bodies:CSA / UL; Body Material:PVC; Cable Assembly Type:Ethernet;RoHS Compliant: NA
PCD-00174-0H 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY