2ndhandscope
Newbie level 4
- Joined
- Oct 15, 2012
- Messages
- 7
- Helped
- 1
- Reputation
- 2
- Reaction score
- 1
- Trophy points
- 1,283
- Activity points
- 1,326
Long story short, I was looking for a pdf of PIC32 peripheral libary for XC32 compiler because that was what I installed. Then I found out that Microchip didn't make pdf anymore, instead they put CHM files in the pic32-lib-help directory.
Ok, that's fine, but I notice the APIs are different from the C32 counterpart. If that is the case, then code written for C32 won't work on XC32 ??
Examples, from C32 - Uart
has some functions like :
But XC32 only has these:
Ok, that's fine, but I notice the APIs are different from the C32 counterpart. If that is the case, then code written for C32 won't work on XC32 ??
Examples, from C32 - Uart
has some functions like :
Code:
BusyUART1
BusyUART2
CloseUART1
CloseUART2
etc...
But XC32 only has these:
Code:
Configuration
Name Description
UARTConfigure UART module configuration routine.
UARTSetAddress Routine to program the address for which the UART module may watch.
UARTSetFifoMode Controls UART module TX and RX FIFO operation.
UARTSetDataRate Routine to set the UART module's desired data data rate.
UARTSetLineControl Routine to set the UART module's desired line control parameters.
Control
Name Description
UARTEnable Enables or disables the given UART module in the desired mode.
UARTWatchForAddress Routine to enable or disable recognition of the programmed address byte.
UARTStartAutoDataRateDetect Routine to automatically determine the data rate (bits-per-second) of an external transmitter to the UART.
UARTSendBreak Routine to send a break signal from the UART.
Data Transfer
Name Description
UARTGetData Routine to get data received by the UART.
UARTSendData Routine to send data through the UART.
UARTGetDataByte Routine to get a byte of data received by the UART.
UARTSendDataByte Routine to send a byte of data.
Status
Name Description
UARTGetLineStatus Provides current UART line status.
UARTReceivedDataIsAvailable Routine to detect if the receiver has data available.
UARTTransmissionHasCompleted Routine to detect if the UART module has finshed transmitting the most recent data.
UARTTransmitterIsReady Routine to detect if the transmitter is ready to accept data to transmit.
UARTDataRateDetected Routine to identify when automatic data rate detection has completed.
UARTGetDataRate Routine to get the UART module's current data data rate.