untitled

Size: px
Start display at page:

Download "untitled"

Transcription

1 FRH17TJ010 Rev1.00 FRH17TJ010

2 FRH17TJ010 Rev1.00 FRH17TJ010 SuperH RISC engine C/C++ C C SS FRH-SD07T FRH-SD07T ( ) 2. SuperH 1

3 FRH17TJ010 Rev RAM F-ROM SH SCANINFO PUT_EXTCHARACTER PICTURE SSREG

4 FRH17TJ010 Rev SS SS

5 FRH17TJ010 Rev

6 FRH17TJ010 Rev ANK ANK JIS font

7 FRH17TJ010 Rev ANK ANK ANK ANK ANK ANK 0x20 0x7E 0xA1 0xDF 0x8140 0x84BE 0x889F 0x989E 0x989F 0xEABE 0x08 0x0D ()put_extcharacter ANK ANK chardeco 6

8 FRH17TJ010 Rev BS 0x08CR 0x0D BS ANK 1 CR ANK ANK ANK A

9 FRH17TJ010 Rev1.00 ANK 14 4 ANK A 1 5 ANK 14 4 ANK A ANK ANK A 4 1 ANK

10 FRH17TJ010 Rev1.00 ANK ANK 14 8 ANK A

11 FRH17TJ010 Rev1.00 () ~ ~ (0~119) 72 0~ ~ ~ ~ ~79 10

12 FRH17TJ010 Rev contrast ON ON ON 11

13 FRH17TJ010 Rev LED LED LED LED LED LED LED LED LED LED LED led_off buzzer_stop vibrator_stop 12

14 FRH17TJ010 Rev [TRG] [S1] [S2],[F1] [F4] [S1],[S2] [F1] [F4] [PW] [ENT] [S] [BS] [CLR] [0] [9] [.] 13

15 FRH17TJ010 Rev1.00 keycharwait OFF ON TRG 0xE0 0xE0 S1 0xE1 0xE1 S2 0xE2 0xE2 CLR 0x18 0x18 BS 0x08 0x08 1 0x31 (1) 0x41,0x42,0x43,0x31 (A,B,C,1) 2 0x32 (2) 0x44,0x45,0x46,0x32 (D,E,F,2) 3 0x33 (3) 0x47,0x48,0x49,0x33 (G,H,I,3) 4 0x34 (4) 0x4A,0x4B,0x4C,0x34 (J,K,L,4) 5 0x35 (5) 0x4D,0x4E,0x4F,0x35 (M,N,O,5) 6 0x36 (6) 0x50,0x51,0x52,0x36 (P,Q,R,6) 7 0x37 (7) 0x53,0x54,0x55,0x37 (S,T,U,7) 8 0x38 (8) 0x56,0x57,0x58,0x38 (V,W,X,8) 9 0x39 (9) 0x59,0x5A,02D,0x39 (Y,Z,-,9) 0 0x30 (0) 0x24,0x25,0x2B,0x2F,0x3A, ($,%,+,/,:,*,,0) 0x2A,0x5C,0x30 0x2E (.) 0x20,0x2E (SP,.) ENT 0x0D 0x0D F1 0xF1 0xF5 F2 0xF2 0xF6 F3 0xF3 0xF7 F4 0xF4 0xF8 16 ON OFF ON 1 ON [1] 5 1 (A) 2 (B) 3 (C) 4 (1) 5 (A) 14

16 FRH17TJ010 Rev1.00 [S] ON OFF ON [S] [0] [9] [.] [BS],[ENT] OFF [0] [9],[.] ON [0] [9],[.] ON 1 [1] 5 [2] 1 (A) 2 (B) 3 (C) 4 (1) 5 (A) [2] 1 [2] D [1] [1] [1] [1] [1] [2] [BS] [ENT] ON OFF [BS] 1 [ENT] KEY_RESUME.H 15

17 FRH17TJ010 Rev WPC JAN EAN UPC NW-7 Interleaved 2 of 5 Industrial 2 of 5 Standard 2 of 5 CODE-39 CODE-93 CODE-128 EAN-128 WPC WPC UPC-E UPC-A UPC-E UPC-A EAN-8 EAN-13 NW-7 CD 7DR MOD16 CD Interleaved 2 of 5 CD CD Industrial 2 of 5 CD Standard 2 of 5 CD CODE-39 CD CD CODE-128 CD EAN-128 LED 16

18 FRH17TJ010 Rev A Z!#$%&'()-@^_`{~ errno 2.1. RAM RAM RAM M RAM F-ROM F-ROM F-ROM 38 2M F-ROM CR-LF 1 LF LFCR-LF 17

19 FRH17TJ010 Rev IrDA ,4800,9600,19200,38400,57600,115.2K bps IrDA 18

20 FRH17TJ010 Rev SS FRH-SD07T SS SS FRH-SD07T FRH-SD07T

21 FRH17TJ010 Rev OFF OFF OFF OFF OFF OFF OFF [PW] OFF [PW] OFF

22 FRH17TJ010 Rev OFF ON OFF KEY_RESUME FRH17.H SS SS FRH-SD07T SS 7.SS 21

23 FRH17TJ010 Rev MCD-1000 MET-232C 22

24 FRH17TJ010 Rev main main void main(void) 512K 23

25 FRH17TJ010 Rev K 128K 24

26 FRH17TJ010 Rev FRH17.H APVER.H FRH17.H FRH17.H FRH17.H APVER.H APVER.H #pragma section $AplVersion const char date[16] = DATE ; const char time[16] = TIME ; " const char Ap_Version[16] = "1.00 "; 25

27 FRH17TJ010 Rev backlight 37 backlight_state 38 backlighttime_get 39 backlighttime_set 40 blink 41 blink_state 42 chardeco 47 chardeco_state 48 charsize 49 charsize_state 51 clear_screen 52 contrast 58 contrast_state 60 cursor 61 cursor_state 63 drawbox 65 drawdot 67 echo 68 echo_state 69 font 91 font_state 92 gotoxy 93 keybacklight 102 keybacklight_state 103 picture 116 put_character put_extcharacter put_string 122 sysarea 179 sysarea_state 180 xposition 195 yposition

28 FRH17TJ010 Rev1.00 buzzer 43 buzzer_state 45 buzzer_stop 46 led_off LED 112 led_on LED 113 led_state LED 114 vibrator 192 vibrator_stete 193 vibrator_stop 194 kbhit 101 keycharread 104 keycharwait 106 keyclear 107 keyclick 108 keyclick_state 109 keypressing 110 shiftkey 153 shiftkey_state 154 shiftkeylock 155 shiftkeylock_state 156 scanmode 148 scanread 150 scanwait

29 FRH17TJ010 Rev1.00 ffs_close F-ROM 70 ffs_eof F-ROM 71 ffs_filesize F-ROM 72 ffs_findfirst F-ROM 73 ffs_findnext F-ROM 74 ffs_format F-ROM 75 ffs_freesize F-ROM 76 ffs_isformat F-ROM 77 ffs_lseek F-ROM 78 ffs_open F-ROM 80 ffs_read F-ROM 81 ffs_remove F-ROM 83 ffs_tell F-ROM 84 ffs_write F-ROM 85 rfs_chsize RAM 126 rfs_close RAM 127 rfs_eof RAM 128 rfs_filesize RAM 129 rfs_findfirst RAM 130 rfs_findnext RAM 131 rfs_format RAM 132 rfs_freesize RAM 133 rfs_isformat RAM 134 rfs_lseek RAM 135 rfs_open RAM 137 rfs_read RAM 138 rfs_remove RAM 140 rfs_rename RAM 141 rfs_tell RAM 142 rfs_write RAM 143 ir_clear 94 ir_close 95 ir_loc 96 ir_open 97 ir_read 1 98 ir_write

30 FRH17TJ010 Rev1.00 ss_clear 157 ss_close 158 ss_cts_state CTS 159 ss_dsr_state DSR 160 ss_dtr DTR 161 ss_dtr_state DTR 162 ss_loc 163 ss_open 164 ss_read 168 ss_rts RTS 171 ss_rts_state RTS 172 ss_write 177 autopowerdown_get OFF 33 autopowerdown_reset OFF 35 autopowerdown_set OFF 36 ischarge 100 mainbattery_level 115 powerdown OFF 117 powerkey OFF 118 powerkey_state OFF 119 subbattery_level 178 delay 64 rtcread 145 rtcwrite 147 timer_start 188 timer_stop 189 timer_value 190 resume 123 resume_state

31 FRH17TJ010 Rev1.00 apinstall_file 31 comrate_get 53 comrate_set 55 config 56 systemconfig_load OS 181 systemconfig_save OS 182 terminalid_get ID 186 tetminalid_set ID 187 version_os OS 191 ss_register 169 ss_powermode SS 165 ss_powermode_state SS 167 ss_shut_time AUTO SHUT 173 ss_shut_time_state AUTO SHUT 174 ss_ultra_time AUTO ULTRA 175 ss_ultra_time_state AUTO ULTRA 176 filedownload 87 fileupload 89 terminalcontrol

32 FRH17TJ010 Rev1.00 apinstall_file int apinstall_file(int fsystem, char *fname, int charsize, int yposition); fsystem fname charsize yposition hex hex RAM fsystem RFS F-ROM fsystem FFS fmame hex yposition charsize charsize QUARTERSIZE NORMALSIZE NONDISPLAY ANK ANK yposition charsize charsize yposition ( ) yposition ( ) 12 QUARTERSIZE NORMALSIZE QUARTERSIZE NORMALSIZE OFF 31

33 FRH17TJ010 Rev hex /* RAM HEX "sample.mot" */ #include <stdio.h> #include "apver.h" #include "frh17.h" void main(void) { int result; char buff[15]; clear_screen(); gotoxy(1,2); put_string("ap Install"); result = apinstall_file( RFS, "sample.mot", NORMALSIZE, 4); sprintf(buff,"err=%d", result); gotoxy(1,4); put_string(buff); 32

34 FRH17TJ010 Rev1.00 autopowerdown_get OFF int autopowerdown_get(void) autopowerdown_set OFF OFF autopowerdown_set config autopowerdown_set OFF OFF 33

35 FRH17TJ010 Rev1.00 /* OFF */ #include <stdio.h> #include "apver.h" #include "frh17.h" void main(void) { int state; unsigned char c; char buff[15]; for (;;){ c=keycharwait(); clear_screen(); if (c==key_f1){ autopowerdown_set(0); if (c==key_f2){ autopowerdown_set(1); if (c==key_f3){ autopowerdown_set(2); if (c==key_f4){ autopowerdown_reset(); state=autopowerdown_get(); if (state==0){ gotoxy(1,2); put_string("off "); else { sprintf(buff,"off=%d ",state); gotoxy(1,2); put_string(buff); 34

36 FRH17TJ010 Rev1.00 autopowerdown_reset OFF void autopowerdown_reset(void); autopowerdown_set OFF autopowerdown_get 35

37 FRH17TJ010 Rev1.00 autopowerdown_set OFF int autopowerdown_set(int time); time OFF OFF time OFF time time 0 60 time time 0 OFF time 0 60 FALSE systemconfig_save time 0 60 TRUE FALSE autopowerdown_get 36

38 FRH17TJ010 Rev1.00 backlight int backlight(int state); state state ON OFF FALSE state ON OFF TRUE FALSE /* */ #include "apver.h" #include "frh17.h" void main(void) { int state; unsigned char c; for (;;){ c=keycharwait(); if (c==key_f1) backlight(on); if (c==key_f2) backlight(off); state=backlight_state(); if (state==on){ clear_screen(); gotoxy(1,2); put_string("b.l.=on"); if (state==off){ clear_screen(); gotoxy(1,2); put_string("b.l.=off"); 37

39 FRH17TJ010 Rev1.00 backlight_state int backlight_state(void); backlight ON OFF backlight 38

40 FRH17TJ010 Rev1.00 backlighttime_get int backlighttime_get(void); backlighttime_set ON backlighttime_set /* */ #include <stdio.h> #include "apver.h" #include "frh17.h" void main(void) { int state; unsigned char c; char buff[15]; for (;;){ c=keycharwait(); if (c==key_f1){ backlighttime_set(0); backlight(on); if (c==key_f2){ backlighttime_set(30); backlight(on); state=backlighttime_get(); if (state==0){ clear_screen(); gotoxy(1,2); put_string(""); else { clear_screen(); sprintf(buff,"=%d",state); gotoxy(1,2); put_string(buff); 39

41 FRH17TJ010 Rev1.00 backlighttime_set int backlighttime_set(int time); time time time 0 ON backlight time systemconfig_save time TRUE FALSE backlighttime_get 40

42 FRH17TJ010 Rev1.00 blink int blink(int state); state state ON OFF cursor ) state ON OFF TRUE FALSE /* */ #include "apver.h" #include "frh17.h" void main(void) { int state; unsigned char c; clear_screen(); cursor(block); for (;;){ c=keycharwait(); if (c==key_f1){ blink(on); if (c==key_f2){ blink(off); state=blink_state(); if (state==on){ clear_screen(); gotoxy(1,2); put_string(" ON:"); if (state==off){ clear_screen(); gotoxy(1,2); put_string(" OFF:"); 41

43 FRH17TJ010 Rev1.00 blink_state int blink_state(void); blink ON OFF blink 42

44 FRH17TJ010 Rev1.00 buzzer int buzzer(int freq, int time); freq time [:Hz] (0 6000[ 10 ]) freq time freq time time 0 time ferq time TRUE FALSE 43

45 FRH17TJ010 Rev1.00 /* */ #include <stdio.h> #include "apver.h" #include "frh17.h" void main(void) { unsigned char c; for (;;){ c=keycharwait(); switch (c){ case KEY_S1: /* UP */ if (OFF == buzzer_state()){ buzzer(3100,3); delay(5); buzzer(3500,5); break; case KEY_S2: /* DOWN */ if (OFF == buzzer_state()){ buzzer(3500,3); delay(5); buzzer(3100,5); break; case KEY_F1: /* OK */ if (OFF == buzzer_state()){ buzzer(4200,30); break; case KEY_F2: /* ERROR */ if (OFF == buzzer_state()){ buzzer(500,50); break; case KEY_F3: /* BUZZER */ buzzer(3000,3000); break; case KEY_F4: /* STOP */ buzzer_stop(); break; 44

46 FRH17TJ010 Rev1.00 buzzer_state int buzzer_state(void) buzzer ON OFF buzzer 45

47 FRH17TJ010 Rev1.00 buzzer_stop void buzzer_stop(void) buzzer buzzer 46

48 FRH17TJ010 Rev1.00 chardeco int chardeco(int state); state stete REVERSE NORMAL put_character put_string NORMAL state NORMAL REVERSE TRUE state FALSE /* */ #include "apver.h" #include "frh17.h" void main(void) { int state; unsigned char c; clear_screen(); for (;;){ c=keycharwait(); if (c==key_f1){ chardeco(normal); if (c==key_f2){ chardeco(reverse); state=chardeco_state(); if (state==normal){ clear_screen(); gotoxy(1,2); put_string(""); if (state==reverse){ clear_screen(); gotoxy(1,2); put_string(""); 47

49 FRH17TJ010 Rev1.00 chardeco_state int chardeco_state(void); chardeco NORMAL REVERSE chardeco 48

50 FRH17TJ010 Rev1.00 charsize int charsize(int size); size size QUARTERSIZE ANK NORMALSIZE ANK put_character put_string ANKNORMALSIZE size NORMALSIZE size QUARTERSIZE NORMALSIZE TRUE FALSE 49

51 FRH17TJ010 Rev1.00 /* ANK ANK */ #include "apver.h" #include "frh17.h" void main(void) { int state; unsigned char c; clear_screen(); for (;;){ c=keycharwait(); if (c==key_f1){ charsize(quartersize); if (c==key_f2){ charsize(normalsize); state=charsize_state(); if (state==quartersize){ clear_screen(); gotoxy(1,2); put_string("abcd"); if (state==normalsize){ clear_screen(); gotoxy(1,2); gotoxy(1,4); put_string("abcd"); put_string(""); 50

52 FRH17TJ010 Rev1.00 charsize_state int charsize_state(void); charsize ANK QUARTERSIZE ANK NORMALSIZE charsize 51

53 FRH17TJ010 Rev1.00 clear_screen void clear_screen(void); 1 1 cursor 52

54 FRH17TJ010 Rev1.00 comrate_get unsigned int comrate_get(void); IR_RATE1152 IR_RATE0576 IR_RATE0384 IR_RATE0192 IR_RATE0096 IR_RATE0048 IR_RATE kbps 57600bps 38400bps 19200bps 9600bps 4800bps 2400bps 53

55 FRH17TJ010 Rev1.00 /* */ #include "apver.h" #include "frh17.h" void main(void) { int rate; unsigned char c; for (;;){ c=keycharread(); if (c==key_f1){ comrate_set(ir_rate1152); if (c==key_f2){ comrate_set(ir_rate0192); if (c==key_f3){ comrate_set(ir_rate0096); rate=comrate_get(); switch(rate){ case IR_RATE1152: gotoxy(1,2); put_string("rate=115200"); break; case IR_RATE0576: gotoxy(1,2); put_string("rate=57600 "); break; case IR_RATE0384: gotoxy(1,2); put_string("rate=38400 "); break; case IR_RATE0192: gotoxy(1,2); put_string("rate=19200 "); break; case IR_RATE0096: gotoxy(1,2); put_string("rate=9600 "); break; case IR_RATE0048: gotoxy(1,2); put_string("rate=4800 "); break; case IR_RATE0024: gotoxy(1,2); put_string("rate=2400 "); break; 54

56 FRH17TJ010 Rev1.00 comrate_set int comrate_set(unsigned int rate); rate comrate_set r te IR_RATE1152 IR_RATE0576 IR_RATE0384 IR_RATE0192 IR_RATE0096 IR_RATE0048 IR_RATE kbps 57600bps 38400bps 19200bps 9600bps 4800bps 2400bps r te TRUE FALSE comrate_get 55

57 FRH17TJ010 Rev1.00 config int config(int command, CONF *buffer); command buffer CONF command CONF_READ buffer command CONF_WRITE buffer command CONF_DEFAULT buffer OFF buffer FALSE CONF int contrast int keybacklight int backlighttime int atpwdowntime OFF int resume F-ROM systemconfig_load TRUE FALSE 56

58 FRH17TJ010 Rev1.00 /* */ #include <stdio.h> #include "apver.h" #include "frh17.h" void main(void) { CONF conf; unsigned char c; char buff[15]; for (;;){ c=keycharwait(); if (c==key_f1){ config(conf_default, &conf); if (c==key_f2){ conf.contrast=2; conf.keybacklight=1; conf.backlighttime=10; conf.atpwdowntime=1; conf.resume=0; config(conf_write, &conf); if (c==key_f3){ systemconfig_load(); clear_screen(); config(conf_read, &conf); sprintf(buff,"con=%d",conf.contrast); gotoxy(1,2); put_string(buff); sprintf(buff,"kbl=%d",conf.keybacklight); gotoxy(8,2); put_string(buff); sprintf(buff,"blt=%d",conf.backlighttime); gotoxy(1,4); put_string(buff); sprintf(buff,"apd=%d",conf.atpwdowntime); gotoxy(8,4); put_string(buff); sprintf(buff,"apd=%d",conf.resume); gotoxy(1,6); put_string(buff); 57

59 FRH17TJ010 Rev1.00 contrast int contrast(int value); value ( -3 3 ) value 0 value -3 3 FALSE systemconfig_save value -3 3 TRUE FALSE 58

60 FRH17TJ010 Rev1.00 /* */ #include "apver.h" #include "frh17.h" void main(void) { int con; unsigned char c; clear_screen(); gotoxy(1,2); put_string("hello world."); for(;;){ c=keycharwait(); con=contrast_state(); if (c==key_s1){ if (3>con){ con++; contrast(con); if (c==key_s2){ if (-3<con){ con--; contrast(con); 59

61 FRH17TJ010 Rev1.00 contrast_state int contrast_state(void); contrast -3 3 contrast 60

62 FRH17TJ010 Rev1.00 cursor int cursor(int mode); mode mode mode UNDERBAR BLOCK OFF mode TRUE FALSE 61

63 FRH17TJ010 Rev1.00 /* */ #include "apver.h" #include "frh17.h" void main(void) { int state; unsigned char c; echo(on); clear_screen(); gotoxy(1,2); cursor(block); for (;;){ c=keycharwait(); /* & */ if (c==key_f1){ /* */ cursor(underbar); if (c==key_f2){ /* */ cursor(block); if (c==key_f3){ /* */ cursor(off); state=cursor_state(); /* */ if (state==underbar){ clear_screen(); gotoxy(1,2); put_string("underbar"); if (state==block){ clear_screen(); gotoxy(1,2); put_string("block"); if (state==off){ clear_screen(); gotoxy(1,2); put_string("off"); 62

64 FRH17TJ010 Rev1.00 cursor_state int cursor_state(void); cursor UNDERBAR BLOCK OFF cursor 63

65 FRH17TJ010 Rev1.00 delay int delay(int time); time [ 10 ] time delay time time 0 delay delay CPU SLEEP time /* */ #include "apver.h" #include "frh17.h" void main(void) { clear_screen(); for (;;){ gotoxy(1,2); put_string("hello world."); delay(500); clear_screen(); delay(500); 64

66 FRH17TJ010 Rev1.00 drawbox int drawbox(int mode, int x1, int y1, int x2, int y2); mode x1 y1 x2 y2 mode x1,y1 x2,y2 x1,x2 y1,y2 mode CLEAR x1,y1,x2,y2 SET x1,y1,x2,y2 x y x y FALSE TRUE FALSE 65

67 FRH17TJ010 Rev1.00 /* */ #include "apver.h" #include "frh17.h" void main(void) { int x1,y1,x2,y2; int x,y,i; clear_screen(); for (x=0;x<111;x+=4){ /* */ drawbox(set,x,0,x,63); while (!kbhit()); keyclear(); for (x=0;x<111;x+=4){ /* */ drawbox(clear,x,0,x,63); while (!kbhit()); keyclear(); for (y=0;y<63;y+=4){ /* */ drawbox(set,0,y,111,y); while (!kbhit()); keyclear(); for (y=0;y<63;y+=4){ /* */ drawbox(clear,0,y,111,y); while (!kbhit()); keyclear(); x1=0; y1=0; x2=31; y2=31; for (i=0;i<8;i++){ /* */ drawbox(set,x1,y1,x2,y2); x1+=4; y1+=4; x2+=4; y2+=4; 66

68 FRH17TJ010 Rev1.00 drawdot int drawdot(int mode, int x, int y); mode x y mode x,y mode CLEAR x,y SET x,y x y x y FALSE TRUE FALSE /* */ #include "apver.h" #include "frh17.h" void main(void){ int x,y; for (;;){ clear_screen(); for(x=0;x<=111;++x){ for(y=0;y<=63;++y) drawdot(set,x,y); 67

69 FRH17TJ010 Rev1.00 echo int echo(int state); state state ON keycharread keycharwait scanwait OFF OFF state ON OFF TRUE FALSE cursor 68

70 FRH17TJ010 Rev1.00 echo_state int echo_state(void); echo ON OFF 69

71 FRH17TJ010 Rev1.00 ffs_close F-ROM int ffs_close(int handle); handle handle 0-1 errno EBADF EBADF handle /* - */ #include "apver.h" #include "frh17.h" void main(void) { int handle; powerkey(disable); /* PW OFF */ resume(on); /* */ if ((handle=ffs_open("sample.txt",o_creat O_RDWR)) == -1){ gotoxy(1,2); put_string("open ERROR"); else { ffs_close(handle); resume(off); /* */ powerkey(enable); /* PW OFF */ 70

72 FRH17TJ010 Rev1.00 ffs_eof F-ROM int ffs_eof(int handle); handle handle errno EBADF EBADF handle /* - */ #include <stdio.h> #include "apver.h" #include "frh17.h" void main(void) { int handle,count,recode=0; char buff[10],str[16]; powerkey(disable); /* PW OFF */ resume(on); /* */ if ((handle = ffs_open("sample.txt",o_rdonly)) == -1){ gotoxy(1,2); put_string("open ERROR"); else { while (!ffs_eof(handle)){ if ((count=ffs_read(handle,buff,10))==-1){ gotoxy(1,2); put_string("read ERROR"); break; recode++; sprintf(str,"recode=%d",recode); gotoxy(1,2); put_string(str); ffs_close(handle); resume(off); /* */ powerkey(enable); /* PW OFF */ 71

73 FRH17TJ010 Rev1.00 ffs_filesize F-ROM long ffs_filesize (const char *filename); filename filename -1 errno errno ENOENT /* - */ #include <stdio.h> #include "apver.h" #include "frh17.h" void main(void) { long size; char str[15]; if ((size = ffs_filesize("sample.txt"))==-1){ gotoxy(1,2); put_string("name ERROR"); else { sprintf(str,"size=%ld",size); gotoxy(1,2); put_string(str); 72

74 FRH17TJ010 Rev1.00 ffs_findfirst F-ROM int ffs_findfirst(char *filename); filename filename filename char 13 ffs_findnext -1 /* - */ #include "apver.h" #include "frh17.h" void main(void) { char fname[38][13]; int num,pos,i; unsigned char c; if ((num = ffs_findfirst(fname[0])) == -1){ gotoxy(1,2); put_string("no FILE"); else { for (pos=1;pos<38;pos++){ if ((num = ffs_findnext(num,fname[pos])) == -1){ break; pos-=1; for (i=0;;){ gotoxy(1,2); put_string(fname[i]); c=keycharwait(); if (c==key_s1){ if (pos>i) i++; if (c==key_s2){ if (0<i) i--; 73

75 FRH17TJ010 Rev1.00 ffs_findnext F-ROM int ffs_findnext(int num, char *filename); num filename filename ffs_findfirst ffs_findnext num filename filename char 13-1 ffs_findfirst 74

76 FRH17TJ010 Rev1.00 ffs_format F-ROM int ffs_format(void); F-ROM F-ROM 0-1 /* - */ #include "apver.h" #include "frh17.h" void main(void) { int state; state=ffs_isformat(); if(state==true){ gotoxy(1,2); put_string(""); else{ powerkey(disable); /* PW OFF */ resume(on); /* */ if(ffs_format()==-1) gotoxy(1,2); put_string("format ERROR"); resume(off); /* */ powerkey(enable); /* PW OFF */ 75

77 FRH17TJ010 Rev1.00 ffs_freesize F-ROM long ffs_freesize(void); F-ROM /* - */ #include <stdio.h> #include "apver.h" #include "frh17.h" void main(void) { char str[15]; sprintf(str,"size=%ld",ffs_freesize()); gotoxy(1,2); put_string(str); 76

78 FRH17TJ010 Rev1.00 ffs_isformat F-ROM int ffs_isformat(void) F-ROM TRUE FALSE ffs_format 77

79 FRH17TJ010 Rev1.00 ffs_lseek F-ROM long ffs_lseek(int handle, long offset, int origin); handle offset origin handle origin offset origin SEEK_SET SEEK_CUR SEEK_END ffs_lseek -1 errno errno EBADF EINVAL origin offset 78

80 FRH17TJ010 Rev1.00 /* - */ #include "apver.h" #include "frh17.h" void main(void) { int handle,count; char buff[10]; powerkey(disable); /* PW OFF */ resume(on); /* */ if ((handle = ffs_open("sample.txt",o_rdonly)) == -1){ gotoxy(1,2); put_string("open ERROR"); else { count=ffs_read(handle,buff,10); if (count == -1){ gotoxy(1,2); put_string("read ERROR"); else { ffs_lseek(handle,0,seek_set); /* */ ffs_close(handle); resume(off); /* */ powerkey(enable); /* PW OFF */ 79

81 FRH17TJ010 Rev1.00 ffs_open F-ROM int ffs_open(const char *filename, int oflag); filename oflag filename oflag oflag 2 OR ( ) oflag O_APPEND oflag O_APPEND O_CREAT O_RDONLY O_RDWR O_WRONLY filename O_RDWR O_WRONLY O_ RDONLY O_WRONLY O_RDWR O_RDONLY -1 errno errno EACCES EINVAL ENOENT ENOSPC oflag ffs_close 80

82 FRH17TJ010 Rev1.00 ffs_read F-ROM int ffs_read(int handle, void *buffer, unsigned int count); handle buffer count handle count buffer buffer count count count 0-1 errno errno EBADF handle 81

83 FRH17TJ010 Rev1.00 /* - */ #include <stdio.h> #include "apver.h" #include "frh17.h" char Buff[1024]; void main(void) { int handle,bytes; char str[15]; powerkey(disable); /* PW OFF */ resume(on); /* */ if ((handle=ffs_open("sample.txt",o_rdonly)) == -1){ gotoxy(1,2); put_string("open ERROR"); else { if ((bytes=ffs_read(handle,buff,1024))==-1){ gotoxy(1,2); put_string("read ERROR"); else { sprintf(str,"read=%d",bytes); gotoxy(1,2); put_string(str); ffs_close(handle); resume(off); /* */ powerkey(enable); /* PW OFF */ 82

84 FRH17TJ010 Rev1.00 ffs_remove F-ROM int ffs_remove(const char *filename); filename filename 0-1 errno errno EACCES ENOENT /* - */ #include "apver.h" #include "frh17.h" void main(void) { powerkey(disable); /* PW OFF */ resume(on); /* */ if (ffs_remove("sample.txt")==-1){ gotoxy(1,2); put_string("couldn't delete"); else{ gotoxy(1,2); put_string("deleted"); resume(off); /* */ powerkey(enable); /* PW OFF */ 83

85 FRH17TJ010 Rev1.00 ffs_tell F-ROM long ffs_tell(int handle); handle handle -1 errno errno EBADF handle /* - */ #include <stdio.h> #include "apver.h" #include "frh17.h" void main(void) { int handle; char buff[10],str[15]; powerkey(disable); /* PW OFF */ resume(on); /* */ if ((handle=ffs_open("sample.txt",o_creat O_RDWR))!=-1){ if (ffs_read(handle,buff,10)>0){ sprintf(str,"pos=%ld",ffs_tell(handle)); gotoxy(1,2); put_string(str); ffs_close(handle); resume(off); /* */ powerkey(enable); /* PW OFF */ 84

86 FRH17TJ010 Rev1.00 ffs_write F-ROM int ffs_write(int handle, const void *buffer, unsigned int count); handle buffer count handle buffer count O_APPEND O_APPEND O_APPEND count -1 errno errno EBADF ENOSPC EIO handle 85

87 FRH17TJ010 Rev1.00 /* - */ #include <stdio.h> #include "apver.h" #include "frh17.h" const char Buff[36]="The test of the ffs_write function."; void main(void) { int handle,bytes; char str[10]; powerkey(disable); /* PW OFF */ resume(on); /* */ if ((handle=ffs_open("sample.txt",o_creat O_RDWR O_APPEND)) == -1){ gotoxy(1,2); put_string("open ERROR"); else { if ((bytes=ffs_write(handle,buff,sizeof(buff)))==-1){ gotoxy(1,2); put_string("write ERROR"); else { sprintf(str,"write=%d",bytes); gotoxy(1,2); put_string(str); ffs_close(handle); resume(off); /* */ powerkey(enable); /* PW OFF */ 86

88 FRH17TJ010 Rev1.00 filedownload int filedownload(int fsystem, char *fname, int charsize, int yposition, unsigned short stopkey); fsystem fname charsize yposition stopkey fname fsystem fsystem RFS RAM FFS F-ROM fname fname yposition charsize charsize QUARTERSIZE NORMALSIZE NONDISPLAY ANK ANK yposition charsize charsize yposition ( ) yposition ( ) 12 QUARTERSIZE NORMALSIZE QUARTERSIZE NORMALSIZE stopkey stopkey.h 87

89 FRH17TJ010 Rev1.00 comrate_set MCD-1000 MET-232C /* */ #include <stdio.h> #include "apver.h" #include "frh17.h" const char FileName[]="SAMPLE1.TXT,SAMPLE2.TXT,SAMPLE3.TXT"; void main(void) { int result; char buff[15]; clear_screen(); gotoxy(1,2); put_string("file download"); if((result = filedownload(rfs,filename,normalsize,4,key_clr))==0){ gotoxy(1,4); put_string("completed"); else { sprintf(buff,"err=%d", result); gotoxy(1,4); put_string(buff) 88

90 FRH17TJ010 Rev1.00 fileupload int fileupload( int fsystem, char *fname, int charsize, int yposition, unsigned short stopkey ); fsystem fname charsize yposition stopkey fsystem RAM fsystem RFS F-ROM FFS fname fname yposition charsize charsize QUARTERSIZE ANK NORMALSIZE ANK NONDISPLAY yposition charsize charsize yposition ( ) yposition ( ) 12 QUARTERSIZE NORMALSIZE QUARTERSIZE NORMALSIZE stopkey stopkey.h 89

91 FRH17TJ010 Rev1.00 comrate_set MCD-1000 MET-232C /* */ #include <stdio.h> #include "apver.h" #include "frh17.h" const char FileName[]="SAMPLE1.TXT,SAMPLE2.TXT,SAMPLE3.TXT"; void main(void) { int result; char buff[15]; clear_screen(); gotoxy(1,2); put_string("file upload"); if((result = fileupload(rfs,filename,normalsize,4,key_clr))==0){ gotoxy(1,4); put_string("completed"); else { sprintf(buff,"err=%d", result); gotoxy(1,4); put_string(buff) 90

92 FRH17TJ010 Rev1.00 font int font(int type); type type FONT12 12 FONT16 16 type FONT12 FONT16 TRUE FALSE /* */ #include "apver.h" #include "frh17.h" void main(void) { int state; unsigned char c; for (;;){ c=keycharwait(); if (c==key_f1){ font(font12); if (c==key_f2){ font(font16); state=font_state(); if (state == FONT12){ clear_screen(); gotoxy(1,2); put_string("font 12"); else { clear_screen(); gotoxy(1,2); put_string("font 16"); gotoxy(1,4); put_string("abcdefghij"); gotoxy(1,6); put_string(" "); 91

93 FRH17TJ010 Rev1.00 font_state int font_state(void); font 16 FONT16 12 FONT12 16 FONT16 font 92

94 FRH17TJ010 Rev1.00 gotoxy int gotoxy(unsigned short x,unsigned short y); x y x,y x y( ) x y( ) x,y FALSE x,y TRUE FALSE 93

95 FRH17TJ010 Rev1.00 ir_clear int ir_clear(void); IrDA 0-2 /* */ #include "apver.h" #include "frh17.h" void main(void) { int i; short c; char buff[10]; if (ir_open(ir_rate1152,ir_data8 IR_PNON IR_STOP1) < 0){ gotoxy(1,2); put_string("open ERROR"); else { ir_clear(); /* */ for(i=0;i<10;i++){ while (!ir_loc()) /* */ ; if ((c = ir_read()) < 0){ gotoxy(1,2); put_string("read ERROR"); break; buff[i]=(char)c; ir_close(); 94

96 FRH17TJ010 Rev1.00 ir_close IrDA int ir_close(void); IrDA CPU 0-2 ir_clear 95

97 FRH17TJ010 Rev1.00 ir_loc int ir_loc(void); 0-2 ir_clear 96

98 FRH17TJ010 Rev1.00 ir_open IrDA int ir_open(unsigned int rate,unsigned int mode); rate mode rate mode IrDA rate IR_RATE1152 IR_RATE0576 IR_RATE0384 IR_RATE0192 IR_RATE0096 IR_RATE0048 IR_RATE kbps 57600bps 38400bps 19200bps 9600bps 4800bps 2400bps mode OR IR_DATA7 7 IR_DATA8 8 IR_PNON IR_PODD IR_PEVEN IR_STOP1 1 IR_STOP2 2 0 rate mode -1-2 ir_clear 97

99 FRH17TJ010 Rev1.00 ir_read short ir_read(void); 1 ir_read ON 1 ON 1 ON 1 ON 1 ON 1 ON ir_clear 98

100 FRH17TJ010 Rev1.00 ir_write int ir_write(unsigned char c); c c IrDA 0-2 /* */ #include "apver.h" #include "frh17.h" const unsigned char Buff[13]="Hello world."; void main(void) { int i; short c; if (ir_open(ir_rate1152,ir_data8 IR_PNON IR_STOP1) < 0){ gotoxy(1,2); put_string("open ERROR"); else { for (i=0;i<13;i++){ ir_write(buff[i]); ir_close(); 99

101 FRH17TJ010 Rev1.00 ischarge int ischarge(void); TRUE FALSE /* */ #include "apver.h" #include "frh17.h" void main(void) { int current,previous = FALSE; for (;;){ current = ischarge(); if (current!= previous){ previous = current; if (current==true){ clear_screen(); gotoxy(1,2); put_string("charging"); else { clear_screen(); gotoxy(1,2); put_string("not charging"); 100

102 FRH17TJ010 Rev1.00 kbhit int kbhit(void); 0 101

103 FRH17TJ010 Rev1.00 keybacklight int keybacklight(int state); state state ON state OFF backlighttime_set state ON OFF TRUE FALSE /* */ #include "apver.h" #include "frh17.h" void main(void) { int state; unsigned char c; backlighttime_set(5); for (;;){ c=keycharwait(); if (c==key_f1){ keybacklight(on); if (c==key_f2){ keybacklight(off); state = keybacklight_state(); if (state==on){ clear_screen(); gotoxy(1,2); put_string("k.b.l.=on"); if (state==off){ clear_screen(); gotoxy(1,2); put_string("k.b.l.=off"); 102

104 FRH17TJ010 Rev1.00 keybacklight_state int keybacklight_state(void); keybacklight ON OFF keybacklight 103

105 FRH17TJ010 Rev1.00 keycharread unsigned char keycharread(void);.h TRG KEY_TRG (0xE0) S1 KEY_S1 (0xE1) S2 KEY_S2 (0xE2) CLR KEY_CLR (0x18) BS KEY_BS (0x08) 1 KEY_1 (0x31) 2 KEY_2 (0x32) 3 KEY_3 (0x33) 4 KEY_4 (0x34) 5 KEY_5 (0x35) 6 KEY_6 (0x36) 7 KEY_7 (0x37) 8 KEY_8 (0x38) 9 KEY_9 (0x39) 0 KEY_0 (0x30) KEY_DOT (0x2E) ENT KEY_ENT (0x0D) F1 KEY_F1 (0xF1) F2 KEY_F2 (0xF2) F3 KEY_F3 (0xF3) F4 KEY_F4 (0xF4). ENT BS keycharwait 0 104

106 FRH17TJ010 Rev1.00 /* 10 */ #include <stdio.h> #include "apver.h" #include "frh17.h" void main(void) { int state; int time; int current,previous=0; unsigned char c; char buff[15]; shiftkey(off); shiftkeylock(lock); while (!kbhit()); keyclear(); /* */ clear_screen(); timer_start(0,1000); /* 10 */ while (current = timer_value(0)){ if (current!= previous){ /* */ previous = current; sprintf(buff,"time=%d",current); gotoxy(1,2); put_string(buff); c= keycharread(); if (c == KEY_ENT){ /* */ timer_stop(0); break; if (c>=key_0 && c<=key_9){ gotoxy(1,4); put_string("key="); put_character((unsigned short)c); if (c == KEY_ENT){ gotoxy(1,2); put_string("timer stop "); else { gotoxy(1,2); put_string("time up "); 105

107 FRH17TJ010 Rev1.00 keycharwait unsigned char keycharwait(void);.h CPU SLEEP cursor 106

108 FRH17TJ010 Rev1.00 keyclear void keyclear(void); drawbox 107

109 FRH17TJ010 Rev1.00 keyclick int keyclick(int state); state state ON OFF state ON OFF TRUE FALSE /* */ #include "apver.h" #include "frh17.h" void main(void) { int state; unsigned char c; for (;;){ c=keycharwait(); if (c==key_f1){ keyclick(on); if (c==key_f2){ keyclick(off); state=keyclick_state(); if (state==on){ clear_screen(); gotoxy(1,2); put_string("keyclick ON"); if (state==off){ clear_screen(); gotoxy(1,2); put_string("keyclick OFF"); 108

110 FRH17TJ010 Rev1.00 keyclick_state int keyclick_state(void); keyclick ON OFF keyclick 109

111 FRH17TJ010 Rev1.00 keypressing unsigned long keypressing(void);.h KSTATE_1 KSTATE_2 KSTATE_3 KSTATE_4 KSTATE_5 KSTATE_6 KSTATE_7 KSTATE_8 KSTATE_9 KSTATE_0 KSTATE_DOT KSTATE_ENT KSTATE_CLR KSTATE_BS KSTATE_F1 KSTATE_F2 KSTATE_F3 KSTATE_F4 KSTATE_S1 KSTATE_S2 KSTATE_TRG KSTATE_SHIFT KSTATE_PWR DOT ENT CLR BS F1 F2 F3 F4 S1 S1 TRG S PW 110

112 FRH17TJ010 Rev [1] [7] [9][1] [7] [9] [3] /* */ #include "apver.h" #include "frh17.h" void main(void) { for (;;){ if (KSTATE_1 KSTATE_2 == keypressing()){ break; clear_screen(); gotoxy(1,2); put_string("exit"); 111

113 FRH17TJ010 Rev1.00 led_off LED void led_off(void); led_on /* */ #include "apver.h" #include "frh17.h" void main(void) { int state; unsigned char c; for (;;){ c=keycharwait(); if (c==key_f1){ if (OFF == led_state()){ led_on(red,500); if (c==key_f2){ if (OFF == led_state()){ led_on(green,500); if (c==key_f3){ if (OFF == led_state()){ led_on(orange,500); if (c==key_f4){ led_off(); 112

114 FRH17TJ010 Rev1.00 led_on LED int led_on(int command,int time); command time LED (0 6000[ 10mSec]) command LED time LED led_on LED time LED command time time 0 LED RED GREEN ORANGE led_on LED LED LED LED command time TRUE FALSE led_off 113

115 FRH17TJ010 Rev1.00 led_state LED int led_state(void); LED RED GREEN ORANGE led_off 114

116 FRH17TJ010 Rev1.00 mainbattery_level int mainbattery_level(void); /* */ #include "apver.h" #include "frh17.h" void main(void) { int current,previous=-1; for (;;){ current = mainbattery_level(); if (current!= previous){ previous = current; if (current==3){ clear_screen(); gotoxy(1,2); put_string("level=3"); if (current==2){ clear_screen(); gotoxy(1,2); put_string("level=2"); if (current==1){ clear_screen(); gotoxy(1,2); put_string("level=1"); if (current==0){ clear_screen(); gotoxy(1,2); put_string("level=0"); 115

117 FRH17TJ010 Rev1.00 picture int picture(int x1,int y1,int x2,int y2,unsigned char *data); x1 y1 x2 y2 data x1,y1 x2,y2 data HEX data data pictuer x y x y FALSE x1,y1,x2,y2 TRUE FALSE /* */ #include "apver.h" #include "frh17.h" const unsigned char Arrow[24]={0xF8,0xF8,0xF8,0xF8,0xF8,0xF8,0xFF,0xFE,0xFC,0xF8,0xF0,0x60, 0x01,0x01,0x01,0x01,0x01,0x01,0x0F,0x07,0x03,0x01,0x00,0x00; void main(void) { clear_screen(); picture(1,1,12,12,arrow); 116

118 FRH17TJ010 Rev1.00 powerdown OFF void powerdown(int state); state powerdown OFF stete INITSTART NORMALSTART /* */ #include "apver.h" #include "frh17.h" void main(void) { int state; unsigned char c; gotoxy(1,2); put_string("ap Start"); while (!kbhit()); keyclear(); resume(on); gotoxy(1,2); for (;;){ put_string("waiting"); c=keycharwait(); if (c==key_f1){ powerdown(initstart); if (c==key_f2){ powerdown(normalstart); 117

119 FRH17TJ010 Rev1.00 powerkey int powerkey(int command); command OFF command ENABLE OFF command DISABLE OFF ENABLE command ENABLE DISABLE TRUE FALSE /* */ #include "apver.h" #include "frh17.h" void main(void) { int state; unsigned char c; for (;;){ c=keycharwait(); if (c==key_f1){ powerkey(disable); if (c==key_f2){ powerkey(enable); state=powerkey_state(); if (state == DISABLE){ clear_screen(); gotoxy(1,2); put_string(""); else { clear_screen(); gotoxy(1,2); put_string(""); 118

120 FRH17TJ010 Rev1.00 powerkey_state int powerkey_state(void); powerkey ENABLE DISABLE powerkey 119

121 FRH17TJ010 Rev1.00 put_character int put_character(unsigned short ch) ch ch ANK 1 put_character font charsize chardeco ch ANK JIS ch 08BS FALSE ch 0Dh CR FALSE ch ANK 08h 0Dh ch FALSE TRUE /* */ #include "apver.h" #include "frh17.h" const char Str[13]="Hello world."; void main(void) { int i; gotoxy(1,2); for (i=0;i<13;i++){ put_character((unsigned short)str[i]) 120

122 FRH17TJ010 Rev1.00 put_extcharacter int put_extcharacter(int mode,unsigned char *data); mode data data mode mode QUARTERSIZE ANK HALFSIZE ANK FULLSIZE mode TRUE FALSE -put_extcharacter 121

123 FRH17TJ010 Rev1.00 put_string int put_string(char *string) string (null ) string null 0 put_string font charsize chardeco string ANK JIS string 08BS FALSE string 0Dh CR FALSE string ANK 08h 0Dh string FALSE TRUE /* */ #include "apver.h" #include "frh17.h" const char Str[13]="Hello world."; void main(void) { int i; gotoxy(1,2); put_string(str) 122

124 FRH17TJ010 Rev1.00 resume int resume(int state); state state ON OFF ON OFF ON state ON OFF TRUE FALSE 123

125 FRH17TJ010 Rev1.00 /* [F1] [F2],[PW] OFF ON OFF ON "AP Start" */ #include "apver.h" #include "frh17.h" void main(void) { int state; unsigned char c; gotoxy(1,2); put_string("ap Start"); for (;;){ c=keycharwait(); if (c==key_f1){ resume(on); if (c==key_f2){ resume(off); state=resume_state(); if(state==on){ else{ clear_screen(); gotoxy(1,4); put_string("resume ON"); clear_screen(); gotoxy(1,4); put_string("resume OFF"); 124

126 FRH17TJ010 Rev1.00 resume_state int resume_state(void); ON OFF resume 125

127 FRH17TJ010 Rev1.00 rfs_chsize int rfs_chsize(int handle,long size); handle size handle size -1 null errno errno EBADF ENOSPC EINVAL /* */ #include "apver.h" #include "frh17.h" void main(void) { int handle; long size=256; powerkey(disable); /* PW OFF */ resume(on); /* */ if ((handle=rfs_open("sample.txt",o_creat O_RDWR O_APPEND)) == -1){ gotoxy(1,2); put_string("open ERROR"); else { if (rfs_chsize(handle,size)==-1){ gotoxy(1,2); put_string("size ERROR"); rfs_close(handle); resume(off); /* */ powerkey(enable); /* PW OFF */ 126

128 FRH17TJ010 Rev1.00 rfs_close RAM int rfs_close(int handle); handle handle 0-1 errno EBADF EBADF handle /* */ #include "apver.h" #include "frh17.h" void main(void) { int handle; powerkey(disable); /* PW OFF */ resume(on); /* */ if ((handle=rfs_open("sample.txt",o_creat O_RDWR)) == -1){ gotoxy(1,2); put_string("open ERROR"); else { rfs_close(handle); resume(off); /* */ powerkey(enable); /* PW OFF */ 127

129 FRH17TJ010 Rev1.00 rfs_eof RAM int rfs_eof(int handle); handle handle errno EBADF EBADF handle /* */ #include <stdio.h> #include "apver.h" #include "frh17.h" void main(void) { int handle,count,recode=0; char buff[10],str[16]; powerkey(disable); /* PW OFF */ resume(on); /* */ if ((handle = rfs_open("sample.txt",o_rdonly)) == -1){ gotoxy(1,2); put_string("open ERROR"); else { while (!rfs_eof(handle)){ if ((count=rfs_read(handle,buff,10))==-1){ gotoxy(1,2); put_string("read ERROR"); break; recode++; sprintf(str,"recode=%d",recode); gotoxy(1,2); put_string(str); rfs_close(handle); resume(off); /* */ powerkey(enable); /* PW OFF */ 128

130 FRH17TJ010 Rev1.00 rfs_filesize RAM long rfs_filesize (const char *filename); filename filename -1 errno errno ENOENT /* */ #include <stdio.h> #include "apver.h" #include "frh17.h" void main(void) { long size; char str[15]; if ((size = rfs_filesize("sample.txt"))==-1){ gotoxy(1,2); put_string("name ERROR"); else { sprintf(str,"size=%ld",size); gotoxy(1,2); put_string(str); 129

131 FRH17TJ010 Rev1.00 rfs_findfirst RAM int rfs_findfirst(char *filename); filename filename filename char 13-1 /* */ #include "apver.h" #include "frh17.h" void main(void) { char fname[38][13]; int num,pos,i; unsigned char c; if ((num = rfs_findfirst(fname[0])) == -1){ gotoxy(1,2); put_string("no FILE"); else { for (pos=1;pos<38;pos++){ if ((num = rfs_findnext(num,fname[pos])) == -1){ break; pos-=1; for (i=0;;){ gotoxy(1,2); put_string(fname[i]); c=keycharwait(); if (c==key_s1){ if (pos>i){ i++; if (c==key_s2){ if (0<i){ i--; 130

132 FRH17TJ010 Rev1.00 rfs_findnext RAM int rfs_findnext(int num, char *filename); num filename num filename num rfs_findfirst rfs_findnext filename char 13-1 rfs_findfirst 131

133 FRH17TJ010 Rev1.00 rfs_format RAM void rfs_format(void); RAM RAM /* */ #include "apver.h" #include "frh17.h" void main(void) { int state; powerkey(disable); /* PW OFF */ resume(on); /* */ state=rfs_isformat(); if(state==true){ gotoxy(1,2); put_string(""); else{ rfs_format(); resume(off); /* */ powerkey(enable); /* PW OFF */ 132

134 FRH17TJ010 Rev1.00 rfs_freesize RAM long rfs_freesize(void); RAM /* */ #include <stdio.h> #include "apver.h" #include "frh17.h" void main(void) { char str[15]; sprintf(str,"size=%ld",rfs_freesize()); gotoxy(1,2); put_string(str); 133

135 FRH17TJ010 Rev1.00 rfs_isformat RAM int ffs_isformat(void); RAM TRUE FALSE rfs_format 134

136 FRH17TJ010 Rev1.00 rfs_lseek RAM long rfs_lseek(int handle,long offset,int origin); handle offset origin handle origin offset origin SEEK_SET SEEK_CUR SEEK_END ffs_lseek -1 errno errno EBADF EINVAL origin offset 135

137 FRH17TJ010 Rev1.00 /* */ #include "apver.h" #include "frh17.h" void main(void) { int handle,count; char buff[10]; powerkey(disable); /* PW OFF */ resume(on); /* */ if ((handle = rfs_open("sample.txt",o_rdonly)) == -1){ gotoxy(1,2); put_string("open ERROR"); else { count=rfs_read(handle,buff,10); if (count == -1){ gotoxy(1,2); put_string("read ERROR"); else { ffs_lseek(handle,0,seek_set); /* */ rfs_close(handle); resume(off); /* */ powerkey(enable); /* PW OFF */ 136

138 FRH17TJ010 Rev1.00 rfs_open RAM int rfs_open(const char *filename, int oflag); filename oflag filename oflag oflag 2 OR ( ) oflag O_APPEND oflag O_APPEND O_CREAT O_RDONLY O_RDWR O_TRUNC O_WRONLY filename O_RDWR O_WRONLY O_RDONLY O_WRONLY 0 O_RDWR _O_WRONLY O_RDONLY O_RDWR O_RDONLY -1 errno errno EACCES EINVAL oflag ENFILE ENOENT ENOSPC rfs_close 137

139 FRH17TJ010 Rev1.00 rfs_read RAM int rfs_read(int handle, void *buffer, unsigned int count); handle buffer count handle count buffer count count 0-1 errno errno EBADF handle 138

140 FRH17TJ010 Rev1.00 /* */ #include <stdio.h> #include "apver.h" #include "frh17.h" char Buff[32767]; void main(void) { int handle,bytes; char str[15]; powerkey(disable); /* PW OFF */ resume(on); /* */ if ((handle=rfs_open("sample.txt",o_rdonly)) == -1){ gotoxy(1,2); put_string("open ERROR"); else { if ((bytes=rfs_read(handle,buff,32767))==-1){ gotoxy(1,2); put_string("read ERROR"); else { sprintf(str,"read=%d",bytes); gotoxy(1,2); put_string(str); rfs_close(handle); resume(off); /* */ powerkey(enable); /* PW OFF */ 139

141 FRH17TJ010 Rev1.00 rfs_remove RAM int rfs_remove(const char *filename); filename filename 0-1 errno errno EACCES ENOENT /* */ #include "apver.h" #include "frh17.h" void main(void) { powerkey(disable); /* PW OFF */ resume(on); /* */ if (rfs_remove("sample.txt")==-1){ gotoxy(1,2); put_string("couldn't delete"); else{ gotoxy(1,2); put_string("deleted"); resume(off); /* */ powerkey(enable); /* PW OFF */ 140

142 FRH17TJ010 Rev1.00 rfs_rename int rfs_rename(char *oldname, char *newname); oldname newname oldname newname 0-1 errno EACCES ENOENT newname oldname oldnamed /* */ #include "apver.h" #include "frh17.h" void main(void) { powerkey(disable); /* PW OFF */ resume(on); /* */ if(rfs_rename("sample.txt","newfile.txt")==-1){ gotoxy(1,2); put_string("rename ERROR"); resume(off); /* */ powerkey(enable); /* PW OFF */ 141

143 FRH17TJ010 Rev1.00 rfs_tell RAM long rfs_tell(int handle); handle handle -1 errno errno EBADF handle /* */ #include <stdio.h> #include "apver.h" #include "frh17.h" void main(void) { int handle; char buff[10],str[15]; powerkey(disable); /* PW OFF */ resume(on); /* */ if ((handle=rfs_open("sample.txt",o_creat O_RDWR))!=-1){ if (rfs_read(handle,buff,10)>0){ sprintf(str,"pos=%ld",rfs_tell(handle)); gotoxy(1,2); put_string(str); rfs_close(handle); resume(off); /* */ powerkey(enable); /* PW OFF */ 142

144 FRH17TJ010 Rev1.00 rfs_write RAM int rfs_write(int handle, const void *buffer, unsigned int count); handle buffer count handle buffer count count -1 errno errno EBADF ENOSPC handle 143

145 FRH17TJ010 Rev1.00 /* */ #include <stdio.h> #include "apver.h" #include "frh17.h" const char Buff[36]="The test of the rfs_write function."; void main(void) { int handle,bytes; char str[10]; powerkey(disable); /* PW OFF */ resume(on); /* */ if ((handle=rfs_open("sample.txt",o_creat O_RDWR O_APPEND)) == -1){ gotoxy(1,2); put_string("open ERROR"); else { if ((bytes=rfs_write(handle,buff,sizeof(buff)))==-1){ gotoxy(1,2); put_string("write ERROR"); else { sprintf(str,"write=%d",bytes); gotoxy(1,2); put_string(str); rfs_close(handle); resume(off); /* */ powerkey(enable); /* PW OFF */ 144

146 FRH17TJ010 Rev1.00 rtcread int rtcread(char *str); str str str str char 13 RTC RTC FALSE str rtcwrite TRUE FALSE 145

147 FRH17TJ010 Rev1.00 /* */ #include "apver.h" #include "frh17.h" void main(void) { char str[13]; int state; unsigned char c; for (;;){ c=keycharread(); if (c==key_f1){ rtcwrite(" "); if (FALSE == rtcread(str)){ /* RTC */ rtcwrite(" "); /* */ gotoxy(1,2); put_string(str); 146

148 FRH17TJ010 Rev1.00 rtcwrite int rtcwrite(char *str); str str str str FALSE TRUE FALSE rtcwrite 147

149 FRH17TJ010 Rev1.00 scanmode int scanmode(int command,scaninfo *sinfo); command sinfo command MODE_DEFAULT sinfo command MODE_GET sinfo command MODE_SET sinfo sinfo -1 sinfo SCANINFO

150 FRH17TJ010 Rev1.00 /* */ #include <stdio.h> #include "apver.h" #include "frh17.h" unsigned char Bcr[128]; void main(void) { SCANINFO mode; int len,state; short bcid; char buff[10]; if(-1==scanmode( MODE_GET, &mode )){ /* */ gotoxy(1, 2); put_string("get ERROR"); mode.read.bit.wpc = 1; /* */ mode.read.bit.code39 = 1; /* */ mode.read.bit.code93 = 0; /* */ mode.read.bit.code128 = 0; /* */ mode.read.bit.nw7 = 1; /* */ mode.read.bit.stf = 1; /* */ mode.read.bit.itf = 1; /* */ if(-1==scanmode( MODE_SET, &mode )){ /* */ gotoxy(1, 7); put_string("set ERROR"); clear_screen(); for(;;){ state=scanwait(&bcid, Bcr, &len); if(state==1){ /* Barcode Read? */ clear_screen(); gotoxy(1, 2); put_string((char *)Bcr); /* */ sprintf(buff,"id=%d",bcid); gotoxy(1, 8); put_string(buff); /* */ sprintf(buff,"len=%d",len); gotoxy(7, 8); put_string(buff); /* lengs */ 149

151 FRH17TJ010 Rev1.00 scanread int scanre d(short * bcid,unsined char *buff,int *len); bcid buff len bcid buff len 1 bcid ID 1 WPC(JAN/EAN/UPC) 2 NW-7 3 Interleaved 2 of 5 4 Industrial 2 of 5 Standard 2 of 5 5 CODE-39 6 CODE-93 7 CODE EAN-128 scanmode OFF OFF

152 FRH17TJ010 Rev1.00 /* */ #include <stdio.h> #include "apver.h" #include "frh17.h" unsigned char Bcr[128]; void main(){ int len,state; unsigned char c; short bcid; char buff[10]; clear_screen(); for(;;){ c=keycharwait(); if(c==key_trg){ state=scanread(&bcid, Bcr, &len); /* Barcode Read? */ if(state==1){ clear_screen(); gotoxy(1, 2); put_string(bcr); /* */ sprintf(buff,"id=%d",bcid); gotoxy(1, 8); put_string(buff); /* */ sprintf(buff,"len=%d",len); gotoxy(7, 8); put_string(buff); /* lengs */ else if(state==0){ clear_screen(); gotoxy(1, 2); put_string("no READ"); /* */ 151

153 FRH17TJ010 Rev1.00 scanwait int scanwait(short *bcid,unsigned char *buff, int *len); bcid buff len 1 CPU SLEEP bcid buff len 1 buff len 1 2 bcid ID 1 WPC(JAN/EAN/UPC) 2 NW-7 3 Interleaved 2 of 5 4 Industrial 2 of 5 Standard 2 of 5 5 CODE-39 6 CODE-93 7 CODE EAN-128 scanmode OFF OFF scanmode 152

154 FRH17TJ010 Rev1.00 shiftkey int shiftkey(int state); state state state ON ON OFF OFF ON keycharwait OFF state ON OFF TRUE FALSE /* */ #include "apver.h" #include "frh17.h" void main(void) { int state; unsigned char c; for (;;){ c=keycharread(); if (c==key_f1){ shiftkey(on); if (c==key_f2){ shiftkey(off); state=shiftkey_state(); if(state==on){ gotoxy(1,2); put_string("shift! ON "); else if(state==off){ gotoxy(1,2); put_string("shift! OFF"); 153

155 FRH17TJ010 Rev1.00 shiftkey_state int sf tkey_state(void); ON ON OFF OFF shiftkey 154

156 FRH17TJ010 Rev1.00 shiftkeylock int shiftkeylock(int state); state state LOCK [S] shiftkey UNLOCK UNLOCK state LOCK UNLOCK TRUE FALSE /* */ #include "apver.h" #include "frh17.h" void main(void) { unsigned char c; unsigned short state; while(1){ c = keycharwait(); if(c==key_f1){ shiftkeylock(lock); else if(c==key_f2){ shiftkeylock(unlock); state=shiftkeylock_state(); if(state==on){ gotoxy(1, 2); put_string("lock:on "); else{ gotoxy(1, 2); put_string("lock:off"); 155

157 FRH17TJ010 Rev1.00 shiftkeylock_state int shiftkeylock_state(void); shiftkeylock LOCK UNLOCK shiftkeylock 156

158 FRH17TJ010 Rev1.00 ss_clear int ss_clear(void); 0-2 /* RST */ #include <string.h> #include "apver.h" #include "frh17.h" const unsigned char r n"; const unsigned char Response[5]="P0 r n"; void main(void) { int i; short c; char buff[5]; if (ss_open() < 0){ /* */ gotoxy(1,2); put_string("open ERROR"); else { ss_clear(); /* */ for (i=0;i<6;i++){ /* */ ss_write(tx_buff[i]); for (i=0;i<4;i++) { /* */ while (!ss_loc()) /* */ ; if ((c = ss_read()) < 0) { /* */ gotoxy(1,2); put_string("read ERROR"); break; buff[i]=(char)c; if(memcmp(buff,response,4)==0) { gotoxy(1,4); put_string("success"); else { gotoxy(1,4); put_string("failure"); ss_close(); /* */ while(1); 157

159 FRH17TJ010 Rev1.00 ss_close int ss_close(void); CPU SS SS OFF SS OFF SS FRH-SD07T 0-2 ss_clear 158

160 FRH17TJ010 Rev1.00 ss_cts_state CTS int ss_cts_state(void); SS CTS CTS Low SETCTS High CLRCTS /* CTS,DSR */ #include "apver.h" #include "frh17.h" void main(void) { if (ss_cts_state() == SETCTS){ /* CTS */ gotoxy(1,2); else { gotoxy(1,4); put_string("cts=low"); put_string("cts=high"); if (ss_dsr_state() == SETDSR){ /* DSR */ gotoxy(1,6); put_string("dsr=low"); else { gotoxy(1,8); put_string("dsr=high"); 159

161 FRH17TJ010 Rev1.00 ss_dsr_state DSR int ss_dsr_state(void); SS DSR DSR Low SETDSR High CLRDSR ss_cts_state 160

162 FRH17TJ010 Rev1.00 ss_dtr DTR int ss_dtr(int state ); state SS DTR state SETDTR DTR Low state CLRDTR DTR High REG ss_register REG state SETDTR CLRDTR -1 REG /* DTR */ #include "apver.h" #include "frh17.h" void main(void) { if (ss_dtr(setdtr) < 0) { /* DTR */ gotoxy(1,2); put_string("setting ERROR"); else { if (ss_dtr_state() == SETDTR) { /* DTR */ gotoxy(1,2); put_string("set DTR"); else { gotoxy(1,2); put_string("failure"); if (ss_dtr(clrdtr) < 0) { /* DTR */ gotoxy(1,4); put_string("setting ERROR"); else { if (ss_dtr_state() == CLRDTR) { /* DTR */ gotoxy(1,4); put_string("clr DTR"); else { gotoxy(1,4); put_string("failure"); 161

163 FRH17TJ010 Rev1.00 ss_dtr_state DTR int ss_dtr_state(void); SS DTR DTR Low SETDTR High CLRDTR ss_dtr 162

164 FRH17TJ010 Rev1.00 ss_loc int ss_loc(void); 0-2 ss_clear 163

165 FRH17TJ010 Rev1.00 ss_open int ss_open(void); SS ON ACTIVE 0-2 SS -4 SS ss_register ss_clear 164

166 FRH17TJ010 Rev1.00 ss_powermode SS int ss_powermode(int command); command SS command MODE_ULTRA SS ULTRA command MODE_SHUT SS SHUT command MODE_AUTO SS ULTRA SHUT command MODE_ACTIVE SS ACTIVE AUTO ULTRA SHUT ss_ultra_time ss_shut_time SS REG ss_register REG SS FRH-SD07T 0 command -1-2 REG SS

167 FRH17TJ010 Rev1.00 /* SS */ #include "apver.h" #include "frh17.h" void main(void) { int sts; if (ss_open() < 0){ gotoxy(1,2); put_string("open ERROR"); else { if (ss_powermode(mode_ultra) < 0) { /* MODE */ gotoxy(1,2); put_string("setting ERROR"); else { for (;;){ if ((sts = ss_powermode_state()) < 0) { /* MODE */ gotoxy(1,2); put_string("failure"); else { if(sts == MODE_ULTRA) { gotoxy(1,2); put_string("ultra MODE"); else { gotoxy(1,2); put_string("mode CHANGE"); break; ss_close(); 166

168 FRH17TJ010 Rev1.00 ss_powermode_state SS int ss_powermode_state(void); SS SS ULTRA MODE_ULTRA SHUT MODE_SHUT AUTO MODE_AUTO ACTIVE MODE_ACTIVE -2 ss_powermode 167

169 FRH17TJ010 Rev1.00 ss_read short ss_read(void); ON 1 ON 1 ON 1 ON 1 ON 1 ON 1 FRH-SD07T -2-3 ss_clear 168

r08.dvi

r08.dvi 19 8 ( ) 019.4.0 1 1.1 (linked list) ( ) next ( 1) (head) (tail) ( ) top head tail head data next 1: NULL nil ( ) NULL ( NULL ) ( 1 ) (double linked list ) ( ) 1 next 1 prev 1 head cur tail head cur prev

More information

ohp08.dvi

ohp08.dvi 19 8 ( ) 2019.4.20 1 (linked list) ( ) next ( 1) (head) (tail) ( ) top head tail head data next 1: 2 (2) NULL nil ( ) NULL ( NULL ) ( 1 ) (double linked list ) ( 2) 3 (3) head cur tail head cur prev data

More information

joho07-1.ppt

joho07-1.ppt 0xbffffc5c 0xbffffc60 xxxxxxxx xxxxxxxx 00001010 00000000 00000000 00000000 01100011 00000000 00000000 00000000 xxxxxxxx x y 2 func1 func2 double func1(double y) { y = y + 5.0; return y; } double func2(double*

More information

‚æ4›ñ

‚æ4›ñ ( ) ( ) ( ) A B C D E F G H I J K L M N O P Q R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9 (OUS) 9 26 1 / 28 ( ) ( ) ( ) A B C D Z a b c d z 0 1 2 9 (OUS) 9

More information

PC Windows 95, Windows 98, Windows NT, Windows 2000, MS-DOS, UNIX CPU

PC Windows 95, Windows 98, Windows NT, Windows 2000, MS-DOS, UNIX CPU 1. 1.1. 1.2. 1 PC Windows 95, Windows 98, Windows NT, Windows 2000, MS-DOS, UNIX CPU 2. 2.1. 2 1 2 C a b N: PC BC c 3C ac b 3 4 a F7 b Y c 6 5 a ctrl+f5) 4 2.2. main 2.3. main 2.4. 3 4 5 6 7 printf printf

More information

(300, 150) 120 getchar() HgBox(x, y, w, h) (x, y), w, h #include <stdio.h> #include <handy.h> int main(void) { int i; double w, h; } HgO

(300, 150) 120 getchar() HgBox(x, y, w, h) (x, y), w, h #include <stdio.h> #include <handy.h> int main(void) { int i; double w, h; } HgO Handy Graphic for Handy Graphic Version 0.5 2008-06-09 1 Handy Graphic Handy Graphic C Handy Graphic Handy Graphic Mac OS X Handy Graphic HgDisplayer Handy Graphic HgDisplayer 2 Handy Graphic 1 Handy Graphic

More information

Nios® II HAL API を使用したソフトウェア・サンプル集 「Modular Scatter-Gather DMA Core」

Nios® II HAL API を使用したソフトウェア・サンプル集 「Modular Scatter-Gather DMA Core」 ALTIMA Company, MACNICA, Inc Nios II HAL API Modular Scatter-Gather DMA Core Ver.17.1 2018 8 Rev.1 Nios II HAL API Modular Scatter-Gather DMA Core...3...3...4... 4... 5 3-2-1. msgdma... 6 3-2-2. On-Chip

More information

PowerPoint Presentation

PowerPoint Presentation p.130 p.198 p.208 2 double weight[num]; double min, max; min = max = weight[0]; for( i= 1; i i < NUM; i++ ) ) if if ( weight[i] > max ) max = weight[i]: if if ( weight[i] < min ) min = weight[i]: weight

More information

H02_ROM_ indd

H02_ROM_ indd ESC/P ESC/P IBM 5557-H02 ESC/P ESC/P IBM 5557-H02 ESC/P VP5074 IBM 5579/5577/5573 ESC/P ESC/P ESC/P ESC/P IBM 5557-H02 ESC/P ESC/P ESC/P / CD ESC/P ESC/P 289 IBM 5557-H02 / ESC R ESC t ESC X ESC / ESC

More information

2008 DS T050049

2008 DS T050049 DS T050049. PSP DS DS DS RPG DS OS Windows XP DevkiPro OS DS CPU ARM devkitarm MSYS MinGW MSYS MinGW Unix OS C++ C++ make nds nds DS DS micro SD Card nds DS DS DS nds C Java C++ nds nds DS 2008 DS T050049

More information

スライド 1

スライド 1 RX62N 周辺機能紹介データフラッシュ データ格納用フラッシュメモリ ルネサスエレクトロニクス株式会社ルネサス半導体トレーニングセンター 2013/08/02 Rev. 1.00 00000-A コンテンツ データフラッシュの概要 プログラムサンプル 消去方法 書き込み方法 読み出し方法 FCUのリセット プログラムサンプルのカスタマイズ 2 データフラッシュの概要 3 データフラッシュとは フラッシュメモリ

More information

II ( ) prog8-1.c s1542h017%./prog8-1 1 => 35 Hiroshi 2 => 23 Koji 3 => 67 Satoshi 4 => 87 Junko 5 => 64 Ichiro 6 => 89 Mari 7 => 73 D

II ( ) prog8-1.c s1542h017%./prog8-1 1 => 35 Hiroshi 2 => 23 Koji 3 => 67 Satoshi 4 => 87 Junko 5 => 64 Ichiro 6 => 89 Mari 7 => 73 D II 8 2003 11 12 1 6 ( ) prog8-1.c s1542h017%./prog8-1 1 => 35 Hiroshi 2 => 23 Koji 3 => 67 Satoshi 4 => 87 Junko 5 => 64 Ichiro 6 => 89 Mari 7 => 73 Daisuke 8 =>. 73 Daisuke 35 Hiroshi 64 Ichiro 87 Junko

More information

K227 Java 2

K227 Java 2 1 K227 Java 2 3 4 5 6 Java 7 class Sample1 { public static void main (String args[]) { System.out.println( Java! ); } } 8 > javac Sample1.java 9 10 > java Sample1 Java 11 12 13 http://java.sun.com/j2se/1.5.0/ja/download.html

More information

untitled

untitled II yacc 005 : 1, 1 1 1 %{ int lineno=0; 3 int wordno=0; 4 int charno=0; 5 6 %} 7 8 %% 9 [ \t]+ { charno+=strlen(yytext); } 10 "\n" { lineno++; charno++; } 11 [^ \t\n]+ { wordno++; charno+=strlen(yytext);}

More information

1 C STL(1) C C C libc C C C++ STL(Standard Template Library ) libc libc C++ C STL libc STL iostream Algorithm libc STL string vector l

1 C STL(1) C C C libc C C C++ STL(Standard Template Library ) libc libc C++ C STL libc STL iostream Algorithm libc STL string vector l C/C++ 2007 6 18 1 C STL(1) 2 1.1............................................... 2 1.2 stdio................................................ 3 1.3.......................................... 10 2 11 2.1 sizeof......................................

More information

卒 業 研 究 報 告.PDF

卒 業 研 究 報 告.PDF C 13 2 9 1 1-1. 1-2. 2 2-1. 2-2. 2-3. 2-4. 3 3-1. 3-2. 3-3. 3-4. 3-5. 3-5-1. 3-5-2. 3-6. 3-6-1. 3-6-2. 4 5 6 7-1 - 1 1 1-1. 1-2. ++ Lisp Pascal Java Purl HTML Windows - 2-2 2 2-1. 1972 D.M. (Dennis M Ritchie)

More information

ohp03.dvi

ohp03.dvi 19 3 ( ) 2019.4.20 CS 1 (comand line arguments) Unix./a.out aa bbb ccc ( ) C main void int main(int argc, char *argv[]) {... 2 (2) argc argv argc ( ) argv (C char ) ( 1) argc 4 argv NULL. / a. o u t \0

More information

HA8000-bdシリーズ RAID設定ガイド HA8000-bd/BD10X2

HA8000-bdシリーズ RAID設定ガイド HA8000-bd/BD10X2 HB102050A0-4 制限 補足 Esc Enter Esc Enter Esc Enter Main Advanced Server Security Boot Exit A SATA Configuration SATA Controller(s) SATA Mode Selection [Enabled] [RAID] Determines how

More information

r07.dvi

r07.dvi 19 7 ( ) 2019.4.20 1 1.1 (data structure ( (dynamic data structure 1 malloc C free C (garbage collection GC C GC(conservative GC 2 1.2 data next p 3 5 7 9 p 3 5 7 9 p 3 5 7 9 1 1: (single linked list 1

More information

void hash1_init(int *array) int i; for (i = 0; i < HASHSIZE; i++) array[i] = EMPTY; /* i EMPTY */ void hash1_insert(int *array, int n) if (n < 0 n >=

void hash1_init(int *array) int i; for (i = 0; i < HASHSIZE; i++) array[i] = EMPTY; /* i EMPTY */ void hash1_insert(int *array, int n) if (n < 0 n >= II 14 2018 7 26 : : proen@mm.ics.saitama-u.ac.jp 14,, 8 2 12:00 1 O(1) n O(n) O(log n) O(1) 32 : 1G int 4 250 M 2.5 int 21 2 0 100 0 100 #include #define HASHSIZE 100 /* */ #define NOTFOUND 0

More information

REVISION 2.85(6).I 1

REVISION 2.85(6).I 1 REVISION 2.85(6).I 1 2 3 4 5 6 7 8 KDC300 ユーザーマニュアル 1.1 同梱物 本機のパッケージには 以下の物が同梱されています 1 2 3 4 本体 バーコード Data Collector 1 台 USB ケーブル 1本 ネックストラップ 1 本 ソフトウェアとユーザーマニュアルを含む CD-ROM 1枚 KTSync - XP, Vista,Windows7,

More information

ohp07.dvi

ohp07.dvi 19 7 ( ) 2019.4.20 1 (data structure) ( ) (dynamic data structure) 1 malloc C free 1 (static data structure) 2 (2) C (garbage collection GC) C GC(conservative GC) 2 2 conservative GC 3 data next p 3 5

More information

2

2 REVISION 2.85(6).I 2 3 4 5 8 24 32 37 83 87 88 88 89 90 1 91 1 6 7 8 KDC200 ユーザーマニュアル 1.1 同梱物 本機のパッケージには 以下の物が同梱されています 1 2 3 4 本体 バーコード Data Collector 1 台 USB ケーブル 1本 ネックストラップ 1 本 ソフトウェアとユーザーマニュアルを含む CD-ROM

More information

double float

double float 2015 3 13 1 2 2 3 2.1.......................... 3 2.2............................. 3 3 4 3.1............................... 4 3.2 double float......................... 5 3.3 main.......................

More information

For_Beginners_CAPL.indd

For_Beginners_CAPL.indd CAPL Vector Japan Co., Ltd. 目次 1 CAPL 03 2 CAPL 03 3 CAPL 03 4 CAPL 04 4.1 CAPL 4.2 CAPL 4.3 07 5 CAPL 08 5.1 CANoe 5.2 CANalyzer 6 CAPL 10 7 CAPL 11 7.1 CAPL 7.2 CAPL 7.3 CAPL 7.4 CAPL 16 7.5 18 8 CAPL

More information

haskell.gby

haskell.gby Haskell 1 2 3 Haskell ( ) 4 Haskell Lisper 5 Haskell = Haskell 6 Haskell Haskell... 7 qsort [8,2,5,1] [1,2,5,8] "Hello, " ++ "world!" "Hello, world!" 1 + 2 div 8 2 (+) 1 2 8 div 2 3 4 map even [1,2,3,4]

More information

DCR-HC30/HC40

DCR-HC30/HC40 3-088-339-02(1) DCR-HC30/HC40 DCR-HC30/ HC40 8~12 13 24 46 58 86 106 121 134 2004 Sony Corporation 2 3 4 5 6 k 7 1 k 2 1 Z 2 3 Z 8 9 3 k 4 1 k 2 B 10 11 3 k 4 12 13 1 b 2 v v 3 4 5 14 CHG 1 2 3 0% 50%

More information

I ASCII ( ) NUL 16 DLE SP P p 1 SOH 17 DC1! 1 A Q a q STX 2 18 DC2 " 2 B R b

I ASCII ( ) NUL 16 DLE SP P p 1 SOH 17 DC1! 1 A Q a q STX 2 18 DC2  2 B R b I 4 003 4 30 1 ASCII ( ) 0 17 0 NUL 16 DLE SP 0 @ P 3 48 64 80 96 11 p 1 SOH 17 DC1! 1 A Q a 33 49 65 81 97 113 q STX 18 DC " B R b 34 50 66 8 98 114 r 3 ETX 19 DC3 # 3 C S c 35 51 67 83 99 115 s 4 EOT

More information

1-4 int a; std::cin >> a; std::cout << "a = " << a << std::endl; C++( 1-4 ) stdio.h iostream iostream.h C++ include.h 1-4 scanf() std::cin >>

1-4 int a; std::cin >> a; std::cout << a =  << a << std::endl; C++( 1-4 ) stdio.h iostream iostream.h C++ include.h 1-4 scanf() std::cin >> 1 C++ 1.1 C C++ C++ C C C++ 1.1.1 C printf() scanf() C++ C hello world printf() 1-1 #include printf( "hello world\n" ); C++ 1-2 std::cout

More information

Condition DAQ condition condition 2 3 XML key value

Condition DAQ condition condition 2 3 XML key value Condition DAQ condition 2009 6 10 2009 7 2 2009 7 3 2010 8 3 1 2 2 condition 2 3 XML key value 3 4 4 4.1............................. 5 4.2...................... 5 5 6 6 Makefile 7 7 9 7.1 Condition.h.............................

More information

untitled

untitled CHAP. 1 ---------------------------------------------------------------- 5 1-1. ---------------------------------------------------------------- 5 1-2. ----------------------------------------------------------------

More information

r03.dvi

r03.dvi 19 ( ) 019.4.0 CS 1 (comand line arguments) Unix./a.out aa bbb ccc ( ) C main void... argc argv argc ( ) argv (C char ) ( 1) argc 4 argv NULL. / a. o u t \0 a a \0 b b b \0 c c c \0 1: // argdemo1.c ---

More information

slide

slide // Filename: Example701.ino(AllTest.ino) // Author: Akinori TSuji #include "FastLED.h" #include "SparkFunBME280.h" #include "RTClib.h" #include "LiquidCrystal_I2C.h" #define LED_PIN 13 #define DATA_PIN

More information

Java Java Java Java Java 4 p * *** ***** *** * Unix p a,b,c,d 100,200,250,500 a*b = a*b+c = a*b+c*d = (a+b)*(c+d) = 225

Java Java Java Java Java 4 p * *** ***** *** * Unix p a,b,c,d 100,200,250,500 a*b = a*b+c = a*b+c*d = (a+b)*(c+d) = 225 Java Java Java Java Java 4 p35 4-2 * *** ***** *** * Unix p36 4-3 a,b,c,d 100,200,250,500 a*b = 20000 a*b+c = 20250 a*b+c*d = 145000 (a+b)*(c+d) = 225000 a+b*c+d = 50600 b/a+d/c = 4 p38 4-4 (1) mul = 1

More information

double 2 std::cin, std::cout 1.2 C fopen() fclose() C++ std::fstream 1-3 #include <fstream> std::fstream fout; int a = 123; fout.open( "data.t

double 2 std::cin, std::cout 1.2 C fopen() fclose() C++ std::fstream 1-3 #include <fstream> std::fstream fout; int a = 123; fout.open( data.t C++ 1 C C++ C++ C C C++ 1.1 C printf() scanf() C++ C 1-1 #include int a; scanf( "%d", &a ); printf( "a = %d\n", a ); C++ 1-2 int a; std::cin >> a; std::cout

More information

program.dvi

program.dvi 2001.06.19 1 programming semi ver.1.0 2001.06.19 1 GA SA 2 A 2.1 valuename = value value name = valuename # ; Fig. 1 #-----GA parameter popsize = 200 mutation rate = 0.01 crossover rate = 1.0 generation

More information

:30 12:00 I. I VI II. III. IV. a d V. VI

:30 12:00 I. I VI II. III. IV. a d V. VI 2017 2017 08 03 10:30 12:00 I. I VI II. III. IV. a d V. VI. 80 100 60 1 I. Backus-Naur BNF X [ S ] a S S ; X X X, S [, a, ], ; BNF X (parse tree) (1) [a;a] (2) [[a]] (3) [a;[a]] (4) [[a];a] : [a] X 2 222222

More information

- - http://168iroha.net 018 10 14 i 1 1 1.1.................................................... 1 1.................................................... 7.1................................................

More information

:30 12:00 I. I VI II. III. IV. a d V. VI

:30 12:00 I. I VI II. III. IV. a d V. VI 2018 2018 08 02 10:30 12:00 I. I VI II. III. IV. a d V. VI. 80 100 60 1 I. Backus-Naur BNF N N y N x N xy yx : yxxyxy N N x, y N (parse tree) (1) yxyyx (2) xyxyxy (3) yxxyxyy (4) yxxxyxxy N y N x N yx

More information

超初心者用

超初心者用 3 1999 10 13 1. 2. hello.c printf( Hello, world! n ); cc hello.c a.out./a.out Hello, world printf( Hello, world! n ); 2 Hello, world printf n printf 3. ( ) int num; num = 100; num 100 100 num int num num

More information

ARM gcc Kunihiko IMAI 2009 1 11 ARM gcc 1 2 2 2 3 3 4 3 4.1................................. 3 4.2............................................ 4 4.3........................................

More information

DA100データアクイジションユニット通信インタフェースユーザーズマニュアル

DA100データアクイジションユニット通信インタフェースユーザーズマニュアル Instruction Manual Disk No. RE01 6th Edition: November 1999 (YK) All Rights Reserved, Copyright 1996 Yokogawa Electric Corporation 801234567 9 ABCDEF 1 2 3 4 1 2 3 4 1 2 3 4 1 2

More information

PowerPoint Presentation

PowerPoint Presentation For experiment coordinators CREST, JST Go IWAI 2004/09/05 Introduction to CLDAQ for experiment coordinators 2 2004/09/05 Introduction to CLDAQ for experiment coordinators 3 2004/09/05 Introduction to CLDAQ

More information

MultiWriter 5650F 活用マニュアル

MultiWriter 5650F 活用マニュアル 1 2 3 4 5 6 7 8 4 9 10 11 12 1 2 3 4 5 6 7 8 9 10 11 12 13 1 2 3 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 1 2 3 a b c 32 33 34 35 2 ± 36 2 2 ± * 37 * 38 39 40 41 42 43 44 45 46 47 1 2 @:./

More information

GM-F520S/GM-F470S/GM-F420S

GM-F520S/GM-F470S/GM-F420S GM-F520S GM-F470S GM-F420S LCT2504-002A-H 2 3 4 200 150 150 50 1 3 4 1 2 3 1 2 3 4 5 e 6 7 8 9 p q w r t 5 6 5 23 7 8 9 p q 4 5 6 7 8 9 2 3 4 5 5 23 6 7 8 9 w 1 2 e r t p p 5 6 9( 3 DVI-D (HDCP) RGB IN

More information

I. Backus-Naur BNF S + S S * S S x S +, *, x BNF S (parse tree) : * x + x x S * S x + S S S x x (1) * x x * x (2) * + x x x (3) + x * x + x x (4) * *

I. Backus-Naur BNF S + S S * S S x S +, *, x BNF S (parse tree) : * x + x x S * S x + S S S x x (1) * x x * x (2) * + x x x (3) + x * x + x x (4) * * 2015 2015 07 30 10:30 12:00 I. I VI II. III. IV. a d V. VI. 80 100 60 1 I. Backus-Naur BNF S + S S * S S x S +, *, x BNF S (parse tree) : * x + x x S * S x + S S S x x (1) * x x * x (2) * + x x x (3) +

More information

ESP8266-CORE-R Copyrig

ESP8266-CORE-R Copyrig ESP8266-CORE-R1 http://www.microfan.jp/ https://store.shopping.yahoo.co.jp/microfan/ https://www.amazon.co.jp/s?merchant=a28nhprkjdc95b 2018 3 Copyright c 2017-2018 MicroFan, All Rights Reserved. i 1 ESP8266-CORE-R1

More information

N Express5800/R320a-E4 N Express5800/R320a-M4 ユーザーズガイド

N Express5800/R320a-E4  N Express5800/R320a-M4  ユーザーズガイド 7 7 Phoenix BIOS 4.0 Release 6.0.XXXX : CPU=Pentium III Processor XXX MHz 0640K System RAM Passed 0127M Extended RAM Passed WARNING 0212: Keybord Controller Failed. : Press to resume, to setup

More information

Express5800/R320a-E4, Express5800/R320b-M4ユーザーズガイド

Express5800/R320a-E4, Express5800/R320b-M4ユーザーズガイド 7 7 Phoenix BIOS 4.0 Release 6.0.XXXX : CPU=Pentium III Processor XXX MHz 0640K System RAM Passed 0127M Extended RAM Passed WARNING 0212: Keybord Controller Failed. : Press to resume, to setup

More information

ex12.dvi

ex12.dvi 1 0. C, char., char, 0,. C, ("),., char str[]="abc" ; str abc.,, str 4. str 3. char str[10]="abc" ;, str 10, str 3., char s[]="abc", t[10] ;, t = s. ASCII, 0x00 0x7F, char., "abc" 3, 1. 1 8 256, 2., 2

More information

untitled

untitled H8/300,H8S,H8SX [H8S,H8/300 Tool Chain Ver6.2.0.0] #define Inline static inline //************************************************** Inline char sil_and_mem(char *mem,char and) return (*((volatile

More information

BRADY Worldwide, Inc. BRADY BRADY BRADY BMP 51 BRADY Worldwide, Inc. Microsoft Windows Microsoft BRADY 2011 BRADY Worldwide, Inc. All Rights Reserved

BRADY Worldwide, Inc. BRADY BRADY BRADY BMP 51 BRADY Worldwide, Inc. Microsoft Windows Microsoft BRADY 2011 BRADY Worldwide, Inc. All Rights Reserved BRADY Worldwide, Inc. BRADY BRADY BRADY BMP 51 BRADY Worldwide, Inc. Microsoft Windows Microsoft BRADY 2011 BRADY Worldwide, Inc. All Rights Reserved 2011 2 2 Brady Worldwide Inc. 6555 West Good Hope Road

More information

A/B (2018/10/19) Ver kurino/2018/soft/soft.html A/B

A/B (2018/10/19) Ver kurino/2018/soft/soft.html A/B A/B (2018/10/19) Ver. 1.0 kurino@math.cst.nihon-u.ac.jp http://edu-gw2.math.cst.nihon-u.ac.jp/ kurino/2018/soft/soft.html 2018 10 19 A/B 1 2018 10 19 2 1 1 1.1 OHP.................................... 1

More information

C B

C B C 095707B 2010 6 8 1 LEVE1 2 1.1 LEVEL 1.1................................................ 2 1.1.1 1................................................ 2 1.1.2 1.2..............................................

More information

untitled

untitled HT630 - 1 - 1... 4 1.1...4 1.2...4 1.3 HT630...4 1.4...5... 5... 5 1.5...6 HT630... 6... 6... 7... 8... 8 PC... 8 1.6...9 1.7...9... 9... 9... 10 1.8...10 1.9...10 JobGen Plus... 10 2... 11 2.1...11...

More information

Express5800/320Fc-MR

Express5800/320Fc-MR 7 7 Phoenix BIOS 4.0 Release 6.0.XXXX : CPU=Pentium III Processor XXX MHz 0640K System RAM Passed 0127M Extended RAM Passed WARNING 0212: Keybord Controller Failed. : Press to resume, to setup

More information

I. Backus-Naur BNF : N N 0 N N N N N N 0, 1 BNF N N 0 11 (parse tree) 11 (1) (2) (3) (4) II. 0(0 101)* (

I. Backus-Naur BNF : N N 0 N N N N N N 0, 1 BNF N N 0 11 (parse tree) 11 (1) (2) (3) (4) II. 0(0 101)* ( 2016 2016 07 28 10:30 12:00 I. I VI II. III. IV. a d V. VI. 80 100 60 1 I. Backus-Naur BNF : 11011 N N 0 N N 11 1001 N N N N 0, 1 BNF N N 0 11 (parse tree) 11 (1) 1100100 (2) 1111011 (3) 1110010 (4) 1001011

More information

C¥×¥í¥°¥é¥ß¥ó¥° ÆþÌç

C¥×¥í¥°¥é¥ß¥ó¥° ÆþÌç C (3) if else switch AND && OR (NOT)! 1 BMI BMI BMI = 10 4 [kg]) ( [cm]) 2 bmi1.c Input your height[cm]: 173.2 Enter Input your weight[kg]: 60.3 Enter Your BMI is 20.1. 10 4 = 10000.0 1 BMI BMI BMI = 10

More information

MINI2440マニュアル

MINI2440マニュアル ARM Cortex-M3 STM32F103 (GCC TOPPERS/ASP ) http://www.nissin-tech.com info@nissin-tech.com 2009/10/15 copyright@2009 1 STM32F103...3 STM32...4...8 3.1...8 3.2...9 3.3...13 KEIL...19 4.1 KEIL...19 4.2...22

More information

CM-3G 周辺モジュール拡張技術文書 MS5607センサ(温度、気圧)

CM-3G 周辺モジュール拡張技術文書 MS5607センサ(温度、気圧) CM-3G 周辺モジュール拡張技術文書 MS5607 センサ ( 温度 気圧 ) ( 第 1 版 ) Copyright (C)2016 株式会社コンピューテックス 目次 1. はじめに... 1 2. MS5607 について... 1 3. 接続図... 1 4. アプリケーション ソース... 2 5. アプリケーションのコンパイル方法... 7 6. アプリケーションの実行... 8 1. はじめに

More information

RQT5597-S

RQT5597-S -S + - +- 30-2 30 + - 3 SPEAKERS(SB-PM35) SPEAKERS(SB-PM35) + - - + + - - + 3 FM ANT 75 GND AM ANT LOOP EXT 2 3 HIGH(6 ) LOW(6 ) L R 2 HIG L R 3 2 FM ANT 75 AM ANT LOOP EXT AC IN R L AUX SPEAKERS(SB-PM35)

More information

新・明解C言語 実践編

新・明解C言語 実践編 第 1 章 見 21 1-1 見えないエラー 見 List 1-1 "max2x1.h" a, b max2 List 1-1 chap01/max2x1.h max2 "max2x1.h" #define max2(a, b) ((a) > (b)? (a) : (b)) max2 List 1-2 List 1-2 chap01/max2x1test.c max2 #include

More information

C言語によるアルゴリズムとデータ構造

C言語によるアルゴリズムとデータ構造 Algorithms and Data Structures in C 4 algorithm List - /* */ #include List - int main(void) { int a, b, c; int max; /* */ Ÿ 3Ÿ 2Ÿ 3 printf(""); printf(""); printf(""); scanf("%d", &a); scanf("%d",

More information

Untitled

Untitled AtTiny85 (TS119-5 ) ------------------------------------------ Ver-1.0 23.Aug.2016 S.S 9 5 CPU EE-PROM TS119-5(7 +α ) #include #define KEYIN 2 #define BUZZER 3 #define LED 5 #define stsound1

More information

第5回お試しアカウント付き並列プログラミング講習会

第5回お試しアカウント付き並列プログラミング講習会 qstat -l ID (qstat -f) qscript ID BATCH REQUEST: 253443.batch1 Name: test.sh Owner: uid=32637, gid=30123 Priority: 63 State: 1(RUNNING) Created at: Tue Jun 30 05:36:24 2009 Started at: Tue Jun 30 05:36:27

More information

FreeBSD 1

FreeBSD 1 FreeBSD 1 UNIX OS 1 ( ) open, close, read, write, ioctl (cdevsw) OS DMA 2 (8 ) (24 ) 256 open/close/read/write Ioctl 3 2 2 I/O I/O CPU 4 open/close/read/write open, read, write open/close read/write /dev

More information

thesis.dvi

thesis.dvi H8 e041220 2009 2 Copyright c 2009 by Kentarou Nagashima c 2009 Kentarou Nagashima All rights reserved , H8.,,,..,.,., AKI-H8/3052LAN. OS. OS H8 Write Turbo. H8 C, Cygwin.,., windows. UDP., (TA7279P).,.

More information

MultiWriter 5100F 活用マニュアル

MultiWriter 5100F 活用マニュアル 1 2 3 4 5 6 7 8 9 10 - 11 12 1 2 3 4 5 6 7 8 9 10 11 12 13 1 2 3 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 1 2 3 (1) (2) (3) 31 32 33 34 35 2 2 2 ± 36 2 2 * * 37 38 39 40 41 42 43 44 * 45 46 47

More information

untitled

untitled EPX-64S Rev 1.2 1.. 3 1.1.......... 3 1.2....... 3 1.3....... 4 1.4... 4 1.5... 4 2........ 5 2.1.... 5 EPX64S_GetNumberOfDevices........ 5 EPX64S_GetSerialNumber........ 6 EPX64S_Open....... 7 EPX64S_OpenBySerialNumber

More information

LC304_manual.ai

LC304_manual.ai Stick Type Electronic Calculator English INDEX Stick Type Electronic Calculator Instruction manual INDEX Disposal of Old Electrical & Electronic Equipment (Applicable in the European Union

More information

Express5800/R110a-1Hユーザーズガイド

Express5800/R110a-1Hユーザーズガイド 4 Phoenix BIOS 4.0 Release 6.0.XXXX : CPU=Xeon Processor XXX MHz 0640K System RAM Passed 0127M Extended RAM Passed WARNING 0B60: DIMM group #1 has been disabled. : Press to resume, to

More information

mstrcpy char *mstrcpy(const char *src); mstrcpy malloc (main free ) stdio.h fgets char *fgets(char *s, int size, FILE *stream); s size ( )

mstrcpy char *mstrcpy(const char *src); mstrcpy malloc (main free ) stdio.h fgets char *fgets(char *s, int size, FILE *stream); s size ( ) 2008 3 10 1 mstrcpy char *mstrcpy(const char *src); mstrcpy malloc (main free ) stdio.h fgets char *fgets(char *s, int size, FILE *stream); s size ( ) stream FILE ( man ) 40 ( ) %./a.out String : test

More information

(Version 3)

(Version 3) (Version 3) 1 2 DIGITAL MIXER model D-901 1 7 PEAK 1 2 8 +12dB 2 +6dB UTILITY 3 4 9 10 0dB -6dB 3 4 PRESET LOCK 5 11 6 12 SEL SIG 0N 0N SIG SEL SEL -12dB -20dB -40dB 5 6 7 POWER OFF 1 ENTRY SECTI

More information

FMUP-204取扱説明書

FMUP-204取扱説明書 B6FY441101 Z000 American Power Conversion Corporation SmartUPS PowerChute Schneider Electric Industries S.A.S American Power Conversion Corporation Microsoft Windows Windows Server Microsoft Corporation

More information

untitled

untitled II 4 Yacc Lex 2005 : 0 1 Yacc 20 Lex 1 20 traverse 1 %% 2 [0-9]+ { yylval.val = atoi((char*)yytext); return NUM; 3 "+" { return + ; 4 "*" { return * ; 5 "-" { return - ; 6 "/" { return / ; 7 [ \t] { /*

More information

表紙

表紙 Copyright 2004 CASIO COMPUTER CO., LTD..All rights reserved. 1... 2 2... 2 2-1... 2 2-2... 2 2-2-1 API... 2 2-2-2... 18 2-3... 21 2-3-1... 21 2-3-2... 21 2-3-3... 21 2-3-4 (VDETP)... 21 2-3-5... 21 2-3-6...

More information

RQT597 LIGHT DEMO

RQT597 LIGHT DEMO LIGHT DEMO v RQT597-S RQT597 LIGHT DEMO RQT597 RQT597 RQT597 () PUSH OPEN USB P-MD PHONES RQT597 () RQT597 () HIGH (6 Ω) LOW (6 Ω) L R R HIGH (6 Ω) LOW (6 Ω) L RQT597 \ \ AM ANT EXT LOOP GND 75 Ω FM ANT

More information

CLOCK/ AUTO OFF TIMER SLEEP DISPLAY DISC ABC DEF TITLE SEARCH GHI JKL MNO TITLE IN CHARA PQRS TUV WXYZ AREA ENTER PROGRAM SPACE! # D

CLOCK/ AUTO OFF TIMER SLEEP DISPLAY DISC ABC DEF TITLE SEARCH GHI JKL MNO TITLE IN CHARA PQRS TUV WXYZ AREA ENTER PROGRAM SPACE! # D CLOCK/ AUTO OFF TIMER SLEEP DISPLAY DISC ABC DEF 2 3 TITLE SEARCH GHI JKL MNO 4 5 6 TITLE IN CHARA PQRS TUV WXYZ 7 8 9 PROGRAM SPACE! # DEL 0 7 REC LEVEL VOL 3 4 VOL z PLAY/ REC LIGHT ALBUM/GROUP INTRO

More information

Informatics 2014

Informatics 2014 C 計算機の歴史 手回し計算機 新旧のソロバン バベッジの階差機関 スパコン ENIAC (1946) パソコン 大型汎用計算機 電卓 現在のコンピュータ Input Output Device Central Processing Unit I/O CPU Memory OS (Operating System) OS Windows 78, Vista, XP Windows Mac OS X

More information

2009 T060050

2009 T060050 T060050 C++ Microsoft Visual C++ 2008 Express Edition DX C DX VC++ Debug exe 1 2 2009 T060050 1 1 2 1 2.1...................... 1 2.2....................... 2 3 3 3.1................... 3 3.2.....................

More information

2

2 2 3 4 5 6 7 8 9 10 11 12 11 10 9 8 7 5 4 2 LENS SHIFT FOCUS ZOOM MENU SELECT ENTER INDICATOR POWER - + ON ON/OFF OFF CANCEL STATUS 6 3 1 1 2 3 4 6 7 8 9 10 11 5 13 5 6 1 2 3 4 INPUT3 RGB OPTION IN OUT

More information

Arduino UNO IS Report No. Report Medical Information System Laboratory

Arduino UNO IS Report No. Report Medical Information System Laboratory Arduino UNO 2015 2 25 IS Report No. Report Medical Information System Laboratory Abstract ( ) Arduino / Arduino Bluetooth Bluetooth : Arduino Arduino UNO Arduino IDE micro computer LED 1............................

More information

Express5800/R320a-E4/Express5800/R320b-M4ユーザーズガイド

Express5800/R320a-E4/Express5800/R320b-M4ユーザーズガイド 7 7 障害箇所の切り分け 万一 障害が発生した場合は ESMPRO/ServerManagerを使って障害の発生箇所を確認し 障害がハー ドウェアによるものかソフトウェアによるものかを判断します 障害発生個所や内容の確認ができたら 故障した部品の交換やシステム復旧などの処置を行います 障害がハードウェア要因によるものかソフトウェア要因によるものかを判断するには E S M P R O / ServerManagerが便利です

More information

EQUIUM EQUIUM S5010 1

EQUIUM EQUIUM S5010 1 EQUIUM EQUIUM S5010 1 1 1 2 3 4 2 1 2 3 2 3 1 2 3 4 5 6 7 4 1 2 5 1 2 6 1 7 1 2 3 4 5 6 7 1 2 3 4 5 6 3 7 8 9 1 2 3 4 4 5 6 7 8 1 1 2 3 4 10 1 11 12 1 13 14 1 15 16 1 1 2 3 17 1 2 3 18 4 5 6 1 19 1 2 3

More information

Quartus II ハンドブック Volume 5、セクションIV. マルチプロセッサの調整

Quartus II ハンドブック  Volume 5、セクションIV. マルチプロセッサの調整 IV. SOPC Builder Nios II 9 Avalon Mutex 10 Avalon Mailbox 9 10 / 9 v5.1.0 2005 5 v5.0.0 Nios II 2004 12 v1.0 10 v5.1.0 2005 5 v5.0.0 Altera Corporation IV 1 Quartus II Volume 5 IV 2 Altera Corporation

More information

programmingII2019-v01

programmingII2019-v01 II 2019 2Q A 6/11 6/18 6/25 7/2 7/9 7/16 7/23 B 6/12 6/19 6/24 7/3 7/10 7/17 7/24 x = 0 dv(t) dt = g Z t2 t 1 dv(t) dt dt = Z t2 t 1 gdt g v(t 2 ) = v(t 1 ) + g(t 2 t 1 ) v v(t) x g(t 2 t 1 ) t 1 t 2

More information

SystemC 2.0を用いた簡易CPUバスモデルの設計

SystemC 2.0を用いた簡易CPUバスモデルの設計 SystemC 2.0 CPU CPU CTD&SW CT-PF 2002/1/23 1 CPU BCA UTF GenericCPU IO (sc_main) 2002/1/23 2 CPU CPU CQ 1997 11 Page 207 4 Perl Verilog-HDL CPU / Verilog-HDL SystemC 2.0 (asm) ROM (test.hex) 2002/1/23

More information

2

2 3G DN-300SE USB 2013 3 12 2 1.... 4 2.... 6 2.1.... 6 2.2. OS... 6 3.... 7 3.1.... 7 3.2.... 7 4....8 4.1.... 8 4.2. ALARM STOP... 10 4.3.... 10 5.... 11 5.1.... 11 6.... 12 6.1. (Windows Vista / 7 / 8

More information

8 / 0 1 i++ i 1 i-- i C !!! C 2

8 / 0 1 i++ i 1 i-- i C !!! C 2 C 2006 5 2 printf() 1 [1] 5 8 C 5 ( ) 6 (auto) (static) 7 (=) 1 8 / 0 1 i++ i 1 i-- i 1 2 2.1 C 4 5 3 13!!! C 2 2.2 C ( ) 4 1 HTML はじめ mkdir work 作業用ディレクトリーの作成 emacs hoge.c& エディターによりソースプログラム作成 gcc -o fuga

More information

inst.c

inst.c 1#include 2#include 3#include // 乱乱乱乱 PC 内ののの規規に従っっ 疑疑乱乱を発発ささの 4#include // 現現の時時を秒乱で返す乱乱 5 6#define DATA BIT0 // DATA P2.0 7#define CLOCK BIT1 // CLOCK P2.1

More information

...5...6...7...8...9...10...12...12...12...18...21...23...23...23...24...24...24...24...25...26...26...26...27...33...33...33...33...33...34...35...36

...5...6...7...8...9...10...12...12...12...18...21...23...23...23...24...24...24...24...25...26...26...26...27...33...33...33...33...33...34...35...36 REVISION 2.85(6).H ...5...6...7...8...9...10...12...12...12...18...21...23...23...23...24...24...24...24...25...26...26...26...27...33...33...33...33...33...34...35...36...36...36...37...38...39 2 ...39...42...42...42...43...43...44...45...46...46...47...48...48...49...50...51...52...53...55...56...56...58...60...62...64...66...68...68...69...71...71...71...71...72...72...73...74...74...74...74

More information

解きながら学ぶC++入門編

解きながら学ぶC++入門編 !... 38!=... 35 "... 112 " "... 311 " "... 4, 264 #... 371 #define... 126, 371 #endif... 369 #if... 369 #ifndef... 369 #include... 3, 311 #undef... 371 %... 17, 18 %=... 85 &... 222 &... 203 &&... 40 &=...

More information

CommandMatrix_8230E

CommandMatrix_8230E 4. USB 4. USB 4.1 USB2.0 Full Speed USB (Universal Serial Bus) USB 4.2 USB : USB2.0 Full Speed : USB B : A112010 USB(A) -USB B 1 m ID: MYID 1 127 : : ASCII : ASCII : ADC USB 4.3 USB 4.3.1 ADC USB ADC USB

More information

Microsoft Word - SU1204教本(Driver)原稿.docx

Microsoft Word - SU1204教本(Driver)原稿.docx void setup(){ pinmode(13, OUTPUT); //13 void loop(){ digitalwrite(13, HIGH); //13 HIGH delay(500); digitalwrite(13, LOW); //13 LOW delay(500); setup pinmode loop delay C M B void setup(){ pinmode(12,output);

More information

: CR (0x0d) LF (0x0a) line separator CR Mac LF UNIX CR+LF MS-DOS WINDOWS Japan Advanced Institute of Science and Technology

: CR (0x0d) LF (0x0a) line separator CR Mac LF UNIX CR+LF MS-DOS WINDOWS Japan Advanced Institute of Science and Technology I117 8 1 School of Information Science, Japan Advanced Institute of Science and Technology : CR (0x0d) LF (0x0a) line separator CR Mac LF UNIX CR+LF MS-DOS WINDOWS Japan Advanced Institute of Science and

More information

HA8000シリーズ ユーザーズガイド ~BIOS編~ HA8000/RS110/TS10 2013年6月~モデル

HA8000シリーズ ユーザーズガイド ~BIOS編~ HA8000/RS110/TS10 2013年6月~モデル P1E1M01500-3 - - - LSI MegaRAID SAS-MFI BIOS Version x.xx.xx (Build xxxx xx, xxxx) Copyright (c) xxxx LSI Corporation HA -0 (Bus xx Dev

More information

CX-G6400 ユーザーズガイド

CX-G6400 ユーザーズガイド CX-G6400 CANON FINETECH INC. 2017 4Y1-8609-020 1 1 2 2 2 2 3 1. 5 / 5 6 7 8 10 11 USB 12 LAN 13 / 14 14 15 16 2. 32 35 35 36 3. 38 38 39 40 41 43 48 50 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75

More information

Informatics 2015

Informatics 2015 C 計算機の歴史 新旧のソロバン バベッジの階差機関 19C前半 手回し計算機 19C後半 20C後半 スパコン 1960年代 ENIAC (1946) 大型汎用計算機 1950年代 1980年代 電卓 1964 パソコン 1970年代 現在のコンピュータ Input Output Device Central Processing Unit I/O CPU Memory OS (Operating

More information

fp.gby

fp.gby 1 1 2 2 3 2 4 5 6 7 8 9 10 11 Haskell 12 13 Haskell 14 15 ( ) 16 ) 30 17 static 18 (IORef) 19 20 OK NG 21 Haskell (+) :: Num a => a -> a -> a sort :: Ord a => [a] -> [a] delete :: Eq a => a -> [a] -> [a]

More information

cover.P65

cover.P65 FTM-10/H 1 2 3 H-U H-V GRP GR2 GR1 ARI AM FM 4 T T SQL T SQL DCS 5 6 φ F42 STEREO STEREO REAR F34 SPEAKER φ 7 8 9 JARL 10 11 12 FTM-10/H 13 14 15 16 17 18 19 H-U H-V GRP AM FM VFO F 5 AF- 20 144.000 144.700

More information