<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span><br></span></div><div><br></div><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><font size="2" face="Arial"><hr size="1"><b><span style="font-weight:bold;">От:</span></b> Cláudio Silva <claudiodcsilva@gmail.com><br><b><span style="font-weight: bold;">Кому:</span></b> Oleg Moroz <oleg_moroz@yahoo.com><br><b><span style="font-weight: bold;">Отправлено:</span></b> понедельник, 12 сентября 2011 14:43<br><b><span style="font-weight: bold;">Тема:</span></b> Re: Отв.: 1553b using.<br></font><br></div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;" class="yui_3_2_0_20_131582315520757"><br></div><div
 style="font-family: times new roman, new york, times, serif; font-size: 12pt;" class="yui_3_2_0_20_131582315520757"><br></div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;" class="yui_3_2_0_20_131582315520757"><br>It depends on your device and driver. I am only familiar with Leon3<br>and Gaisler's 1553brm core.<br><br>If you are using Gaisler's 1553brm core you should take a look at<br>their documentation:<br><a href="ftp://gaisler.com/gaisler.com/rcc/doc/rtems-gaisler-drivers-1.1.99.15.0.pdf" target="_blank">ftp://gaisler.com/gaisler.com/rcc/doc/rtems-gaisler-drivers-1.1.99.15.0.pdf</a><br><br>Mode selection will use a ioctl call:<br><br>unsigned int mode = BRM_MODE_BC;<br>result = ioctl(fd, BRM_SET_MODE, &mode);<br><br>Read and Write directives will depend on the selected operating mode.<br><br>In Remote terminal mode the driver is accessed using standard IO<br>calls: read and write.<br>Bus Controller is a
 little more complicated, since you must provide a<br>command list.<br><br>Cláudio<br><br>On Mon, Sep 12, 2011 at 11:26 AM, Oleg Moroz <<a ymailto="mailto:oleg_moroz@yahoo.com" href="mailto:oleg_moroz@yahoo.com">oleg_moroz@yahoo.com</a>> wrote:<br>><br>><br>> ________________________________<br>> От: Cláudio Silva <<a ymailto="mailto:claudiodcsilva@gmail.com" href="mailto:claudiodcsilva@gmail.com">claudiodcsilva@gmail.com</a>><br>> Кому: Oleg Moroz <<a ymailto="mailto:oleg_moroz@yahoo.com" href="mailto:oleg_moroz@yahoo.com">oleg_moroz@yahoo.com</a>><br>> Копия: Rtems <<a ymailto="mailto:rtems-users@rtems.org" href="mailto:rtems-users@rtems.org">rtems-users@rtems.org</a>><br>> Отправлено: понедельник, 12 сентября 2011 14:15<br>> Тема: Re: 1553b using.<br>><br>> Hi,<br>><br>> Aeroflex Gaisler provides some 1553b sample code for RTEMS:<br>><br>>
 <a href="ftp://gaisler.com/gaisler.com/rcc/src/samples-rtems-4.10-1.1.99.18.tar.bz2" target="_blank">ftp://gaisler.com/gaisler.com/rcc/src/samples-rtems-4.10-1.1.99.18.tar.bz2</a><br>><br>> Regards,<br>> Cláudio<br>><br>> 2011/9/12 Oleg Moroz <<a ymailto="mailto:oleg_moroz@yahoo.com" href="mailto:oleg_moroz@yahoo.com">oleg_moroz@yahoo.com</a>>:<br>>> Hello. Is anyone has an example of using 1553b bus in RTEMS?<br>>> _______________________________________________<br>>> rtems-users mailing list<br>>> <a ymailto="mailto:rtems-users@rtems.org" href="mailto:rtems-users@rtems.org">rtems-users@rtems.org</a><br>>> <a href="http://www.rtems.org/mailman/listinfo/rtems-users" target="_blank">http://www.rtems.org/mailman/listinfo/rtems-users</a><br>>><br>>><br>><br>> Thanks, but i think this code is out of date and bounded to Gaisler code. In<br>> my RTEMS 4.10.1 i dont have that files. I
 want to know how to switch 1553<br>> modes and how to read and write (send and receive) messages.<br><br></div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;" class="yui_3_2_0_20_131582315520757">Thanks a lot.<br><br></div></div></div></body></html>