PCD
SPII_XFER_IN()
Syntax:
Parameters:
Returns:
Function:
Availability:
Requires:
Examples:
Example
Files:
Also See:
sprintf( )
Syntax:
value = spi_xfer_in();
value = spi_xfer_in(bits);
value = spi_xfer_in(stream,bits);
stream – is the SPI stream to use as defined in the STREAM=name option in
#USE SPI.
bits – is how many bits of data to be received.
The data read in from the SPI
Reads data from the SPI, without writing data into the transmit buffer first.
This function is only available on devices with SPI hardware.
#USE SPI, and the option SLAVE is used in #USE SPI to setup PIC as a SPI
slave device.
data_in = spi_xfer_in();
ex_spi_slave.c
#USE SPI, spi_xfer(), spi_prewrite(), spi_init(), spi_speed()
sprintf( string , cstring , values ...);
bytes=sprintf( string , cstring , values ...)
Parameters: string is an array of characters.
cstring is a constant string or an array of characters null terminated.
Values are a list of variables separated by commas. Note that format specifies
do not work in ram band strings.
Returns:
Function:
Bytes is the number of bytes written to string.
This function operates like printf() except that the output is placed into the specified
string. The output string will be terminated with a null. No checking is done to
ensure the string is large enough for the data. See printf() for details on formatting.
Availability: All devices.
Requires:
Examples:
Nothing
char mystring[20];
long mylong;
mylong=1234;
292
相关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