Renesas M3T-MR100 Manuel d'utilisateur Page 209

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 304
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 208
- 195 -
[
[
[
[
F
F
u
u
n
n
c
c
t
t
i
i
o
o
n
n
a
a
l
l
d
d
e
e
s
s
c
c
r
r
i
i
p
p
t
t
i
i
o
o
n
n
]
]
]
]
This service call returns various statuses of the Short data queue indicated by vdtqid.
stskid
Returned to stskid is the ID number of the task at the top of a transmission waiting queue (the next task to be de-
queued). If no tasks are kept waiting, TSK_NONE is returned.
wtskid
Returned to wtskid is the ID number of the task at the top of a reception waiting queue (the next task to be de-
queued). If no tasks are kept waiting, TSK_NONE is returned.
sdtqcnt
Returned to sdtqcnt is the number of data bytes stored in the Short data queue area.
If this service call is to be issued from task context, use ref_dtq; if issued from non-task context, use iref_dtq.
[
[
[
[
E
E
x
x
a
a
m
m
p
p
l
l
e
e
p
p
r
r
o
o
g
g
r
r
a
a
m
m
s
s
t
t
a
a
t
t
e
e
m
m
e
e
n
n
t
t
]
]
]
]
<<Example statement in C language>>
#include <itron.h>
#include <kernel.h>
#include “kernel_id.h”
void task()
{
T_RDTQ rdtq;
ER ercd;
:
ercd = vref_dtq( ID_DTQ1, &rdtq );
:
}
<<Example statement in assembly language>>
.include mr100.inc
_ refdtq: .blkb 8
.GLB task
task:
:
PUSH.W R2
PUSH.L A1
vref_dtq #ID_DTQ1,#_refdtq
:
Vue de la page 208
1 2 ... 204 205 206 207 208 209 210 211 212 213 214 ... 303 304

Commentaires sur ces manuels

Pas de commentaire