PCD
Returns:
Function:
Availability:
Requires:
Examples:
Example
Files:
Also See:
Result is a floating point number
Converts the string passed to the function into a floating point
representation. If the result cannot be represented, the behavior is
undefined.
All devices
#INCLUDE <stdlib.h>
char string [10];
float x;
strcpy (string, "123.456");
x = atof(string);
// x is now 123.456
atoi(), atol(), atoi32(), printf()
pin_select()
Syntax:
pin_select( peripheral _ pin , pin , [ unlock ], [lock ])
Parameters: periphera l_pin – a constant string specifying which peripheral pin to map the
specified pin to. Refer to #pin_select for all available strings. Using “NULL” for the
peripheral_pin parameter will unassign the output peripheral pin that is currently
assigned to the pin passed for the pin parameter.
pin – the pin to map to the specified peripheral pin. Refer to device's header file
for pin defines. If the peripheral_pin parameter is an input, passing FALSE for the
pin parameter will unassign the pin that is currently assigned to that peripheral pin.
unlock – optional parameter specifying whether to perform an unlock sequence
before writing the RPINRx or RPORx register register determined by
peripheral_pin and pin options. Default is TRUE if not specified. The unlock
sequence must be performed to allow writes to the RPINRx and RPORx registers.
This option allows calling pin_select() multiple times without performing an unlock
sequence each time.
lock – optional parameter specifying whether to perform a lock sequence after
writing the RPINRx or RPORx registers. Default is TRUE if not specified.
Although not necessary it is a good idea to lock the RPINRx and RPORx registers
from writes after all pins have been mapped. This option allows calling
pin_select() multiple times without performing a lock sequence each time.
Returns:
150
Nothing.
相关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