
9 changed files with 165 additions and 44 deletions
@ -0,0 +1,26 @@
@@ -0,0 +1,26 @@
|
||||
\chapter{I/O control} |
||||
\label{chap:ioctl} \index{ioctl} |
||||
|
||||
|
||||
Un des paradigmes les plus connus à propos des systèmes de la |
||||
famille Unix est : \textsf{Tout est vu comme un fichier}. |
||||
C'est souvent vrai, mais parfois ce n'est pas suffisant. |
||||
Prenons rapidement un exemple, le baton de joie\index{joystick} |
||||
dans Linux. |
||||
|
||||
\begin{verbatim} |
||||
int foo, joy_fd; |
||||
struct js_event js; |
||||
char joy_name[128]; |
||||
|
||||
joy_fd = open(joy_device , O_RDONLY); |
||||
|
||||
\end{verbatim} |
||||
|
||||
|
||||
|
||||
% ========================================================= |
||||
|
||||
Ailleurs dans ce document : Ports série (p. \pageref{rs232}) |
||||
|
||||
% ========================================================= |
@ -0,0 +1,37 @@
@@ -0,0 +1,37 @@
|
||||
\chapter{Sofware Defined Radio} |
||||
\label{chap:sdr} \index{sdr} |
||||
|
||||
Beaucoup d'empirisme danc ce chapitre. |
||||
|
||||
Tout d'abord, le matériel à ma disposition~: |
||||
|
||||
\begin{verbatim} |
||||
Bus 004 Device 010: ID 0bda:2838 Realtek Semiconductor Corp. RTL2838 DVB-T |
||||
\end{verbatim} |
||||
|
||||
Ensuite, le premier hack, dont je n'ai pas encore bien capté |
||||
la raison~: |
||||
|
||||
\begin{verbatim} |
||||
$ cat /etc/modprobe.d/blacklist-dvb_usb_rtl28xxu.conf |
||||
# added by tth |
||||
blacklist dvb_usb_rtl28xxu |
||||
\end{verbatim} |
||||
|
||||
% =================================================== |
||||
|
||||
\section{CubicSDR} |
||||
|
||||
\begin{quote} |
||||
CubicSDR is a cross-platform Software Defined Radio application which |
||||
allows you to navigate the radio spectrum and demodulate any signals |
||||
you might discover. It currently includes several common analog |
||||
demodulation schemes such as AM and FM and will support digital modes |
||||
in the future. |
||||
SDR hardware is accessed through SoapySDR and therefore any |
||||
hardware for which a SoapySDR module exists can be used as a receiver |
||||
with CubicSDR. |
||||
\end{quote} |
||||
|
||||
|
||||
% =================================================== |
@ -1,33 +0,0 @@
@@ -1,33 +0,0 @@
|
||||
#include <forms.h> |
||||
|
||||
int main(int argc, char *argv[]) { |
||||
FL_FORM *form; |
||||
FL_OBJECT *yes, |
||||
*no, |
||||
*but; |
||||
|
||||
fl_initialize(&argc, argv, "FormDemo", 0, 0); |
||||
|
||||
form = fl_bgn_form(FL_UP_BOX, 320, 120); |
||||
fl_add_box(FL_BORDER_BOX, 160, 40, 0, 0, \ |
||||
"Do you want to Quit?"); |
||||
yes = fl_add_button(FL_NORMAL_BUTTON, \ |
||||
40, 70, 80, 30, "Yes"); |
||||
no = fl_add_button(FL_NORMAL_BUTTON, \ |
||||
200, 70, 80, 30, "No"); |
||||
fl_end_form(); |
||||
|
||||
fl_show_form(form, FL_PLACE_MOUSE, FL_TRANSIENT, \ |
||||
"Question"); |
||||
|
||||
while (1) { |
||||
if (fl_do_forms() == yes { |
||||
printf("Yes is pushed\n"); |
||||
break; |
||||
} |
||||
else printf("No is pushed\n"); |
||||
} |
||||
|
||||
fl_finish(); |
||||
return 0; |
||||
} |
Loading…
Reference in new issue