Renesas Single-Chip Microcomputer M38C89T-ADF Manuel d'utilisateur Page 104

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 138
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 103
Rev.1.00 May 22 2012
REJ09B0566
4-84
Library Reference
4.2.9 40BSerial Communication Interface R_SCI_Send
4
3)
R_SCI_Send
Synopsis
Send a string of characters.
Prototype
bool R_SCI_Send(
uint8_t data1, // Channel selection
uint8_t data1, // DMA Channel selection
uint8_t * data2, // Pointer to transmit data
uint8_t data3, // Channel configuration
void * func // Callback function
);
Description
Transmit characters on the specified serial channel.
[data1]
Select channel SCIFn (where n = 0 to 7).
[data2]
A string of 8-bit values, ending in 0 (null).
[data3]
Control the generation of a break signal at the end of transmission.
PDL_SCI_IDLE or
PDL_SCI_BREAK
Select an Idle (normal) or
Break signal to be output when all data has been sent.
[func]
The function to be called when the last byte has been sent.
Use R_SCI_Stop to terminate this operation early.
R_SCI_GetStatus can be used to find out how many characters have been transmitted.
Specify PDL_NO_FUNC for this function to wait until the last byte has been sent.
Return value True if all parameters are valid and the operation completed;
False if a parameter was out of range or if the channel was already transmitting.
Category
SCI
Reference
R_SCI_Create, R_SCI_Destroy, R_SCI_Stop, R_SCI_GetStatus
Remarks The compiler adds a null character to the end of string constants.
If a callback function is specified, transmission interrupts are used.
Please see the notes on callback function usage
If no callback function is specified, this function will monitor the TXI and TEND flags to manage the data
transmission. If the SCI channels control registers are directly modified by the user, this function may
lock up.
If a Break signal is selected, it will be cleared when more data is transmitted or R_SCI_Destroy is called.
The count of transmitted characters will loop back to 0 after 255 have been sent.
A callback function is executed by the interrupt processing function. This means that no other interrupt
can be processed until the callback function has completed.
Vue de la page 103
1 2 ... 99 100 101 102 103 104 105 106 107 108 109 ... 137 138

Commentaires sur ces manuels

Pas de commentaire