From aef4e8398f2b1848b0e4cdd9580dbbe93e4006f9 Mon Sep 17 00:00:00 2001 From: Jorawar Singh Date: Fri, 30 Jun 2017 11:28:58 +0530 Subject: Help files, modified Raspberry Pi code conversion --- builder.sce | 4 +- cleaner.sce | 38 + etc/scilab2c.start | 8 +- help/builder_help.sce | 4 + help/cleaner_help.sce | 21 + help/en_US/AVRADCSetup.xml | 83 ++ help/en_US/AVRDigitalIn.xml | 79 ++ help/en_US/AVRDigitalOut.xml | 82 ++ help/en_US/AVRDigitalPortSetup.xml | 81 ++ help/en_US/AVRDigitalSetup.xml | 83 ++ help/en_US/AVRGetTimerValue.xml | 73 ++ help/en_US/AVRPWM0SetDuty.xml | 66 ++ help/en_US/AVRPWM0Setup.xml | 92 +++ help/en_US/AVRPWM1SetDuty.xml | 66 ++ help/en_US/AVRPWM1Setup.xml | 91 +++ help/en_US/AVRPWM2SetDuty.xml | 65 ++ help/en_US/AVRPWM2Setup.xml | 88 ++ help/en_US/AVRReadADC.xml | 71 ++ help/en_US/AVRSleep.xml | 56 ++ help/en_US/AVRTimerSetup.xml | 37 + help/en_US/AVRUARTReceive.xml | 59 ++ help/en_US/AVRUARTSetup.xml | 90 ++ help/en_US/AVRUARTTransmit.xml | 59 ++ help/en_US/CV_AdaptiveThreshold.xml | 86 ++ help/en_US/CV_Blur.xml | 92 +++ help/en_US/CV_Canny.xml | 88 ++ help/en_US/CV_CornerHarris.xml | 93 +++ help/en_US/CV_CreateImage.xml | 76 ++ help/en_US/CV_CvtColor.xml | 81 ++ help/en_US/CV_Dilate.xml | 93 +++ help/en_US/CV_DistanceTransform.xml | 78 ++ help/en_US/CV_Erode.xml | 93 +++ help/en_US/CV_GaussianBlur.xml | 95 +++ help/en_US/CV_GetImgSize.xml | 75 ++ help/en_US/CV_LoadImage.xml | 83 ++ help/en_US/CV_MedianBlur.xml | 77 ++ help/en_US/CV_SaveImage.xml | 77 ++ help/en_US/CV_ShowImage.xml | 77 ++ help/en_US/CV_Threshold.xml | 81 ++ help/en_US/CV_WaitKey.xml | 76 ++ help/en_US/build_help.sce | 3 + help/en_US/master_help.xml | 91 +++ help/en_US/scilab_en_US_help/AVRADCSetup.html | 88 ++ help/en_US/scilab_en_US_help/AVRDigitalIn.html | 88 ++ help/en_US/scilab_en_US_help/AVRDigitalOut.html | 91 +++ .../scilab_en_US_help/AVRDigitalPortSetup.html | 89 ++ help/en_US/scilab_en_US_help/AVRDigitalSetup.html | 91 +++ help/en_US/scilab_en_US_help/AVRGetTimerValue.html | 83 ++ help/en_US/scilab_en_US_help/AVRPWM0SetDuty.html | 80 ++ help/en_US/scilab_en_US_help/AVRPWM0Setup.html | 98 +++ help/en_US/scilab_en_US_help/AVRPWM1SetDuty.html | 83 ++ help/en_US/scilab_en_US_help/AVRPWM1Setup.html | 100 +++ help/en_US/scilab_en_US_help/AVRPWM2SetDuty.html | 81 ++ help/en_US/scilab_en_US_help/AVRPWM2Setup.html | 97 +++ help/en_US/scilab_en_US_help/AVRReadADC.html | 84 ++ help/en_US/scilab_en_US_help/AVRSleep.html | 75 ++ help/en_US/scilab_en_US_help/AVRTimerSetup.html | 66 ++ help/en_US/scilab_en_US_help/AVRUARTReceive.html | 77 ++ help/en_US/scilab_en_US_help/AVRUARTSetup.html | 96 +++ help/en_US/scilab_en_US_help/AVRUARTTransmit.html | 77 ++ .../scilab_en_US_help/CV_AdaptiveThreshold.html | 94 +++ help/en_US/scilab_en_US_help/CV_Blur.html | 96 +++ help/en_US/scilab_en_US_help/CV_Canny.html | 95 +++ help/en_US/scilab_en_US_help/CV_CornerHarris.html | 98 +++ help/en_US/scilab_en_US_help/CV_CreateImage.html | 85 ++ help/en_US/scilab_en_US_help/CV_CvtColor.html | 90 ++ help/en_US/scilab_en_US_help/CV_Dilate.html | 99 +++ .../scilab_en_US_help/CV_DistanceTransform.html | 87 ++ help/en_US/scilab_en_US_help/CV_Erode.html | 99 +++ help/en_US/scilab_en_US_help/CV_GaussianBlur.html | 98 +++ help/en_US/scilab_en_US_help/CV_GetImgSize.html | 84 ++ help/en_US/scilab_en_US_help/CV_LoadImage.html | 88 ++ help/en_US/scilab_en_US_help/CV_MedianBlur.html | 86 ++ help/en_US/scilab_en_US_help/CV_SaveImage.html | 86 ++ help/en_US/scilab_en_US_help/CV_ShowImage.html | 86 ++ help/en_US/scilab_en_US_help/CV_Threshold.html | 90 ++ help/en_US/scilab_en_US_help/CV_WaitKey.html | 83 ++ help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS | Bin 0 -> 2752 bytes .../scilab_en_US_help/JavaHelpSearch/DOCS.TAB | 3 + .../en_US/scilab_en_US_help/JavaHelpSearch/OFFSETS | 1 + .../scilab_en_US_help/JavaHelpSearch/POSITIONS | Bin 0 -> 11336 bytes help/en_US/scilab_en_US_help/JavaHelpSearch/SCHEMA | 2 + help/en_US/scilab_en_US_help/JavaHelpSearch/TMAP | Bin 0 -> 10240 bytes help/en_US/scilab_en_US_help/ScilabCaution.png | Bin 0 -> 507 bytes help/en_US/scilab_en_US_help/ScilabEdit.png | Bin 0 -> 413 bytes help/en_US/scilab_en_US_help/ScilabExecute.png | Bin 0 -> 535 bytes help/en_US/scilab_en_US_help/ScilabImportant.png | Bin 0 -> 617 bytes help/en_US/scilab_en_US_help/ScilabNote.png | Bin 0 -> 663 bytes help/en_US/scilab_en_US_help/ScilabTip.png | Bin 0 -> 663 bytes help/en_US/scilab_en_US_help/ScilabWarning.png | Bin 0 -> 507 bytes help/en_US/scilab_en_US_help/c_code.css | 54 ++ help/en_US/scilab_en_US_help/index.html | 259 ++++++ help/en_US/scilab_en_US_help/jhelpidx.xml | 3 + help/en_US/scilab_en_US_help/jhelpmap.jhm | 41 + help/en_US/scilab_en_US_help/jhelpset.hs | 28 + help/en_US/scilab_en_US_help/jhelptoc.xml | 43 + help/en_US/scilab_en_US_help/scilab_code.css | 96 +++ .../section_473a2b9e79723ff76a7f243f85d2b6b8.html | 259 ++++++ help/en_US/scilab_en_US_help/style.css | 350 ++++++++ help/en_US/scilab_en_US_help/xml_code.css | 94 +++ includes/sci2clib.h | 50 +- jar/scilab_en_US_help.jar | Bin 0 -> 83521 bytes loader.sce | 18 +- locales/en_US.po | 35 + locales/en_US/LC_MESSAGES/scilab2c.mo | Bin 0 -> 130 bytes locales/en_US/LC_MESSAGES/scilab2c.po | 35 + macros/ASTManagement/AST_HandleEndGenFun.sci | 2 + macros/ASTManagement/lib | Bin 4861 -> 1864 bytes macros/CCodeGeneration/C_GenerateMakefile.sci | 2 +- macros/CCodeGeneration/JoinDeclarAndCcode.sci | 6 +- macros/CCodeGeneration/lib | Bin 2449 -> 1008 bytes macros/ErrorMessages/lib | Bin 379 -> 436 bytes macros/FunctionAnnotation/FA_INSZ_RPI.sci | 5 + macros/FunctionAnnotation/lib | Bin 7053 -> 2268 bytes macros/FunctionAnnotation/names | 1 + macros/FunctionList/lib | Bin 741 -> 504 bytes macros/GeneralFunctions/SCI2CFindFile.sci | 1 - macros/GeneralFunctions/lib | Bin 2809 -> 1132 bytes macros/Hardware/AVR/AVRADCSetup.sci | 24 +- macros/Hardware/AVR/AVRDigitalIn.sci | 12 +- macros/Hardware/AVR/AVRDigitalOut.sci | 10 +- macros/Hardware/AVR/AVRDigitalPortSetup.sci | 11 +- macros/Hardware/AVR/AVRDigitalSetup.sci | 13 +- macros/Hardware/AVR/AVRGetTimerValue.sci | 16 +- macros/Hardware/AVR/AVRPWM0SetDuty.sci | 17 +- macros/Hardware/AVR/AVRPWM0Setup.sci | 57 +- macros/Hardware/AVR/AVRPWM1SetDuty.sci | 20 +- macros/Hardware/AVR/AVRPWM1Setup.sci | 54 +- macros/Hardware/AVR/AVRPWM2SetDuty.sci | 11 +- macros/Hardware/AVR/AVRPWM2Setup.sci | 48 +- macros/Hardware/AVR/AVRReadADC.sci | 15 +- macros/Hardware/AVR/AVRSleep.sci | 19 +- macros/Hardware/AVR/AVRTimerSetup.sci | 45 +- macros/Hardware/AVR/AVRUARTReceive.sci | 9 +- macros/Hardware/AVR/AVRUARTSetup.sci | 44 +- macros/Hardware/AVR/AVRUARTTransmit.sci | 16 +- macros/Hardware/AVR/lib | Bin 2265 -> 972 bytes macros/Hardware/RasberryPi/lib | Bin 2037 -> 892 bytes macros/ImageProcessing/core/CV_CreateImage.sci | 18 +- macros/ImageProcessing/core/CV_GetImgSize.sci | 14 +- macros/ImageProcessing/core/lib | Bin 293 -> 524 bytes macros/ImageProcessing/highgui/CV_LoadImage.sci | 25 +- macros/ImageProcessing/highgui/CV_SaveImage.sci | 20 +- macros/ImageProcessing/highgui/CV_ShowImage.sci | 18 +- macros/ImageProcessing/highgui/CV_WaitKey.sci | 20 +- macros/ImageProcessing/highgui/lib | Bin 471 -> 584 bytes .../imgproc/CV_AdaptiveThreshold.sci | 33 +- macros/ImageProcessing/imgproc/CV_Blur.sci | 41 +- macros/ImageProcessing/imgproc/CV_Canny.sci | 36 +- macros/ImageProcessing/imgproc/CV_CornerHarris.sci | 49 +- macros/ImageProcessing/imgproc/CV_CvtColor.sci | 25 +- macros/ImageProcessing/imgproc/CV_Dilate.sci | 53 +- .../imgproc/CV_DistanceTransform.sci | 24 +- macros/ImageProcessing/imgproc/CV_Erode.sci | 52 +- macros/ImageProcessing/imgproc/CV_GaussianBlur.sci | 52 +- macros/ImageProcessing/imgproc/CV_MedianBlur.sci | 25 +- macros/ImageProcessing/imgproc/CV_Threshold.sci | 25 +- macros/ImageProcessing/imgproc/lib | Bin 1145 -> 752 bytes macros/Scilab-Arduino/lib | Bin 759 -> 512 bytes macros/SymbolTable/ST_AnalyzeScope.sci | 1 - macros/SymbolTable/lib | Bin 1199 -> 728 bytes .../ToolInitialization/INIT_FillSCI2LibCDirs.sci | 905 ++++++++++++++++++--- macros/ToolInitialization/lib | Bin 1543 -> 804 bytes macros/buildmacros.sce | 6 +- macros/cb_sci2c_gui.sci | 17 +- macros/findDeps/getAllHeaders.sci | 38 +- macros/findDeps/getAllInterfaces.sci | 22 +- macros/findDeps/getAllLibraries.sci | 3 +- macros/findDeps/getAllSources.sci | 157 +++- macros/findDeps/lib | Bin 679 -> 596 bytes macros/lib | Bin 649 -> 536 bytes macros/runsci2c.sci | 3 +- macros/scilab2c.sci | 1 + src/c/elementaryFunctions/includes/int32.h | 62 ++ src/c/elementaryFunctions/includes/uint32.h | 62 ++ src/c/elementaryFunctions/int32/dint32a.c | 18 + src/c/elementaryFunctions/int32/dint32s.c | 18 + src/c/elementaryFunctions/int32/i16int32a.c | 17 + src/c/elementaryFunctions/int32/i16int32s.c | 17 + src/c/elementaryFunctions/int32/i8int32a.c | 17 + src/c/elementaryFunctions/int32/i8int32s.c | 17 + src/c/elementaryFunctions/int32/sint32a.c | 18 + src/c/elementaryFunctions/int32/sint32s.c | 17 + src/c/elementaryFunctions/int32/u16int32a.c | 18 + src/c/elementaryFunctions/int32/u16int32s.c | 17 + src/c/elementaryFunctions/int32/u32int32a.c | 18 + src/c/elementaryFunctions/int32/u32int32s.c | 17 + src/c/elementaryFunctions/int32/u8int32a.c | 18 + src/c/elementaryFunctions/int32/u8int32s.c | 17 + src/c/elementaryFunctions/interfaces/int_int32.h | 46 ++ src/c/elementaryFunctions/interfaces/int_uint32.h | 44 + src/c/elementaryFunctions/uint32/duint32a.c | 18 + src/c/elementaryFunctions/uint32/duint32s.c | 18 + src/c/elementaryFunctions/uint32/i16uint32a.c | 18 + src/c/elementaryFunctions/uint32/i16uint32s.c | 18 + src/c/elementaryFunctions/uint32/i32uint32a.c | 18 + src/c/elementaryFunctions/uint32/i32uint32s.c | 18 + src/c/elementaryFunctions/uint32/i8uint32a.c | 18 + src/c/elementaryFunctions/uint32/i8uint32s.c | 17 + src/c/elementaryFunctions/uint32/suint32a.c | 19 + src/c/elementaryFunctions/uint32/suint32s.c | 18 + src/c/elementaryFunctions/uint32/u16uint32a.c | 18 + src/c/elementaryFunctions/uint32/u16uint32s.c | 18 + src/c/elementaryFunctions/uint32/u8uint32a.c | 18 + src/c/elementaryFunctions/uint32/u8uint32s.c | 18 + .../rasberrypi/Digital/RPI_digitalReadByte.c | 21 + .../rasberrypi/Digital/u8RPI_digitalReads.c | 21 + .../rasberrypi/Digital/u8RPI_digitalWriteBytes.c | 19 + .../rasberrypi/Digital/u8RPI_digitalWrites.c | 22 + .../hardware/rasberrypi/I2C/u16RPI_I2CReadReg16s.c | 19 + .../hardware/rasberrypi/I2C/u16RPI_I2CReadReg8s.c | 19 + src/c/hardware/rasberrypi/I2C/u16RPI_I2CReads.c | 19 + src/c/hardware/rasberrypi/I2C/u16RPI_I2CSetups.c | 19 + .../rasberrypi/I2C/u16RPI_I2CWriteReg16s.c | 19 + .../hardware/rasberrypi/I2C/u16RPI_I2CWriteReg8s.c | 19 + src/c/hardware/rasberrypi/I2C/u16RPI_I2CWrites.c | 19 + src/c/hardware/rasberrypi/ISR/i16RPIPinISRs.c | 25 - .../rasberrypi/Interrupt/u8RPI_waitForInterrupts.c | 19 + src/c/hardware/rasberrypi/Misc/RPI_boardRev.c | 19 + .../hardware/rasberrypi/Misc/u16RPI_sn3218Setups.c | 19 + src/c/hardware/rasberrypi/Misc/u8RPI_padDrives.c | 17 + .../NotYetDone/INIT_FillSCI2LivCDirs.backup | 316 +++++++ .../rasberrypi/NotYetDone/NotToDo/RPI_adress.c | 13 + .../rasberrypi/NotYetDone/NotToDo/RPI_analogRead.c | 13 + .../NotYetDone/NotToDo/RPI_analogWrite.c | 13 + .../rasberrypi/NotYetDone/NotToDo/RPI_commande.c | 13 + .../rasberrypi/NotYetDone/NotToDo/RPI_i2cdetect.c | 13 + .../rasberrypi/NotYetDone/NotToDo/RPI_send.c | 13 + .../NotYetDone/NotToDo/backup/ISR/i16RPIPinISRs.c | 25 + .../NotToDo/backup/gpio/RPI_DigitalRead.c | 24 + .../NotToDo/backup/gpio/RPI_DigitalWrite.c | 26 + .../NotYetDone/NotToDo/backup/gpio/RPI_pinMode.c | 40 + .../NotYetDone/NotToDo/backup/pwm/RPI_pwmClock.c | 27 + .../NotYetDone/NotToDo/backup/pwm/RPI_pwmMode.c | 28 + .../NotYetDone/NotToDo/backup/pwm/RPI_pwmRange.c | 25 + .../NotYetDone/NotToDo/backup/pwm/RPI_pwmWrite.c | 26 + .../NotToDo/backup/serial/dRPISerialSendDataa.c | 27 + .../NotToDo/backup/serial/dRPISerialSendDatas.c | 35 + .../NotToDo/backup/serial/gRPISerialSendDatas.c | 27 + .../NotToDo/backup/serial/i16RPISerialDataAvails.c | 25 + .../NotToDo/backup/serial/i16RPISerialGetChars.c | 27 + .../NotToDo/backup/serial/i16RPISerialSendDataa.c | 27 + .../NotToDo/backup/serial/i16RPISerialSendDatas.c | 24 + .../NotToDo/backup/serial/i8RPISerialSendDataa.c | 26 + .../NotToDo/backup/serial/i8RPISerialSendDatas.c | 22 + .../NotToDo/backup/serial/sRPISerialSendDataa.c | 27 + .../NotToDo/backup/serial/sRPISerialSendDatas.c | 34 + .../NotToDo/backup/serial/u16RPISerialSendDataa.c | 28 + .../NotToDo/backup/serial/u16RPISerialSendDatas.c | 23 + .../NotToDo/backup/serial/u16RPISerialSetups.c | 25 + .../NotToDo/backup/serial/u8RPISerialCloses.c | 21 + .../NotToDo/backup/serial/u8RPISerialFlushs.c | 21 + .../NotToDo/backup/serial/u8RPISerialSendChars.c | 21 + .../NotToDo/backup/serial/u8RPISerialSendDataa.c | 27 + .../NotToDo/backup/serial/u8RPISerialSendDatas.c | 22 + .../NotToDo/backup/threading/u16RPIThreadCreates.c | 24 + .../NotYetDone/NotToDo/backup/timing/RPI_delay.c | 25 + .../NotToDo/backup/timing/RPI_delayMicro.c | 22 + .../NotYetDone/NotToDo/backup/timing/RPI_micros.c | 21 + .../NotYetDone/NotToDo/backup/timing/RPI_millis.c | 21 + .../hardware/rasberrypi/NotYetDone/NotToDo/raspi.c | 13 + .../rasberrypi/NotYetDone/NotToDo/raspi_close.c | 13 + .../rasberrypi/NotYetDone/SPI/RPI_SPIDataRW.c | 13 + .../rasberrypi/NotYetDone/SPI/RPI_SPISetup.c | 13 + .../lcd128x64/RPI_lcd128x64Orientation.c | 13 + .../NotYetDone/lcd128x64/RPI_lcd128x64circle.c | 13 + .../NotYetDone/lcd128x64/RPI_lcd128x64clear.c | 13 + .../NotYetDone/lcd128x64/RPI_lcd128x64ellipse.c | 13 + .../NotYetDone/lcd128x64/RPI_lcd128x64line.c | 13 + .../NotYetDone/lcd128x64/RPI_lcd128x64lineTo.c | 13 + .../NotYetDone/lcd128x64/RPI_lcd128x64point.c | 13 + .../NotYetDone/lcd128x64/RPI_lcd128x64putchar.c | 13 + .../NotYetDone/lcd128x64/RPI_lcd128x64puts.c | 13 + .../NotYetDone/lcd128x64/RPI_lcd128x64rectangle.c | 13 + .../NotYetDone/lcd128x64/RPI_lcd128x64setOrigin.c | 13 + .../NotYetDone/lcd128x64/RPI_lcd128x64setup.c | 13 + .../NotYetDone/multiThreading/u8RPI_locks.c | 13 + .../NotYetDone/multiThreading/u8RPI_prioritys.c | 13 + .../NotYetDone/multiThreading/u8RPI_unlocks.c | 13 + .../hardware/rasberrypi/Serial/gRPI_serialOpena.c | 19 + .../rasberrypi/Serial/u8RPI_serialCloses.c | 17 + .../rasberrypi/Serial/u8RPI_serialDataAvails.c | 19 + .../rasberrypi/Serial/u8RPI_serialFlushs.c | 17 + .../rasberrypi/Serial/u8RPI_serialGetchars.c | 17 + .../rasberrypi/Serial/u8RPI_serialPrintfs.c | 17 + .../rasberrypi/Serial/u8RPI_serialPutchars.c | 17 + .../hardware/rasberrypi/Serial/u8RPI_serialPutss.c | 17 + .../hardware/rasberrypi/Setup/gRPI_pinNumberinga.c | 28 + src/c/hardware/rasberrypi/Setup/u8RPI_getAlts.c | 19 + .../hardware/rasberrypi/Setup/u8RPI_pinModeAlts.c | 17 + src/c/hardware/rasberrypi/Setup/u8RPI_pinModes.c | 31 + .../hardware/rasberrypi/Setup/u8RPI_pullControls.c | 25 + .../hardware/rasberrypi/Shift/u16RPI_sr595Setups.c | 20 + src/c/hardware/rasberrypi/Shift/u8RPI_shiftIns.c | 19 + src/c/hardware/rasberrypi/Shift/u8RPI_shiftOuts.c | 17 + src/c/hardware/rasberrypi/Timing/RPI_micros.c | 21 + src/c/hardware/rasberrypi/Timing/RPI_millis.c | 21 + .../rasberrypi/Timing/u32RPI_delayMicros.c | 19 + src/c/hardware/rasberrypi/Timing/u32RPI_delays.c | 19 + .../rasberrypi/gertBoard/RPI_gertboardSPISetup.c | 19 + .../gertBoard/u16RPI_gertboardAnalogReads.c | 19 + .../gertBoard/u16RPI_gertboardAnalogSetups.c | 19 + .../gertBoard/u16RPI_gertboardAnalogWrites.c | 17 + src/c/hardware/rasberrypi/gpio/u8RPIDigitalIns.c | 24 - src/c/hardware/rasberrypi/gpio/u8RPIDigitalOuts.c | 26 - .../hardware/rasberrypi/gpio/u8RPIDigitalSetups.c | 39 - .../rasberrypi/includes/RPIPeripheralDigital.h | 11 +- .../rasberrypi/includes/RPIPeripheralGertboard.h | 32 + .../rasberrypi/includes/RPIPeripheralI2C.h | 37 + .../rasberrypi/includes/RPIPeripheralInterrupt.h | 27 + .../rasberrypi/includes/RPIPeripheralLCD.h | 39 + .../rasberrypi/includes/RPIPeripheralMcp.h | 36 + .../rasberrypi/includes/RPIPeripheralMisc.h | 31 + .../rasberrypi/includes/RPIPeripheralPWM.h | 16 +- .../rasberrypi/includes/RPIPeripheralPcf.h | 30 + .../rasberrypi/includes/RPIPeripheralPiGlow.h | 31 + .../rasberrypi/includes/RPIPeripheralPinISR.h | 26 - .../rasberrypi/includes/RPIPeripheralPinMap.h | 28 + .../rasberrypi/includes/RPIPeripheralSerial.h | 36 +- .../rasberrypi/includes/RPIPeripheralSetup.h | 35 + .../rasberrypi/includes/RPIPeripheralShift.h | 31 + .../rasberrypi/includes/RPIPeripheralSoft.h | 37 + .../rasberrypi/includes/RPIPeripheralThreading.h | 28 - .../rasberrypi/includes/RPIPeripheralTiming.h | 10 +- .../interfaces/int_RPIPeripheralDigital.h | 13 +- .../interfaces/int_RPIPeripheralGertboard.h | 32 + .../rasberrypi/interfaces/int_RPIPeripheralI2C.h | 35 + .../interfaces/int_RPIPeripheralInterrupt.h | 29 + .../rasberrypi/interfaces/int_RPIPeripheralLCD.h | 40 + .../rasberrypi/interfaces/int_RPIPeripheralMcp.h | 33 + .../rasberrypi/interfaces/int_RPIPeripheralMisc.h | 31 + .../rasberrypi/interfaces/int_RPIPeripheralPWM.h | 19 +- .../rasberrypi/interfaces/int_RPIPeripheralPcf.h | 30 + .../interfaces/int_RPIPeripheralPiGlow.h | 32 + .../interfaces/int_RPIPeripheralPinISR.h | 25 - .../interfaces/int_RPIPeripheralPinMap.h | 30 + .../interfaces/int_RPIPeripheralSerial.h | 39 +- .../rasberrypi/interfaces/int_RPIPeripheralSetup.h | 32 + .../rasberrypi/interfaces/int_RPIPeripheralShift.h | 31 + .../rasberrypi/interfaces/int_RPIPeripheralSoft.h | 34 + .../interfaces/int_RPIPeripheralThreading.h | 25 - .../interfaces/int_RPIPeripheralTiming.h | 14 +- src/c/hardware/rasberrypi/lcd/u8RPI_lcdCharDefs.c | 18 + src/c/hardware/rasberrypi/lcd/u8RPI_lcdClears.c | 17 + .../rasberrypi/lcd/u8RPI_lcdCursorBlinks.c | 17 + src/c/hardware/rasberrypi/lcd/u8RPI_lcdCursors.c | 17 + src/c/hardware/rasberrypi/lcd/u8RPI_lcdDisplays.c | 17 + src/c/hardware/rasberrypi/lcd/u8RPI_lcdHomes.c | 17 + src/c/hardware/rasberrypi/lcd/u8RPI_lcdInits.c | 19 + src/c/hardware/rasberrypi/lcd/u8RPI_lcdPositions.c | 17 + src/c/hardware/rasberrypi/lcd/u8RPI_lcdPrintfs.c | 17 + src/c/hardware/rasberrypi/lcd/u8RPI_lcdPutchars.c | 17 + src/c/hardware/rasberrypi/lcd/u8RPI_lcdPutss.c | 17 + .../rasberrypi/lcd/u8RPI_lcdSendCommands.c | 17 + .../rasberrypi/mcp/u16RPI_mcp23008Setups.c | 19 + .../rasberrypi/mcp/u16RPI_mcp23016Setups.c | 19 + .../rasberrypi/mcp/u16RPI_mcp23017Setups.c | 19 + .../rasberrypi/mcp/u16RPI_mcp23s08Setups.c | 19 + .../rasberrypi/mcp/u16RPI_mcp23s17Setups.c | 19 + .../hardware/rasberrypi/pcf/u16RPI_pcf8574Setups.c | 19 + .../hardware/rasberrypi/pcf/u16RPI_pcf8591Setups.c | 19 + src/c/hardware/rasberrypi/piGlow/u8RPI_piGlow1s.c | 17 + .../hardware/rasberrypi/piGlow/u8RPI_piGlowLegs.c | 17 + .../hardware/rasberrypi/piGlow/u8RPI_piGlowRings.c | 17 + .../rasberrypi/piGlow/u8RPI_piGlowSetups.c | 17 + .../hardware/rasberrypi/pinMap/u8RPI_physToGpios.c | 19 + .../hardware/rasberrypi/pinMap/u8RPI_wpiToGpios.c | 19 + src/c/hardware/rasberrypi/pwm/gRPI_pwmModea.c | 25 + src/c/hardware/rasberrypi/pwm/u16RPI_pwmClocks.c | 23 + src/c/hardware/rasberrypi/pwm/u32RPI_pwmRanges.c | 22 + .../rasberrypi/pwm/u8RPIHardPWMSetClocks.c | 27 - .../hardware/rasberrypi/pwm/u8RPIHardPWMSetModes.c | 28 - .../rasberrypi/pwm/u8RPIHardPWMSetRanges.c | 25 - src/c/hardware/rasberrypi/pwm/u8RPIHardPWMWrites.c | 26 - .../hardware/rasberrypi/pwm/u8RPI_pwmToneWrites.c | 17 + src/c/hardware/rasberrypi/pwm/u8RPI_pwmWrites.c | 19 + .../rasberrypi/serial/dRPISerialSendDataa.c | 27 - .../rasberrypi/serial/dRPISerialSendDatas.c | 35 - .../rasberrypi/serial/gRPISerialSendDatas.c | 27 - .../rasberrypi/serial/i16RPISerialDataAvails.c | 25 - .../rasberrypi/serial/i16RPISerialGetChars.c | 27 - .../rasberrypi/serial/i16RPISerialSendDataa.c | 27 - .../rasberrypi/serial/i16RPISerialSendDatas.c | 24 - .../rasberrypi/serial/i8RPISerialSendDataa.c | 26 - .../rasberrypi/serial/i8RPISerialSendDatas.c | 22 - .../rasberrypi/serial/sRPISerialSendDataa.c | 27 - .../rasberrypi/serial/sRPISerialSendDatas.c | 34 - .../rasberrypi/serial/u16RPISerialSendDataa.c | 28 - .../rasberrypi/serial/u16RPISerialSendDatas.c | 23 - .../rasberrypi/serial/u16RPISerialSetups.c | 25 - .../hardware/rasberrypi/serial/u8RPISerialCloses.c | 21 - .../hardware/rasberrypi/serial/u8RPISerialFlushs.c | 21 - .../rasberrypi/serial/u8RPISerialSendChars.c | 21 - .../rasberrypi/serial/u8RPISerialSendDataa.c | 27 - .../rasberrypi/serial/u8RPISerialSendDatas.c | 22 - .../rasberrypi/soft/u8RPI_softPwmCreates.c | 19 + .../hardware/rasberrypi/soft/u8RPI_softPwmStops.c | 17 + .../hardware/rasberrypi/soft/u8RPI_softPwmWrites.c | 17 + .../rasberrypi/soft/u8RPI_softToneCreates.c | 19 + .../hardware/rasberrypi/soft/u8RPI_softToneStops.c | 17 + .../rasberrypi/soft/u8RPI_softToneWrites.c | 17 + .../rasberrypi/threading/u16RPIThreadCreates.c | 24 - .../hardware/rasberrypi/timing/u16RPIDelayMicros.c | 22 - .../hardware/rasberrypi/timing/u16RPIDelayMillis.c | 25 - src/c/hardware/rasberrypi/timing/u32RPIGetMicros.c | 21 - src/c/hardware/rasberrypi/timing/u32RPIGetMillis.c | 21 - thirdparty/includes/WiringPi/gertboard.h | 45 + thirdparty/includes/WiringPi/lcd.h | 52 ++ thirdparty/includes/WiringPi/mcp23008.h | 33 + thirdparty/includes/WiringPi/mcp23016.h | 33 + thirdparty/includes/WiringPi/mcp23017.h | 33 + thirdparty/includes/WiringPi/mcp23s08.h | 33 + thirdparty/includes/WiringPi/mcp23s17.h | 33 + thirdparty/includes/WiringPi/pcf8574.h | 33 + thirdparty/includes/WiringPi/pcf8591.h | 33 + thirdparty/includes/WiringPi/piGlow.h | 45 + thirdparty/includes/WiringPi/sn3218.h | 33 + thirdparty/includes/WiringPi/softPwm.h | 35 + thirdparty/includes/WiringPi/softTone.h | 39 + thirdparty/includes/WiringPi/sr595.h | 34 + thirdparty/includes/WiringPi/wiringPiI2C.h | 42 + thirdparty/includes/WiringPi/wiringShift.h | 41 + thirdparty/lib/raspberrypi/libcblas.a | Bin 261416 -> 260756 bytes thirdparty/lib/raspberrypi/liblapack.a | Bin 6869860 -> 7700624 bytes thirdparty/lib/raspberrypi/librefblas.a | Bin 441848 -> 441244 bytes thirdparty/lib/raspberrypi/libwiringPi.a | Bin 0 -> 99552 bytes thirdparty/lib/raspberrypi/libwiringPiDev.a | Bin 0 -> 30216 bytes thirdparty/lib/raspberrypi/libwiringPiDev.so | Bin 0 -> 28420 bytes unloader.sce | 31 +- 429 files changed, 13873 insertions(+), 1725 deletions(-) create mode 100644 cleaner.sce create mode 100755 help/builder_help.sce create mode 100755 help/cleaner_help.sce create mode 100644 help/en_US/AVRADCSetup.xml create mode 100644 help/en_US/AVRDigitalIn.xml create mode 100644 help/en_US/AVRDigitalOut.xml create mode 100644 help/en_US/AVRDigitalPortSetup.xml create mode 100644 help/en_US/AVRDigitalSetup.xml create mode 100644 help/en_US/AVRGetTimerValue.xml create mode 100644 help/en_US/AVRPWM0SetDuty.xml create mode 100644 help/en_US/AVRPWM0Setup.xml create mode 100644 help/en_US/AVRPWM1SetDuty.xml create mode 100644 help/en_US/AVRPWM1Setup.xml create mode 100644 help/en_US/AVRPWM2SetDuty.xml create mode 100644 help/en_US/AVRPWM2Setup.xml create mode 100644 help/en_US/AVRReadADC.xml create mode 100644 help/en_US/AVRSleep.xml create mode 100644 help/en_US/AVRTimerSetup.xml create mode 100644 help/en_US/AVRUARTReceive.xml create mode 100644 help/en_US/AVRUARTSetup.xml create mode 100644 help/en_US/AVRUARTTransmit.xml create mode 100644 help/en_US/CV_AdaptiveThreshold.xml create mode 100644 help/en_US/CV_Blur.xml create mode 100644 help/en_US/CV_Canny.xml create mode 100644 help/en_US/CV_CornerHarris.xml create mode 100644 help/en_US/CV_CreateImage.xml create mode 100644 help/en_US/CV_CvtColor.xml create mode 100644 help/en_US/CV_Dilate.xml create mode 100644 help/en_US/CV_DistanceTransform.xml create mode 100644 help/en_US/CV_Erode.xml create mode 100644 help/en_US/CV_GaussianBlur.xml create mode 100644 help/en_US/CV_GetImgSize.xml create mode 100644 help/en_US/CV_LoadImage.xml create mode 100644 help/en_US/CV_MedianBlur.xml create mode 100644 help/en_US/CV_SaveImage.xml create mode 100644 help/en_US/CV_ShowImage.xml create mode 100644 help/en_US/CV_Threshold.xml create mode 100644 help/en_US/CV_WaitKey.xml create mode 100644 help/en_US/build_help.sce create mode 100644 help/en_US/master_help.xml create mode 100644 help/en_US/scilab_en_US_help/AVRADCSetup.html create mode 100644 help/en_US/scilab_en_US_help/AVRDigitalIn.html create mode 100644 help/en_US/scilab_en_US_help/AVRDigitalOut.html create mode 100644 help/en_US/scilab_en_US_help/AVRDigitalPortSetup.html create mode 100644 help/en_US/scilab_en_US_help/AVRDigitalSetup.html create mode 100644 help/en_US/scilab_en_US_help/AVRGetTimerValue.html create mode 100644 help/en_US/scilab_en_US_help/AVRPWM0SetDuty.html create mode 100644 help/en_US/scilab_en_US_help/AVRPWM0Setup.html create mode 100644 help/en_US/scilab_en_US_help/AVRPWM1SetDuty.html create mode 100644 help/en_US/scilab_en_US_help/AVRPWM1Setup.html create mode 100644 help/en_US/scilab_en_US_help/AVRPWM2SetDuty.html create mode 100644 help/en_US/scilab_en_US_help/AVRPWM2Setup.html create mode 100644 help/en_US/scilab_en_US_help/AVRReadADC.html create mode 100644 help/en_US/scilab_en_US_help/AVRSleep.html create mode 100644 help/en_US/scilab_en_US_help/AVRTimerSetup.html create mode 100644 help/en_US/scilab_en_US_help/AVRUARTReceive.html create mode 100644 help/en_US/scilab_en_US_help/AVRUARTSetup.html create mode 100644 help/en_US/scilab_en_US_help/AVRUARTTransmit.html create mode 100644 help/en_US/scilab_en_US_help/CV_AdaptiveThreshold.html create mode 100644 help/en_US/scilab_en_US_help/CV_Blur.html create mode 100644 help/en_US/scilab_en_US_help/CV_Canny.html create mode 100644 help/en_US/scilab_en_US_help/CV_CornerHarris.html create mode 100644 help/en_US/scilab_en_US_help/CV_CreateImage.html create mode 100644 help/en_US/scilab_en_US_help/CV_CvtColor.html create mode 100644 help/en_US/scilab_en_US_help/CV_Dilate.html create mode 100644 help/en_US/scilab_en_US_help/CV_DistanceTransform.html create mode 100644 help/en_US/scilab_en_US_help/CV_Erode.html create mode 100644 help/en_US/scilab_en_US_help/CV_GaussianBlur.html create mode 100644 help/en_US/scilab_en_US_help/CV_GetImgSize.html create mode 100644 help/en_US/scilab_en_US_help/CV_LoadImage.html create mode 100644 help/en_US/scilab_en_US_help/CV_MedianBlur.html create mode 100644 help/en_US/scilab_en_US_help/CV_SaveImage.html create mode 100644 help/en_US/scilab_en_US_help/CV_ShowImage.html create mode 100644 help/en_US/scilab_en_US_help/CV_Threshold.html create mode 100644 help/en_US/scilab_en_US_help/CV_WaitKey.html create mode 100644 help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS create mode 100644 help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS.TAB create mode 100644 help/en_US/scilab_en_US_help/JavaHelpSearch/OFFSETS create mode 100644 help/en_US/scilab_en_US_help/JavaHelpSearch/POSITIONS create mode 100644 help/en_US/scilab_en_US_help/JavaHelpSearch/SCHEMA create mode 100644 help/en_US/scilab_en_US_help/JavaHelpSearch/TMAP create mode 100644 help/en_US/scilab_en_US_help/ScilabCaution.png create mode 100644 help/en_US/scilab_en_US_help/ScilabEdit.png create mode 100644 help/en_US/scilab_en_US_help/ScilabExecute.png create mode 100644 help/en_US/scilab_en_US_help/ScilabImportant.png create mode 100644 help/en_US/scilab_en_US_help/ScilabNote.png create mode 100644 help/en_US/scilab_en_US_help/ScilabTip.png create mode 100644 help/en_US/scilab_en_US_help/ScilabWarning.png create mode 100644 help/en_US/scilab_en_US_help/c_code.css create mode 100644 help/en_US/scilab_en_US_help/index.html create mode 100644 help/en_US/scilab_en_US_help/jhelpidx.xml create mode 100644 help/en_US/scilab_en_US_help/jhelpmap.jhm create mode 100644 help/en_US/scilab_en_US_help/jhelpset.hs create mode 100644 help/en_US/scilab_en_US_help/jhelptoc.xml create mode 100644 help/en_US/scilab_en_US_help/scilab_code.css create mode 100644 help/en_US/scilab_en_US_help/section_473a2b9e79723ff76a7f243f85d2b6b8.html create mode 100644 help/en_US/scilab_en_US_help/style.css create mode 100644 help/en_US/scilab_en_US_help/xml_code.css create mode 100644 jar/scilab_en_US_help.jar create mode 100755 locales/en_US.po create mode 100644 locales/en_US/LC_MESSAGES/scilab2c.mo create mode 100755 locales/en_US/LC_MESSAGES/scilab2c.po create mode 100644 macros/FunctionAnnotation/FA_INSZ_RPI.sci create mode 100644 src/c/elementaryFunctions/includes/int32.h create mode 100644 src/c/elementaryFunctions/includes/uint32.h create mode 100644 src/c/elementaryFunctions/int32/dint32a.c create mode 100644 src/c/elementaryFunctions/int32/dint32s.c create mode 100644 src/c/elementaryFunctions/int32/i16int32a.c create mode 100644 src/c/elementaryFunctions/int32/i16int32s.c create mode 100644 src/c/elementaryFunctions/int32/i8int32a.c create mode 100644 src/c/elementaryFunctions/int32/i8int32s.c create mode 100644 src/c/elementaryFunctions/int32/sint32a.c create mode 100644 src/c/elementaryFunctions/int32/sint32s.c create mode 100644 src/c/elementaryFunctions/int32/u16int32a.c create mode 100644 src/c/elementaryFunctions/int32/u16int32s.c create mode 100644 src/c/elementaryFunctions/int32/u32int32a.c create mode 100644 src/c/elementaryFunctions/int32/u32int32s.c create mode 100644 src/c/elementaryFunctions/int32/u8int32a.c create mode 100644 src/c/elementaryFunctions/int32/u8int32s.c create mode 100644 src/c/elementaryFunctions/interfaces/int_int32.h create mode 100644 src/c/elementaryFunctions/interfaces/int_uint32.h create mode 100644 src/c/elementaryFunctions/uint32/duint32a.c create mode 100644 src/c/elementaryFunctions/uint32/duint32s.c create mode 100644 src/c/elementaryFunctions/uint32/i16uint32a.c create mode 100644 src/c/elementaryFunctions/uint32/i16uint32s.c create mode 100644 src/c/elementaryFunctions/uint32/i32uint32a.c create mode 100644 src/c/elementaryFunctions/uint32/i32uint32s.c create mode 100644 src/c/elementaryFunctions/uint32/i8uint32a.c create mode 100644 src/c/elementaryFunctions/uint32/i8uint32s.c create mode 100644 src/c/elementaryFunctions/uint32/suint32a.c create mode 100644 src/c/elementaryFunctions/uint32/suint32s.c create mode 100644 src/c/elementaryFunctions/uint32/u16uint32a.c create mode 100644 src/c/elementaryFunctions/uint32/u16uint32s.c create mode 100644 src/c/elementaryFunctions/uint32/u8uint32a.c create mode 100644 src/c/elementaryFunctions/uint32/u8uint32s.c create mode 100644 src/c/hardware/rasberrypi/Digital/RPI_digitalReadByte.c create mode 100644 src/c/hardware/rasberrypi/Digital/u8RPI_digitalReads.c create mode 100644 src/c/hardware/rasberrypi/Digital/u8RPI_digitalWriteBytes.c create mode 100644 src/c/hardware/rasberrypi/Digital/u8RPI_digitalWrites.c create mode 100644 src/c/hardware/rasberrypi/I2C/u16RPI_I2CReadReg16s.c create mode 100644 src/c/hardware/rasberrypi/I2C/u16RPI_I2CReadReg8s.c create mode 100644 src/c/hardware/rasberrypi/I2C/u16RPI_I2CReads.c create mode 100644 src/c/hardware/rasberrypi/I2C/u16RPI_I2CSetups.c create mode 100644 src/c/hardware/rasberrypi/I2C/u16RPI_I2CWriteReg16s.c create mode 100644 src/c/hardware/rasberrypi/I2C/u16RPI_I2CWriteReg8s.c create mode 100644 src/c/hardware/rasberrypi/I2C/u16RPI_I2CWrites.c delete mode 100644 src/c/hardware/rasberrypi/ISR/i16RPIPinISRs.c create mode 100644 src/c/hardware/rasberrypi/Interrupt/u8RPI_waitForInterrupts.c create mode 100644 src/c/hardware/rasberrypi/Misc/RPI_boardRev.c create mode 100644 src/c/hardware/rasberrypi/Misc/u16RPI_sn3218Setups.c create mode 100644 src/c/hardware/rasberrypi/Misc/u8RPI_padDrives.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/INIT_FillSCI2LivCDirs.backup create mode 100644 src/c/hardware/rasberrypi/NotYetDone/NotToDo/RPI_adress.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/NotToDo/RPI_analogRead.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/NotToDo/RPI_analogWrite.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/NotToDo/RPI_commande.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/NotToDo/RPI_i2cdetect.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/NotToDo/RPI_send.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/ISR/i16RPIPinISRs.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/gpio/RPI_DigitalRead.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/gpio/RPI_DigitalWrite.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/gpio/RPI_pinMode.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/pwm/RPI_pwmClock.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/pwm/RPI_pwmMode.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/pwm/RPI_pwmRange.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/pwm/RPI_pwmWrite.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/dRPISerialSendDataa.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/dRPISerialSendDatas.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/gRPISerialSendDatas.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/i16RPISerialDataAvails.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/i16RPISerialGetChars.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/i16RPISerialSendDataa.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/i16RPISerialSendDatas.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/i8RPISerialSendDataa.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/i8RPISerialSendDatas.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/sRPISerialSendDataa.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/sRPISerialSendDatas.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u16RPISerialSendDataa.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u16RPISerialSendDatas.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u16RPISerialSetups.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u8RPISerialCloses.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u8RPISerialFlushs.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u8RPISerialSendChars.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u8RPISerialSendDataa.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u8RPISerialSendDatas.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/threading/u16RPIThreadCreates.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/timing/RPI_delay.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/timing/RPI_delayMicro.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/timing/RPI_micros.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/timing/RPI_millis.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/NotToDo/raspi.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/NotToDo/raspi_close.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/SPI/RPI_SPIDataRW.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/SPI/RPI_SPISetup.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64Orientation.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64circle.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64clear.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64ellipse.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64line.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64lineTo.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64point.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64putchar.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64puts.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64rectangle.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64setOrigin.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64setup.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/multiThreading/u8RPI_locks.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/multiThreading/u8RPI_prioritys.c create mode 100644 src/c/hardware/rasberrypi/NotYetDone/multiThreading/u8RPI_unlocks.c create mode 100644 src/c/hardware/rasberrypi/Serial/gRPI_serialOpena.c create mode 100644 src/c/hardware/rasberrypi/Serial/u8RPI_serialCloses.c create mode 100644 src/c/hardware/rasberrypi/Serial/u8RPI_serialDataAvails.c create mode 100644 src/c/hardware/rasberrypi/Serial/u8RPI_serialFlushs.c create mode 100644 src/c/hardware/rasberrypi/Serial/u8RPI_serialGetchars.c create mode 100644 src/c/hardware/rasberrypi/Serial/u8RPI_serialPrintfs.c create mode 100644 src/c/hardware/rasberrypi/Serial/u8RPI_serialPutchars.c create mode 100644 src/c/hardware/rasberrypi/Serial/u8RPI_serialPutss.c create mode 100644 src/c/hardware/rasberrypi/Setup/gRPI_pinNumberinga.c create mode 100644 src/c/hardware/rasberrypi/Setup/u8RPI_getAlts.c create mode 100644 src/c/hardware/rasberrypi/Setup/u8RPI_pinModeAlts.c create mode 100644 src/c/hardware/rasberrypi/Setup/u8RPI_pinModes.c create mode 100644 src/c/hardware/rasberrypi/Setup/u8RPI_pullControls.c create mode 100644 src/c/hardware/rasberrypi/Shift/u16RPI_sr595Setups.c create mode 100644 src/c/hardware/rasberrypi/Shift/u8RPI_shiftIns.c create mode 100644 src/c/hardware/rasberrypi/Shift/u8RPI_shiftOuts.c create mode 100644 src/c/hardware/rasberrypi/Timing/RPI_micros.c create mode 100644 src/c/hardware/rasberrypi/Timing/RPI_millis.c create mode 100644 src/c/hardware/rasberrypi/Timing/u32RPI_delayMicros.c create mode 100644 src/c/hardware/rasberrypi/Timing/u32RPI_delays.c create mode 100644 src/c/hardware/rasberrypi/gertBoard/RPI_gertboardSPISetup.c create mode 100644 src/c/hardware/rasberrypi/gertBoard/u16RPI_gertboardAnalogReads.c create mode 100644 src/c/hardware/rasberrypi/gertBoard/u16RPI_gertboardAnalogSetups.c create mode 100644 src/c/hardware/rasberrypi/gertBoard/u16RPI_gertboardAnalogWrites.c delete mode 100644 src/c/hardware/rasberrypi/gpio/u8RPIDigitalIns.c delete mode 100644 src/c/hardware/rasberrypi/gpio/u8RPIDigitalOuts.c delete mode 100644 src/c/hardware/rasberrypi/gpio/u8RPIDigitalSetups.c create mode 100644 src/c/hardware/rasberrypi/includes/RPIPeripheralGertboard.h create mode 100644 src/c/hardware/rasberrypi/includes/RPIPeripheralI2C.h create mode 100644 src/c/hardware/rasberrypi/includes/RPIPeripheralInterrupt.h create mode 100644 src/c/hardware/rasberrypi/includes/RPIPeripheralLCD.h create mode 100644 src/c/hardware/rasberrypi/includes/RPIPeripheralMcp.h create mode 100644 src/c/hardware/rasberrypi/includes/RPIPeripheralMisc.h create mode 100644 src/c/hardware/rasberrypi/includes/RPIPeripheralPcf.h create mode 100644 src/c/hardware/rasberrypi/includes/RPIPeripheralPiGlow.h delete mode 100644 src/c/hardware/rasberrypi/includes/RPIPeripheralPinISR.h create mode 100644 src/c/hardware/rasberrypi/includes/RPIPeripheralPinMap.h create mode 100644 src/c/hardware/rasberrypi/includes/RPIPeripheralSetup.h create mode 100644 src/c/hardware/rasberrypi/includes/RPIPeripheralShift.h create mode 100644 src/c/hardware/rasberrypi/includes/RPIPeripheralSoft.h delete mode 100644 src/c/hardware/rasberrypi/includes/RPIPeripheralThreading.h create mode 100644 src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralGertboard.h create mode 100644 src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralI2C.h create mode 100644 src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralInterrupt.h create mode 100644 src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralLCD.h create mode 100644 src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralMcp.h create mode 100644 src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralMisc.h create mode 100644 src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralPcf.h create mode 100644 src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralPiGlow.h delete mode 100644 src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralPinISR.h create mode 100644 src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralPinMap.h create mode 100644 src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralSetup.h create mode 100644 src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralShift.h create mode 100644 src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralSoft.h delete mode 100644 src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralThreading.h create mode 100644 src/c/hardware/rasberrypi/lcd/u8RPI_lcdCharDefs.c create mode 100644 src/c/hardware/rasberrypi/lcd/u8RPI_lcdClears.c create mode 100644 src/c/hardware/rasberrypi/lcd/u8RPI_lcdCursorBlinks.c create mode 100644 src/c/hardware/rasberrypi/lcd/u8RPI_lcdCursors.c create mode 100644 src/c/hardware/rasberrypi/lcd/u8RPI_lcdDisplays.c create mode 100644 src/c/hardware/rasberrypi/lcd/u8RPI_lcdHomes.c create mode 100644 src/c/hardware/rasberrypi/lcd/u8RPI_lcdInits.c create mode 100644 src/c/hardware/rasberrypi/lcd/u8RPI_lcdPositions.c create mode 100644 src/c/hardware/rasberrypi/lcd/u8RPI_lcdPrintfs.c create mode 100644 src/c/hardware/rasberrypi/lcd/u8RPI_lcdPutchars.c create mode 100644 src/c/hardware/rasberrypi/lcd/u8RPI_lcdPutss.c create mode 100644 src/c/hardware/rasberrypi/lcd/u8RPI_lcdSendCommands.c create mode 100644 src/c/hardware/rasberrypi/mcp/u16RPI_mcp23008Setups.c create mode 100644 src/c/hardware/rasberrypi/mcp/u16RPI_mcp23016Setups.c create mode 100644 src/c/hardware/rasberrypi/mcp/u16RPI_mcp23017Setups.c create mode 100644 src/c/hardware/rasberrypi/mcp/u16RPI_mcp23s08Setups.c create mode 100644 src/c/hardware/rasberrypi/mcp/u16RPI_mcp23s17Setups.c create mode 100644 src/c/hardware/rasberrypi/pcf/u16RPI_pcf8574Setups.c create mode 100644 src/c/hardware/rasberrypi/pcf/u16RPI_pcf8591Setups.c create mode 100644 src/c/hardware/rasberrypi/piGlow/u8RPI_piGlow1s.c create mode 100644 src/c/hardware/rasberrypi/piGlow/u8RPI_piGlowLegs.c create mode 100644 src/c/hardware/rasberrypi/piGlow/u8RPI_piGlowRings.c create mode 100644 src/c/hardware/rasberrypi/piGlow/u8RPI_piGlowSetups.c create mode 100644 src/c/hardware/rasberrypi/pinMap/u8RPI_physToGpios.c create mode 100644 src/c/hardware/rasberrypi/pinMap/u8RPI_wpiToGpios.c create mode 100644 src/c/hardware/rasberrypi/pwm/gRPI_pwmModea.c create mode 100644 src/c/hardware/rasberrypi/pwm/u16RPI_pwmClocks.c create mode 100644 src/c/hardware/rasberrypi/pwm/u32RPI_pwmRanges.c delete mode 100644 src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetClocks.c delete mode 100644 src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetModes.c delete mode 100644 src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetRanges.c delete mode 100644 src/c/hardware/rasberrypi/pwm/u8RPIHardPWMWrites.c create mode 100644 src/c/hardware/rasberrypi/pwm/u8RPI_pwmToneWrites.c create mode 100644 src/c/hardware/rasberrypi/pwm/u8RPI_pwmWrites.c delete mode 100644 src/c/hardware/rasberrypi/serial/dRPISerialSendDataa.c delete mode 100644 src/c/hardware/rasberrypi/serial/dRPISerialSendDatas.c delete mode 100644 src/c/hardware/rasberrypi/serial/gRPISerialSendDatas.c delete mode 100644 src/c/hardware/rasberrypi/serial/i16RPISerialDataAvails.c delete mode 100644 src/c/hardware/rasberrypi/serial/i16RPISerialGetChars.c delete mode 100644 src/c/hardware/rasberrypi/serial/i16RPISerialSendDataa.c delete mode 100644 src/c/hardware/rasberrypi/serial/i16RPISerialSendDatas.c delete mode 100644 src/c/hardware/rasberrypi/serial/i8RPISerialSendDataa.c delete mode 100644 src/c/hardware/rasberrypi/serial/i8RPISerialSendDatas.c delete mode 100644 src/c/hardware/rasberrypi/serial/sRPISerialSendDataa.c delete mode 100644 src/c/hardware/rasberrypi/serial/sRPISerialSendDatas.c delete mode 100644 src/c/hardware/rasberrypi/serial/u16RPISerialSendDataa.c delete mode 100644 src/c/hardware/rasberrypi/serial/u16RPISerialSendDatas.c delete mode 100644 src/c/hardware/rasberrypi/serial/u16RPISerialSetups.c delete mode 100644 src/c/hardware/rasberrypi/serial/u8RPISerialCloses.c delete mode 100644 src/c/hardware/rasberrypi/serial/u8RPISerialFlushs.c delete mode 100644 src/c/hardware/rasberrypi/serial/u8RPISerialSendChars.c delete mode 100644 src/c/hardware/rasberrypi/serial/u8RPISerialSendDataa.c delete mode 100644 src/c/hardware/rasberrypi/serial/u8RPISerialSendDatas.c create mode 100644 src/c/hardware/rasberrypi/soft/u8RPI_softPwmCreates.c create mode 100644 src/c/hardware/rasberrypi/soft/u8RPI_softPwmStops.c create mode 100644 src/c/hardware/rasberrypi/soft/u8RPI_softPwmWrites.c create mode 100644 src/c/hardware/rasberrypi/soft/u8RPI_softToneCreates.c create mode 100644 src/c/hardware/rasberrypi/soft/u8RPI_softToneStops.c create mode 100644 src/c/hardware/rasberrypi/soft/u8RPI_softToneWrites.c delete mode 100644 src/c/hardware/rasberrypi/threading/u16RPIThreadCreates.c delete mode 100644 src/c/hardware/rasberrypi/timing/u16RPIDelayMicros.c delete mode 100644 src/c/hardware/rasberrypi/timing/u16RPIDelayMillis.c delete mode 100644 src/c/hardware/rasberrypi/timing/u32RPIGetMicros.c delete mode 100644 src/c/hardware/rasberrypi/timing/u32RPIGetMillis.c create mode 100644 thirdparty/includes/WiringPi/gertboard.h create mode 100644 thirdparty/includes/WiringPi/lcd.h create mode 100644 thirdparty/includes/WiringPi/mcp23008.h create mode 100644 thirdparty/includes/WiringPi/mcp23016.h create mode 100644 thirdparty/includes/WiringPi/mcp23017.h create mode 100644 thirdparty/includes/WiringPi/mcp23s08.h create mode 100644 thirdparty/includes/WiringPi/mcp23s17.h create mode 100644 thirdparty/includes/WiringPi/pcf8574.h create mode 100644 thirdparty/includes/WiringPi/pcf8591.h create mode 100644 thirdparty/includes/WiringPi/piGlow.h create mode 100644 thirdparty/includes/WiringPi/sn3218.h create mode 100644 thirdparty/includes/WiringPi/softPwm.h create mode 100644 thirdparty/includes/WiringPi/softTone.h create mode 100644 thirdparty/includes/WiringPi/sr595.h create mode 100644 thirdparty/includes/WiringPi/wiringPiI2C.h create mode 100644 thirdparty/includes/WiringPi/wiringShift.h create mode 100644 thirdparty/lib/raspberrypi/libwiringPi.a create mode 100644 thirdparty/lib/raspberrypi/libwiringPiDev.a create mode 100644 thirdparty/lib/raspberrypi/libwiringPiDev.so diff --git a/builder.sce b/builder.sce index 5938a588..050f6090 100644 --- a/builder.sce +++ b/builder.sce @@ -27,8 +27,10 @@ TOOLBOX_TITLE = 'Scilab 2 C Converter'; toolbox_dir = get_absolute_file_path('builder.sce'); tbx_builder_macros(toolbox_dir); -//tbx_builder_help(toolbox_dir); +tbx_build_localization(TOOLBOX_NAME, toolbox_dir); +tbx_builder_help(toolbox_dir); tbx_build_loader(TOOLBOX_NAME, toolbox_dir); +tbx_build_cleaner(TOOLBOX_NAME, toolbox_dir); clear toolbox_dir TOOLBOX_NAME TOOLBOX_TITLE; // ==================================================================== diff --git a/cleaner.sce b/cleaner.sce new file mode 100644 index 00000000..370c68f5 --- /dev/null +++ b/cleaner.sce @@ -0,0 +1,38 @@ +// This file is released under the 3-clause BSD license. See COPYING-BSD. +// Generated by builder.sce: Please, do not edit this file + +try + getversion("scilab"); +catch + error("Scilab 5.0 or more is required."); +end +function perform_clean() + root_tlbx = get_absolute_file_path('cleaner.sce'); + + if isfile(root_tlbx + '/macros/cleanmacros.sce') then + exec(root_tlbx+'/macros/cleanmacros.sce'); + end + + if isfile(root_tlbx + '/src/cleaner_src.sce') then + exec(root_tlbx+'/src/cleaner_src.sce'); + end + + if isfile(root_tlbx + "/sci_gateway/cleaner_gateway.sce") then + exec(root_tlbx + "/sci_gateway/cleaner_gateway.sce"); + mdelete(root_tlbx + "/sci_gateway/cleaner_gateway.sce"); + end + + if isfile(root_tlbx + "/help/cleaner_help.sce") then + exec(root_tlbx + "/help/cleaner_help.sce"); + end + + if isfile(root_tlbx + "/loader.sce") then + mdelete(root_tlbx + "/loader.sce"); + end + + if isfile(root_tlbx + "/unloader.sce") then + mdelete(root_tlbx + "/unloader.sce"); + end +endfunction +perform_clean(); +clear perform_clean; diff --git a/etc/scilab2c.start b/etc/scilab2c.start index 59cf0865..2f364c68 100644 --- a/etc/scilab2c.start +++ b/etc/scilab2c.start @@ -20,12 +20,12 @@ sci2c_GenFunctionslib = lib(pathmacros + "GeneralFunctions" + filesep()); sci2c_SymbolTablelib = lib(pathmacros + "SymbolTable" + filesep()); sci2c_ToolInitlib = lib(pathmacros + "ToolInitialization" + filesep()); sci2c_finDeps = lib(pathmacros + "findDeps" + filesep()); -sci2c_AVRlib = lib(pathmacros + "Hardware\AVR" + filesep()); -sci2c_RPilib = lib(pathmacros + "Hardware\RasberryPi"+ filesep()); +sci2c_AVRlib = lib(pathmacros + "Hardware\AVR" + filesep()); +sci2c_RPilib = lib(pathmacros + "Hardware\RasberryPi"+ filesep()); sci2c_ScilabArduinolib = lib(pathmacros + "Scilab-Arduino" + filesep()); sci2c_CVCorelib = lib(pathmacros + "ImageProcessing\core" + filesep()); sci2c_CVHighguilib = lib(pathmacros + "ImageProcessing\highgui" + filesep()); -sci2c_CVImgproclib = lib(pathmacros + "ImageProcessing\imgproc" + filesep()); +sci2c_CVImgproclib = lib(pathmacros + "ImageProcessing\imgproc" + filesep()); clear pathmacros; // Load and add help chapter @@ -47,7 +47,7 @@ if or(getscilabmode() == ["NW";"STD"]) then mprintf("\tLoad demos\n"); pathdemos = pathconvert(root_tlbx + "/demos/scilab2c.dem.gateway.sce",%f,%t); - add_demo(gettext("Scilab2C"),pathdemos); +// add_demo(gettext("Scilab2C"),pathdemos); clear pathdemos ; end diff --git a/help/builder_help.sce b/help/builder_help.sce new file mode 100755 index 00000000..42729d12 --- /dev/null +++ b/help/builder_help.sce @@ -0,0 +1,4 @@ +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +tbx_builder_help_lang(["en_US"], .. +get_absolute_file_path("builder_help.sce")); diff --git a/help/cleaner_help.sce b/help/cleaner_help.sce new file mode 100755 index 00000000..a2b5e7ef --- /dev/null +++ b/help/cleaner_help.sce @@ -0,0 +1,21 @@ +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +function cleaner_help() + path = get_absolute_file_path("cleaner_help.sce"); + langdirs = dir(path); + langdirs = langdirs.name(langdirs.isdir); + + for l = 1:size(langdirs, "*") + masterfile = fullpath(path + filesep() + langdirs(l) + "/master_help.xml"); + mdelete(masterfile); + + jarfile = fullpath(path + "/../jar/scilab_" + langdirs(l) + "_help.jar"); + mdelete(jarfile); + + tmphtmldir = fullpath(path + "/" + langdirs(l) + "/scilab_" + langdirs(l) + "_help"); + rmdir(tmphtmldir, "s"); + end +endfunction + +cleaner_help(); +clear cleaner_help; diff --git a/help/en_US/AVRADCSetup.xml b/help/en_US/AVRADCSetup.xml new file mode 100644 index 00000000..a0abf030 --- /dev/null +++ b/help/en_US/AVRADCSetup.xml @@ -0,0 +1,83 @@ + + + + + + + + AVRADCSetup + Function to initialise ADC of AVR + + + + + Calling Sequence + + AVRADCSetup(uint8 prescaler, uint8 adc_ref) + + + + + + Parameters + + prescaler: + prescaler to be used for generating ADC clock (0-7) + adc_ref : + reference voltage to be used for ADC conversion + + + + + Description + +This function initialises ADc of AVR with given parameters. 'prescaler' is needed for deciding ADC clock. ADC clock should be between 50KHz and 200KHz and it given as (MCU clock/2^prescaler). Select appropriate prescaler depending on MCU clock. 'adc_ref' selects one of the available reference voltage sources available. + + +The adc_ref can take the following values- + +0 -> Voltage on VREF pin +1 -> Voltage on AVCC pin +2 -> Internal 2.56 reference voltage + + + +This is curretly dummy function. It provides no functionality but is required for providing support for generating C code for AVR. + + + + + + + Examples + + + + + See also + + AVRReadADC + + + + + Authors + + Siddhesh Wani + Ashish Kamble + + + diff --git a/help/en_US/AVRDigitalIn.xml b/help/en_US/AVRDigitalIn.xml new file mode 100644 index 00000000..ef87407c --- /dev/null +++ b/help/en_US/AVRDigitalIn.xml @@ -0,0 +1,79 @@ + + + + + + + + AVRDigitalIn + Function to get state (high\low) of a digital input pin on AVR + + + + + Calling Sequence + + state=AVRDigitalIn(port,pin) + + + + + + Parameters + + port : + port of microcontroller to be used + pin : + pin of port (mentioned above) to be used + + + + + Description + +Each AVR microcontroller has pins which can be configured as digital +inputs. These are normally divided among some 'ports' (group of pins). +User has to select one of these port and which pin of that port as +digital input. + + +This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for AVR. + + + + + + + Examples + + + + + See also + + AVRDigitalSetup + + + + + Authors + + Siddhesh Wani + Ashish Kamble + + + diff --git a/help/en_US/AVRDigitalOut.xml b/help/en_US/AVRDigitalOut.xml new file mode 100644 index 00000000..0ce8197f --- /dev/null +++ b/help/en_US/AVRDigitalOut.xml @@ -0,0 +1,82 @@ + + + + + + + + AVRDigitalOut + Function to change state (high\low) of a digital output pin on AVR + + + + + Calling Sequence + + AVRDigitalOut(port,pin,state) + + + + + + Parameters + + port : + port of microcontroller to be used + pin : + pin of port (mentioned above) to be used + state : + state to be outputed on pin (HIGH\LOW) + + + + + Description + +Each AVR microcontroller has pins which can be configured as digital +outputs. These are normally divided among some 'ports' (group of pins). +User has to select one of these port and which pin of that port as +digital output. Also, desired output state must be specified as +'HIGH' or 'LOW'. + + +This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for AVR. + + + + + + + Examples + + + + + See also + + AVRDigitalIn + + + + + Authors + + Siddhesh Wani + Ashish Kamble + + + diff --git a/help/en_US/AVRDigitalPortSetup.xml b/help/en_US/AVRDigitalPortSetup.xml new file mode 100644 index 00000000..8b7b15dc --- /dev/null +++ b/help/en_US/AVRDigitalPortSetup.xml @@ -0,0 +1,81 @@ + + + + + + + + AVRDigitalPortSetup + Function to decide direction of port on AVR + + + + + Calling Sequence + + AVRDigitalPortSetup(port,direction) + + + + + + Parameters + + port : + port of microcontroller to be used(1 for PORTA, 2 for PORTB,...) + direction : + direction to be set for pin (0 for INPUT, 1 for OUTPUT) + + + + + Description + +Each AVR microcontroller has pins which can be configured as digital +outputs/inputs. These are normally divided among some 'ports' (group of pins). +User has to select one of these port and which pin of that port to be +used as digital output/input. Also, desired direction must be specified as +'INPUT' or 'OUTPUT'. + + +This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for AVR. + + + + + + + Examples + + + + + See also + + AVRDigitalOut + + + + + Authors + + Siddhesh Wani + Ashish Kamble + + + diff --git a/help/en_US/AVRDigitalSetup.xml b/help/en_US/AVRDigitalSetup.xml new file mode 100644 index 00000000..a2285730 --- /dev/null +++ b/help/en_US/AVRDigitalSetup.xml @@ -0,0 +1,83 @@ + + + + + + + + AVRDigitalSetup + Function to decide direction of a digital pin on AVR + + + + + Calling Sequence + + AVRDigitalSetup(port,pin,direction) + + + + + + Parameters + + port : + port of microcontroller to be used + pin : + pin of port (mentioned above) to be used + direction : + direction to be set for pin (INPUT\OUTPUT) + + + + + Description + +Each AVR microcontroller has pins which can be configured as digital +outputs/inputs. These are normally divided among some 'ports' (group of pins). +User has to select one of these port and which pin of that port to be +used as digital output/input. Also, desired direction must be specified as +'INPUT' or 'OUTPUT'. + + +This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for AVR. + + + + + + + Examples + + + + + See also + + AVRDigitalOut + + + + + Authors + + Siddhesh Wani + Ashish Kamble + + + diff --git a/help/en_US/AVRGetTimerValue.xml b/help/en_US/AVRGetTimerValue.xml new file mode 100644 index 00000000..f639c60d --- /dev/null +++ b/help/en_US/AVRGetTimerValue.xml @@ -0,0 +1,73 @@ + + + + + + + + AVRGetTimerValue + Function to get timer count + + + + + Parameters + + timer : + timer whose current count is to be returned + + + + + Description + +This function returns the count value of a desired timer.By knowing the count value certain interrupt action can be taken. + + +Timer can take the following values + +0 -> for timer0 +1 -> for timer1 +2 -> for timer2 + + + +This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for AVR. + + + + + + + Examples + + + + + See also + + AVRTimerSetup + + + + + Authors + + Ashish Kamble + + + diff --git a/help/en_US/AVRPWM0SetDuty.xml b/help/en_US/AVRPWM0SetDuty.xml new file mode 100644 index 00000000..a3f26812 --- /dev/null +++ b/help/en_US/AVRPWM0SetDuty.xml @@ -0,0 +1,66 @@ + + + + + + + + AVRPWM0SetDuty + Function to Set Duty cycle of PWM Output generated by Timer0 at OC0 pin. + + + + + Parameters + + duty : + It holds an integer value from 0 to 100 which sets the percentage of time for which signal is active. + + + + + Description + +Each Micro controller has PWM output pins which can generate varying voltage +from 0V-5V.In this function by varying the duty cycle, varying voltage can be produced. + + +This is curretly dummy function. It provides no functionality but is required for providing support for generating C code for AVR. + + + + + + + Examples + + + + + See also + + AVRPWM0Setup + + + + + Authors + + Ashish Kamble + + + diff --git a/help/en_US/AVRPWM0Setup.xml b/help/en_US/AVRPWM0Setup.xml new file mode 100644 index 00000000..f72f2582 --- /dev/null +++ b/help/en_US/AVRPWM0Setup.xml @@ -0,0 +1,92 @@ + + + + + + + + AVRPWM0Setup + Function to Setup OC0 pin for required PWM mode + + + + + Parameters + + waveform_mode: + integer, from 0 to 2 + output_mode: + integer, from 0 to 1 (or 2) depending on the waveform_mode + + + + + Description + +Every Micro controller has PWM pins which can generate varying voltages +from 0V-5V.This function helps to use OC0 pin to produce required +output waveform by setting the waveform mode and otput mode. + + +waveform_mode can take values- + +0 -> for Phase correct PWM Mode +1 -> for Fast PWM Mode +2 -> for CTC Mode + + + +output_mode can take values- + +For Phase correct PWM Mode: +0 for Clear OC0 on compare match when up-counting. Set OC0 on compare match when down-counting. +1 for Set OC0 on compare match when up-counting. Clear OC0 on compare match when down-counting. +For Fast PWM Mode: +0 for non-inverted output i.e Clear OC0 on compare match, set OC0 at BOTTOM. +1 for inverted output i.e Set OC0 on compare match, clear OC0 at BOTTOM. +For CTC Mode: +0 to Clear OC0 on compare match +1 to Set OC0 on compare match +2 to toggle OC0 on compare match + + + +This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for AVR. + + + + + + + Examples + + + + + See also + + AVRPWM0SetDuty + + + + + Authors + + Ashish Kamble + + + diff --git a/help/en_US/AVRPWM1SetDuty.xml b/help/en_US/AVRPWM1SetDuty.xml new file mode 100644 index 00000000..83230ea8 --- /dev/null +++ b/help/en_US/AVRPWM1SetDuty.xml @@ -0,0 +1,66 @@ + + + + + + + + AVRPWM1SetDuty + Function to Set Duty cycle of PWM Output generated by Timer1 at OC1A or OC1B pin. + + + + + Parameters + + ouput_pin: + integer, 0 (for OC1A) or 1 (for OC1B) + duty: + It holds an integer value from 0 to 100 which sets the percentage of time for which signal is active. + Top_Value: + It holds an integer value from 0 to 65535.This value sets the Top value of the counter TCNT1 i.e ICR.(for more info refer datasheet) + + + + + Description + +Each Micro controller has PWM output pins which can generate varying voltage +from 0V-5V.This function Sets the duty cycle of output PWM signal.Also this function +decides the Top Vale of TCNT1 and the output pin to output PWM signal. + + +This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for AVR. + + +Example +AVRPWM1SetDuty(0,50,40000); //This function will produce PWM signal of 50% duty cycle on OC1A pin and TCNT1 will reset at 40000 instead at 65535. + + + + + See also + + AVRPWM1Setup + + + + + Authors + + Ashish Kamble + + + diff --git a/help/en_US/AVRPWM1Setup.xml b/help/en_US/AVRPWM1Setup.xml new file mode 100644 index 00000000..14984130 --- /dev/null +++ b/help/en_US/AVRPWM1Setup.xml @@ -0,0 +1,91 @@ + + + + + + + + AVRPWM1Setup + Function to Setup OC1A or OC1B pin for required PWM mode + + + + + Parameters + + waveform_mode: + integer, from 0 to 2 + output_mode: + integer, from 0 to 1 (or 2) depending on the waveform_mode + output_pin: + 0 (for OC1A) or 1 for (OC1B) + + + + + Description + +Every Micro controller has PWM pins which can generate varying voltages +from 0V-5V.This function helps to use OC1A or OC1B pin to produces required +output waveform by setting the waveform mode and otput mode. + + +waveform_mode can take values- + +0 -> for Phase correct PWM Mode +1 -> for Fast PWM Mode +2 -> for CTC Mode + + + +output_mode can take values- + +For Phase correct PWM Mode: +0 for Clear OC1A or OC1B on compare match when up-counting. Set OC1A or OC1B on compare match when down-counting. +1 for Set OC1A or OC1B on compare match when up-counting. Clear OC1A or OC1B on compare match when down-counting. +For Fast PWM Mode: +0 for non-inverted output i.e Clear OC1A or OC1B on compare match, set OC1A or OC1B at BOTTOM. +1 for inverted output i.e Set OC1A or OC1B on compare match, clear OC1A or OC1B at BOTTOM. +For CTC Mode: +0 to Clear OC1A or OC1B on compare match +1 to Set OC1A or OC1B on compare match +2 to toggle OC1A or OC1B on compare match + + + +This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for AVR. + + +Example +AVRPWM1Setup(2,0,0); //This function will select CTC mode and will clear OC1A or OC1B +on compare match.Also as defined the output will be produced at +0C1A pin. + + + + + See also + + AVRPWM1SetDuty + + + + + Authors + + Ashish Kamble + + + diff --git a/help/en_US/AVRPWM2SetDuty.xml b/help/en_US/AVRPWM2SetDuty.xml new file mode 100644 index 00000000..d44f0f71 --- /dev/null +++ b/help/en_US/AVRPWM2SetDuty.xml @@ -0,0 +1,65 @@ + + + + + + + + AVRPWM2SetDuty + Function to Set Duty cycle of PWM Output generated by Timer2 at OC2 pin. + + + + + Parameters + + duty : + It holds an integer value from 0 to 100 which sets the percentage of time for which signal is active. + + + + + Description + +Each Micro controller has PWM output pins which can generate varying voltage +from 0V-5V.In this function by varying the duty cycle, varying voltage can be +produced. + + +This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for AVR. + + +Example +AVRPWM2SetDuty(50); //Produces 2.5V at OC2 pin +AVRPWM2SetDuty(0); //Produces 0V at OC2 pin + + + + + + + See also + + AVRPWM2Setup + + + + + Authors + + Ashish Kamble + + + diff --git a/help/en_US/AVRPWM2Setup.xml b/help/en_US/AVRPWM2Setup.xml new file mode 100644 index 00000000..fe802522 --- /dev/null +++ b/help/en_US/AVRPWM2Setup.xml @@ -0,0 +1,88 @@ + + + + + + + + AVRPWM2Setup + Function to Setup OC2 pin for required PWM mode + + + + + Parameters + + waveform_mode: + integer, from 0 to 2 + output_mode: + integer, from 0 to 1 (or 2) depending on the waveform_mode + + + + + Description + +Every Micro controller has PWM pins which can generate varying voltages +from 0V-5V.This function helps to use OC2 pin to produces required +output waveform by setting the waveform mode and otput mode. + + +waveform_mode can take values- + +0 -> for Phase correct PWM Mode +1 -> for Fast PWM Mode +2 -> for CTC Mode + + + +output_mode can take values- + +For Phase correct PWM Mode: +0 for Clear OC2 on compare match when up-counting. Set OC2 on compare match when down-counting. +1 for Set OC2 on compare match when up-counting. Clear OC2 on compare match when down-counting. +For Fast PWM Mode: +0 for non-inverted output i.e Clear OC2 on compare match, set OC2 at BOTTOM. +1 for inverted output i.e Set OC2 on compare match, clear OC2 at BOTTOM. +For CTC Mode: +0 to Clear OC2 on compare match +1 to Set OC2 on compare match +2 to toggle OC2 on compare match + + + +This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for AVR. + + +Example +AVRPWM2Setup(2,0); //This function will select CTC waveform mode and will clear OC2 on +compare match + + + + + See also + + AVRPWM2SetDuty + + + + + Authors + + Ashish Kamble + + + diff --git a/help/en_US/AVRReadADC.xml b/help/en_US/AVRReadADC.xml new file mode 100644 index 00000000..abdcad9a --- /dev/null +++ b/help/en_US/AVRReadADC.xml @@ -0,0 +1,71 @@ + + + + + + + + AVRReadADC + Function to get voltage on analog pin on AVR + + + + + Calling Sequence + + u8AVRReadADCs(channel) + + + + + + Parameters + + channel : + Select which channel is to be read. Values from 0-7 select one of the pins ADC0-ADC7. For other possible channel values refer datasheet + + + + + Description + +This function returns digital value for present on adc pins. 'channel' +selects which of the ADC0-ADC7 is to be used for reading analog value. +Apart from reading just ADC0-ADC7 other it can also read differential +voltages between some pins. For channel values for those options, please +refer datasheet. + + +This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for AVR. + + + + + + + Examples + + + + + Authors + + Siddhesh Wani + Ashish Kamble + + + diff --git a/help/en_US/AVRSleep.xml b/help/en_US/AVRSleep.xml new file mode 100644 index 00000000..3ece53b8 --- /dev/null +++ b/help/en_US/AVRSleep.xml @@ -0,0 +1,56 @@ + + + + + + + + AVRSleep + Function to pause the execution for the given time. + + + + + Description + +This function causes the execution to stop for the given amount of time. + + +This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for AVR. + + + + + + + Examples + + + + + See also + + + + + + Authors + + Jorawar Singh + + + diff --git a/help/en_US/AVRTimerSetup.xml b/help/en_US/AVRTimerSetup.xml new file mode 100644 index 00000000..420e6767 --- /dev/null +++ b/help/en_US/AVRTimerSetup.xml @@ -0,0 +1,37 @@ + + + + + + + + AVRTimerSetup + Function to setup Timers in ATmega16 + + + + + See also + + AVRGetTimerValues + + + + + Authors + + Ashish Kamble + + + diff --git a/help/en_US/AVRUARTReceive.xml b/help/en_US/AVRUARTReceive.xml new file mode 100644 index 00000000..84f9510e --- /dev/null +++ b/help/en_US/AVRUARTReceive.xml @@ -0,0 +1,59 @@ + + + + + + + + AVRUARTReceive + Function to Receive Char value send to ATmega16 using UART or USART. + + + + + Description + +This function Receives Char as 8 bit value.This value is stored in UDR at receiving +end. + + +This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for AVR. + + + + + + + Examples + + + + + See also + + AVRUARTSetup + AVRUARTTransmit + + + + + Authors + + Ashish Kamble + + + diff --git a/help/en_US/AVRUARTSetup.xml b/help/en_US/AVRUARTSetup.xml new file mode 100644 index 00000000..043e2652 --- /dev/null +++ b/help/en_US/AVRUARTSetup.xml @@ -0,0 +1,90 @@ + + + + + + + + AVRUARTSetup + Function to Setup Serial Communication i.e UART or USART in ATmega16. + + + + + Parameters + + mode : + integer, from 0 to 2 + baudrate : + Enter one of the following available baudrates (2400 , 4800 , 9600 , 14400 , 19200 , 28800 , 38400 , 57600 , 768000 , 115200 , 230400 , 250000 , 1000000) + stopbits : + integer, (0 for one stopbit) or (1 for two stopbits) + parity : + integer, from 0 to 2 + + + + + Description + +This function Setup the UART or USART for Serial Communicaion between ATmega16 +and different micro controllers or between ATmega16 and Computer. + + +mode can take values: + +0 for Asynchronous Normal mode +1 for Asynchronous Double Speed mode +2 for Synchronous mode + + + +parity can take values: + +0 for parity disabled +1 for even parity +2 for odd parity + + + +This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for AVR. + + + + + + + Examples + + + + + See also + + AVRUARTTransmit + AVRUARTReceive + + + + + Authors + + Ashish Kamble + + + diff --git a/help/en_US/AVRUARTTransmit.xml b/help/en_US/AVRUARTTransmit.xml new file mode 100644 index 00000000..e30e374b --- /dev/null +++ b/help/en_US/AVRUARTTransmit.xml @@ -0,0 +1,59 @@ + + + + + + + + AVRUARTTransmit + Function to Transmit data using UART or USART. + + + + + Description + +This function Tranmits data over UART or USART.The data to be transmitted can +be a Char , String , Unsigned Int, Signed Int. + + +This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for AVR. + + + + + + + Examples + + + + + See also + + AVRUARTSetup + AVRUARTReceive + + + + + Authors + + Ashish Kamble + + + diff --git a/help/en_US/CV_AdaptiveThreshold.xml b/help/en_US/CV_AdaptiveThreshold.xml new file mode 100644 index 00000000..1483442a --- /dev/null +++ b/help/en_US/CV_AdaptiveThreshold.xml @@ -0,0 +1,86 @@ + + + + + + + + CV_AdaptiveThreshold + function to adaptively threshold input image + + + + + Calling Sequence + + dst = CV_AdaptiveThreshold(srcimg,max_value,adaptive_method,thresh_type,blk_size,c) + + + + + + Parameters + + src : + Source 8-bit single-channel image. + max_value : + Non-zero value assigned to the pixels for which the condition is satisfied. See the details below. + adaptive_method : + Adaptive thresholding algorithm to use, ADAPTIVE_THRESH_MEAN_C or ADAPTIVE_THRESH_GAUSSIAN_C . + thresh_type : + Thresholding type that must be either THRESH_BINARY or THRESH_BINARY_INV . + blockSize : + Size of a pixel neighborhood that is used to calculate a threshold value for the pixel: 3, 5, 7, and so on. + C : + Constant subtracted from the mean or weighted mean.Normally, it is positive but may be zero or negative as well. + + + + + Description + +This function can be used for adaptively threshold given image + + +This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for OpenCV + + + + + + + Examples + + + + + See also + + CV_CreateImage + + + + + Authors + + Siddhesh Wani + + + diff --git a/help/en_US/CV_Blur.xml b/help/en_US/CV_Blur.xml new file mode 100644 index 00000000..228b3107 --- /dev/null +++ b/help/en_US/CV_Blur.xml @@ -0,0 +1,92 @@ + + + + + + + + CV_Blur + function to blur image using normalised box filter + + + + + Calling Sequence + + dst = CV_Blur(srcimg,ksize_width,ksize_height,anchor_x,anchor_y,border_type) + + + + + + Parameters + + srcimg : + Source image. + ksize_width, ksize_height : + blurring kernel size. + anchor_x, anchor_y : + x,y coordinates of anchor point + border_type : + border mode used to extrapolate pixels outside of the image. + + + + + Description + +This function can be used for blurring image using normalised box +filter. Image can be of any depth and have any no of channels. + + +border_type can be : + +BORDER_REPLICATE: aaaaaa|abcdefgh|hhhhhhh +BORDER_REFLECT: fedcba|abcdefgh|hgfedcb +BORDER_REFLECT_101: gfedcb|abcdefgh|gfedcba +BORDER_WRAP: cdefgh|abcdefgh|abcdefg +BORDER_CONSTANT: iiiiii|abcdefgh|iiiiiii + + + +This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for OpenCV + + + + + + + Examples + + + + + See also + + CV_Threshold, CV_CvtColor + + + + + Authors + + Siddhesh Wani + + + diff --git a/help/en_US/CV_Canny.xml b/help/en_US/CV_Canny.xml new file mode 100644 index 00000000..daf7f55b --- /dev/null +++ b/help/en_US/CV_Canny.xml @@ -0,0 +1,88 @@ + + + + + + + + CV_Canny + Finds edges in image using Canny algorithm + + + + + Calling Sequence + + edges = CV_Canny(srcimg,threhold1,threshold2,aperture_size,L2gradient) + + + + + + Parameters + + srcimg : + single-channel 8-bit input image. + threshold1 : + first threshold for the hysteresis procedure. + threshold2 : + second threshold for the hysteresis procedure. + aperture_size : + aperture size for the Sobel() operator. + L2gradient : + a flag, indicating whether a more accurate + + + + + Description + +This function can be used for finding edes in single channel 8 bit +image. 'aperture_size' and 'L2gradient' are optionals. By default, +aperture_size is 3 and L2gradient is false. + + +For L2gradient: L_2 norm =sqrt{(dI/dx)^2 + (dI/dy)^2} should be used to calculate the image gradient magnitude (L2gradient=1 ), or whether the default L_1 norm =|dI/dx|+|dI/dy| is enough (L2gradient=0). + + +This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for OpenCV + + + + + + + Examples + + + + + See also + + CV_CvtColor + + + + + Authors + + Siddhesh Wani + + + diff --git a/help/en_US/CV_CornerHarris.xml b/help/en_US/CV_CornerHarris.xml new file mode 100644 index 00000000..e9b94260 --- /dev/null +++ b/help/en_US/CV_CornerHarris.xml @@ -0,0 +1,93 @@ + + + + + + + + CV_CornerHarris + Finds edges in image using Harris algorithm + + + + + Calling Sequence + + edges = CV_CornerHarris(srcimg,blocksize,ksize,k,border_type) + + + + + + Parameters + + srcimg: + Input single-channel 8-bit or floating-point image. + blockSize: + Neighborhood size + ksize: + Aperture parameter for the Sobel() operator. + k: + Harris detector free parameter. + border_type: + border mode used to extrapolate pixels outside of the image. + + + + + Description + +The function runs the Harris edge detector on the image. For each pixel (x, y) it calculates a 2 * 2 gradient covariance matrix M(x,y) over a blockSize * blockSize neighborhood. Then, it computes the following characteristic: dst(x,y) = det(M(x,y)) - k .tr(M(x,y))^2. Corners in the image can be found as the local maxima of this response map. + + +border_type can be : + +BORDER_REPLICATE: aaaaaa|abcdefgh|hhhhhhh +BORDER_REFLECT: fedcba|abcdefgh|hgfedcb +BORDER_REFLECT_101: gfedcb|abcdefgh|gfedcba +BORDER_WRAP: cdefgh|abcdefgh|abcdefg +BORDER_CONSTANT: iiiiii|abcdefgh|iiiiiii + + + +This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for OpenCV + + + + + + + Examples + + + + + See also + + CV_CvtColor + + + + + Authors + + Siddhesh Wani + + + diff --git a/help/en_US/CV_CreateImage.xml b/help/en_US/CV_CreateImage.xml new file mode 100644 index 00000000..45fde568 --- /dev/null +++ b/help/en_US/CV_CreateImage.xml @@ -0,0 +1,76 @@ + + + + + + + + CV_CreateImage + function to create an image object of given size and type + + + + + Calling Sequence + + CV_CreateImage(image_size,bit_depth,no_of_channels) + + + + + + Parameters + + image_size: + width and height of image + bit_depth: + Bit depth of image elements + no_of_channels: + no of channels per pixels + + + + + Description + +This function can be used to create opencv image object. For more info about bit depth and channels,please refer to OpenCV documentation + + +This is curretly dummy function. It provides no functionality but is required for providing support for generating C code for OpenCV + + + + + + + Examples + + + + + See also + + CV_LoadImage + + + + + Authors + + Siddhesh Wani + + + diff --git a/help/en_US/CV_CvtColor.xml b/help/en_US/CV_CvtColor.xml new file mode 100644 index 00000000..f1f25e0e --- /dev/null +++ b/help/en_US/CV_CvtColor.xml @@ -0,0 +1,81 @@ + + + + + + + + CV_CvtColor + function to convert image from one colorspace to other colorspace + + + + + Calling Sequence + + CV_CvtColor(srcimg,code) + + + + + + Parameters + + srcimg: + source image to be converted + dstimg: + destination image in which to store converted image + code: + String specifying conversion type. Same as defined in OpenCV. for eg. 'CV_RGB2GRAY' for conversion from RGB image to grayscale image + dstCn: + no of channels in destination image (0 by default) + + + + + Description + +This function can be used for converting an image to other colorspace. +Refer OpenCV documentation for list of available conversions + + +This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for OpenCV + + + + + + + Examples + + + + + See also + + CV_CreateImage + + + + + Authors + + Siddhesh Wani + + + diff --git a/help/en_US/CV_Dilate.xml b/help/en_US/CV_Dilate.xml new file mode 100644 index 00000000..d01b3ab7 --- /dev/null +++ b/help/en_US/CV_Dilate.xml @@ -0,0 +1,93 @@ + + + + + + + + CV_Dilate + dilates an image by using a specific structuring element. + + + + + Calling Sequence + + cvtimg = CV_Dilate(srcimg,dilation_type,dilation_size,[iterations,border_type,border_value]) + + + + + Parameters + + src : + input image; the number of channels can be arbitrary, but the depth should be one of CV_8U, CV_16U, CV_16S, CV_32F or CV_64F. + dilation_type : + can be one of MORPH_RECT, MORPH_CROSS,MORPH_ELLIPSE + dilation_size : + size of kernel to be used for erosion. Must be odd + iterations : + number of times erosion is applied. + border_type : + pixel extrapolation method. + border_value : + border value in case of a constant border + + + + + Description + +This function can be used for eroding an image. Kernel used for erosion is decided by type and size. Size must always be odd. Anchor pint of kernel is always center of kernel. Input arguements 'iterations(1), border_type(BORDER_CONSTANT) and border_value' are optionals. Whwn not specified, default values as as mentioned in brackets. + + +border_type can be : + + BORDER_REPLICATE: aaaaaa|abcdefgh|hhhhhhh + BORDER_REFLECT: fedcba|abcdefgh|hgfedcb + BORDER_REFLECT_101: gfedcb|abcdefgh|gfedcba + BORDER_WRAP: cdefgh|abcdefgh|abcdefg + BORDER_CONSTANT: iiiiii|abcdefgh|iiiiiii + + + +This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for OpenCV + + + + + + + Examples + + + + + See also + + CV_Erode + + + + + Authors + + Siddhesh Wani + + + diff --git a/help/en_US/CV_DistanceTransform.xml b/help/en_US/CV_DistanceTransform.xml new file mode 100644 index 00000000..07929993 --- /dev/null +++ b/help/en_US/CV_DistanceTransform.xml @@ -0,0 +1,78 @@ + + + + + + + + CV_DistanceTransform + function to calculate distance to closest zero pixels for each pixel + + + + + Calling Sequence + + dst = CV_DistanceTransform(srcimg,distance_type,mask_size) + + + + + + Parameters + + srcimg : + Source 8-bit single-channel image. + distance_type : + Type of distance. It can be CV_DIST_L1, CV_DIST_L2 , or CV_DIST_C + mask_size : + Size of the distance transform mask + + + + + Description + +This function can be used to calculate distance to closest zero pixel for each pixel of the source image. Output is 32 bit floatingpoint, single channel image of the same size as that of source image. + + +This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for OpenCV + + + + + + + Examples + + + + + See also + + CV_CreateImage CV_CvtColor + + + + + Authors + + Siddhesh Wani + + + diff --git a/help/en_US/CV_Erode.xml b/help/en_US/CV_Erode.xml new file mode 100644 index 00000000..103d4899 --- /dev/null +++ b/help/en_US/CV_Erode.xml @@ -0,0 +1,93 @@ + + + + + + + + CV_Erode + Erodes an image by using a specific structuring element. + + + + + Calling Sequence + + cvtimg = CV_Erode(srcimg,erosion_type,erosion_size,[iterations,border_type,border_value]) + + + + + Parameters + + src : + input image; the number of channels can be arbitrary, but the depth should be one of CV_8U, CV_16U, CV_16S, CV_32F or CV_64F. + erosion_type : + can be one of : MORPH_RECT, MORPH_CROSS, MORPH_ELLIPSE + erosion_size : + size of kernel to be used for erosion. Must be odd + iterations : + number of times erosion is applied. + border_type : + pixel extrapolation method. + border_value : + border value in case of a constant border + + + + + Description + +This function can be used for eroding an image. Kernel used for erosion is decided by type and size. Size must always be odd. Anchor pint of kernel is always center of kernel. Input arguements 'iterations(1), border_type(BORDER_CONSTANT) and border_value' are optionals. Whwn not specified, default values as as mentioned in brackets. + + +border_type can be : + +BORDER_REPLICATE: aaaaaa|abcdefgh|hhhhhhh +BORDER_REFLECT: fedcba|abcdefgh|hgfedcb +BORDER_REFLECT_101: gfedcb|abcdefgh|gfedcba +BORDER_WRAP: cdefgh|abcdefgh|abcdefg +BORDER_CONSTANT: iiiiii|abcdefgh|iiiiiii + + + +This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for OpenCV + + + + + + + Examples + + + + + See also + + CV_Dilate + + + + + Authors + + Siddhesh Wani + + + diff --git a/help/en_US/CV_GaussianBlur.xml b/help/en_US/CV_GaussianBlur.xml new file mode 100644 index 00000000..88a8f33c --- /dev/null +++ b/help/en_US/CV_GaussianBlur.xml @@ -0,0 +1,95 @@ + + + + + + + + CV_GaussianBlur + function to blur image using gaussian filter + + + + + Calling Sequence + + cvtimg = CV_GaussianBlur(srcimg,ksize_width,ksize_height,sigma_x,sigma_y,border_type) + + + + + + Parameters + + srcimg : + Source image. + ksize_width, ksize_height : + blurring kernel size. must be odd. + sigmaX : + Gaussian kernel standard deviation in X direction. + sigmaY : + Gaussian kernel standard deviation in Y direction; + border_type : + border mode used to extrapolate pixels outside of the image. + + + + + Description + +This function can be used for blurring image using gaussian filter. Image can be of any depth and have any no of channels. + + +For sigmaX and sigmaY : if sigmaY is zero, it is set to be equal to sigmaX, if both sigmas are zeros, they are computed from ksize.width and ksize.height , respectively. + + +border_type can be : + +BORDER_REPLICATE: aaaaaa|abcdefgh|hhhhhhh +BORDER_REFLECT: fedcba|abcdefgh|hgfedcb +BORDER_REFLECT_101: gfedcb|abcdefgh|gfedcba +BORDER_WRAP: cdefgh|abcdefgh|abcdefg +BORDER_CONSTANT: iiiiii|abcdefgh|iiiiiii + + + +This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for OpenCV + + + + + + + Examples + + + + + See also + + CV_Blur, CV_CvtColor + + + + + Authors + + Siddhesh Wani + + + diff --git a/help/en_US/CV_GetImgSize.xml b/help/en_US/CV_GetImgSize.xml new file mode 100644 index 00000000..717c8086 --- /dev/null +++ b/help/en_US/CV_GetImgSize.xml @@ -0,0 +1,75 @@ + + + + + + + + CV_GetImgSize + function to get size of the image (width*height) + + + + + Calling Sequence + + CV_GetImgSize(img) + + + + + + Parameters + + img: + image whose size is to be returned + + + + + Description + +This function can be used for retriving size information of the image. +It returs an array with first image element as width and second as height + + +This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for OpenCV + + + + + + + Examples + + + + + See also + + CV_CreateImage + + + + + Authors + + Siddhesh Wani + + + diff --git a/help/en_US/CV_LoadImage.xml b/help/en_US/CV_LoadImage.xml new file mode 100644 index 00000000..70f55c82 --- /dev/null +++ b/help/en_US/CV_LoadImage.xml @@ -0,0 +1,83 @@ + + + + + + + + CV_LoadImage + function to load an image object from given filename + + + + + Calling Sequence + + CV_LoadImage(filename,loadtype) + + + + + + Parameters + + filename: + name of file to be opened + loadtype: + desired load method + + + + + Description + +This function can be used for loading a previously stored image + + +loadtype can take the following values: + + less than 0 -> image is loaded as is (with alpha channel) + 0 -> image is loaded as greyscale + greater than 0 -> 3 channel color image is loaded + + + +This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for OpenCV + + + + + + + Examples + + + + + See also + + CV_CreateImage + + + + + Authors + + Siddhesh Wani + + + diff --git a/help/en_US/CV_MedianBlur.xml b/help/en_US/CV_MedianBlur.xml new file mode 100644 index 00000000..d10291ca --- /dev/null +++ b/help/en_US/CV_MedianBlur.xml @@ -0,0 +1,77 @@ + + + + + + + + CV_MedianBlur + function to blur image using median filter + + + + + Calling Sequence + + cvtimg = CV_MedianBlur(srcimg,ksize) + + + + + + Parameters + + srcimg : + input 1-, 3-, or 4-channel image; when ksize is 3 or 5, the image depth should be CV_8U, CV_16U, or CV_32F, for larger aperture sizes, it can only be CV_8U. + ksize_width : + aperture linear size; it must be odd and greater than 1, for example: 3, 5, 7 ... + + + + + Description + +This function can be used for blurring image using median +filter. Image can be of any depth and have any no of channels. + + +This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for OpenCV + + + + + + + Examples + + + + + See also + + CV_Blur, CV_CvtColor + + + + + Authors + + Siddhesh Wani + + + diff --git a/help/en_US/CV_SaveImage.xml b/help/en_US/CV_SaveImage.xml new file mode 100644 index 00000000..9e73200f --- /dev/null +++ b/help/en_US/CV_SaveImage.xml @@ -0,0 +1,77 @@ + + + + + + + + CV_SaveImage + function to save an image object as a given filename + + + + + Calling Sequence + + CV_SaveImage(filename,img) + + + + + + Parameters + + filename: + name of file image to be saved as + img: + image to be saved + + + + + Description + +This function can be used for saving image. File format is detected +from file extension + + +This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for OpenCV + + + + + + + Examples + + + + + See also + + CV_CreateImage + + + + + Authors + + Siddhesh Wani + + + diff --git a/help/en_US/CV_ShowImage.xml b/help/en_US/CV_ShowImage.xml new file mode 100644 index 00000000..e3f6e674 --- /dev/null +++ b/help/en_US/CV_ShowImage.xml @@ -0,0 +1,77 @@ + + + + + + + + CV_ShowImage + function to show an image + + + + + Calling Sequence + + CV_ShowImage(img) + CV_ShowImage(winname,img) + + + + + + Parameters + + winname: + name of window in which img is to be shown + img: + image to be shown already acquired (from file/camera) + + + + + Description + +This function can be used for showing images + + +This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for OpenCV + + + + + + + Examples + + + + + See also + + CV_LoadImage + + + + + Authors + + Siddhesh Wani + + + diff --git a/help/en_US/CV_Threshold.xml b/help/en_US/CV_Threshold.xml new file mode 100644 index 00000000..0de0c145 --- /dev/null +++ b/help/en_US/CV_Threshold.xml @@ -0,0 +1,81 @@ + + + + + + + + CV_Threshold + function to threshold input image + + + + + Calling Sequence + + dst = CV_Threshold(srcimg,code,threshold,max_value,thresh_type) + + + + + + Parameters + + srcimg: + source image to be converted + threshold: + threshold value + max_value: + maximum value to be used with THRESH_BINARY and THRESH_BINARY_INV + thresh_type: + Type for threshold. It can one of the following: THRESH_BINARY, THRESH_BINARY_INV, THRESH_TRUNC, THRESH_TOZERO, THRESH_TOZERO_INV + + + + + Description + +This function can be used for converting an image to other colorspace. +Refer OpenCV documentation for list of available conversions + + +This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for OpenCV + + + + + + + Examples + + + + + See also + + CV_CreateImage + + + + + Authors + + Siddhesh Wani + + + diff --git a/help/en_US/CV_WaitKey.xml b/help/en_US/CV_WaitKey.xml new file mode 100644 index 00000000..9b527077 --- /dev/null +++ b/help/en_US/CV_WaitKey.xml @@ -0,0 +1,76 @@ + + + + + + + + CV_WaitKey + function similar to cvWaitKey + + + + + Calling Sequence + + CV_WaitKey(delay) + + + + + + Parameters + + delay: + waiting delay, if 0 then wait till keypress + + + + + Description + +This function can be used for inseting some delay. This function must +follow CV_ShowImage to display image. + + +This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for OpenCV + + + + + + + Examples + + + + + See also + + CV_ShowImage + + + + + Authors + + Siddhesh Wani + + + diff --git a/help/en_US/build_help.sce b/help/en_US/build_help.sce new file mode 100644 index 00000000..70653160 --- /dev/null +++ b/help/en_US/build_help.sce @@ -0,0 +1,3 @@ +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +tbx_build_help(TOOLBOX_TITLE,get_absolute_file_path("build_help.sce")); diff --git a/help/en_US/master_help.xml b/help/en_US/master_help.xml new file mode 100644 index 00000000..00114559 --- /dev/null +++ b/help/en_US/master_help.xml @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +]> + + + Scilab 2 C Converter + + + +Scilab 2 C Converter +&a9b187f890a3dc0a131c78f91d88fffcf; +&a8349f4b66c6c427129eb7c646fc05b39; +&a71620a73cb33bebfeb8d13899a026ec4; +&a68c3144a45199cf3f8b3aad660160527; +&a607abb629b298800c47d5c68b6270150; +&a3e869ed60f4df86940495945c041bc0e; +&ad660ad06d66e41962fc3922b83d3223d; +&a656e4015b3a18f0f92613360c89a5126; +&a465fb895c612a56cdfa6d49a796b3ebc; +&a3923ebd6e61d3ea327ac0b38eea44729; +&ab21063dade8e81cc41c41b203fe770a7; +&a3d04d0133df424dc634f59cf5e37970f; +&ab987a9543f5085f2797390ef2005bb1b; +&ae5acf96a8e7e377e4f915fb237495324; +&a10d52e3ccf17ba4549a5eb8f20fe4b64; +&adb1b91db8538f4a6dc2059182de8c942; +&a34cfa9a3b84af4efa7dfa7daa0e10ab4; +&a9464ef2b6d5841f1edb9a18b22c04490; +&a1bd531f91c338e939c157b0d1e06bf06; +&a2c2b81ddbe44425373feedac0c24db71; +&a3ca4fafb273b3c4e61164de4ecf2e313; +&a4fd365473a6da804dc048b62d3fe681b; +&a2dfffb4205d1f7d8d99dba84afa2d5b0; +&a255d8b16c2c27d874cb1a0dd1d1cf016; +&a48073a178223648546c3715285fafc64; +&ac9861c98ff022c9027cec2004b205cb6; +&ab14b133a0d5508a44b4dc249b80d1d9b; +&afc3078d19fbe9afc1beb887f8e727ae2; +&a68b507c9c47bc04d8beedc0d02423953; +&a6fa161fc578adc8b4b9683fea89cc93a; +&a0d920ecface4c20c8362c316f30f375b; +&a8e0fd1bb3d635b95bfefb457784dba90; +&aec8420bd19e47fc7d4b1a968956bfe54; +&a89c6b4c01591aa15372e9a3b9ae162f9; +&a1a6cdeaaa9224a83de904800de542e77; + + diff --git a/help/en_US/scilab_en_US_help/AVRADCSetup.html b/help/en_US/scilab_en_US_help/AVRADCSetup.html new file mode 100644 index 00000000..eb386253 --- /dev/null +++ b/help/en_US/scilab_en_US_help/AVRADCSetup.html @@ -0,0 +1,88 @@ + + + AVRADCSetup + + + +
+ + + + +
+ << Scilab 2 C Converter + + + Scilab 2 C Converter + + + AVRDigitalIn >> + +
+
+
+ + + + Scilab 2 C Converter >> Scilab 2 C Converter > AVRADCSetup + +

+

AVRADCSetup

+

Function to initialise ADC of AVR

+ + +

Calling Sequence

+
AVRADCSetup(uint8 prescaler, uint8 adc_ref)
+ +

Parameters

+
prescaler: +

prescaler to be used for generating ADC clock (0-7)

+
adc_ref : +

reference voltage to be used for ADC conversion

+ +

Description

+

This function initialises ADc of AVR with given parameters. 'prescaler' is needed for deciding ADC clock. ADC clock should be between 50KHz and 200KHz and it given as (MCU clock/2^prescaler). Select appropriate prescaler depending on MCU clock. 'adc_ref' selects one of the available reference voltage sources available.

+

The adc_ref can take the following values- +

+

This is curretly dummy function. It provides no functionality but is required for providing support for generating C code for AVR.

+

+ +

Examples

+
AVRADCSetup(128,0)
+ +

See also

+
+ +

Authors

+
+
+ +
+ + + + + + +
Report an issue
+ << Scilab 2 C Converter + + + Scilab 2 C Converter + + + AVRDigitalIn >> + +
+
+
+ + diff --git a/help/en_US/scilab_en_US_help/AVRDigitalIn.html b/help/en_US/scilab_en_US_help/AVRDigitalIn.html new file mode 100644 index 00000000..3d396fbb --- /dev/null +++ b/help/en_US/scilab_en_US_help/AVRDigitalIn.html @@ -0,0 +1,88 @@ + + + AVRDigitalIn + + + +
+ + + + +
+ << AVRADCSetup + + + Scilab 2 C Converter + + + AVRDigitalOut >> + +
+
+
+ + + + Scilab 2 C Converter >> Scilab 2 C Converter > AVRDigitalIn + +

+

AVRDigitalIn

+

Function to get state (high\low) of a digital input pin on AVR

+ + +

Calling Sequence

+
state=AVRDigitalIn(port,pin)
+ +

Parameters

+
port : +

port of microcontroller to be used

+
pin : +

pin of port (mentioned above) to be used

+ +

Description

+

Each AVR microcontroller has pins which can be configured as digital +inputs. These are normally divided among some 'ports' (group of pins). +User has to select one of these port and which pin of that port as +digital input.

+

This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for AVR.

+

+ +

Examples

+
pinA0 = AVRDigitalIn(1,0)   //To read state on pin 0 of port A
+ +

See also

+
+ +

Authors

+
+
+ +
+ + + + + + +
Report an issue
+ << AVRADCSetup + + + Scilab 2 C Converter + + + AVRDigitalOut >> + +
+
+
+ + diff --git a/help/en_US/scilab_en_US_help/AVRDigitalOut.html b/help/en_US/scilab_en_US_help/AVRDigitalOut.html new file mode 100644 index 00000000..c320cba5 --- /dev/null +++ b/help/en_US/scilab_en_US_help/AVRDigitalOut.html @@ -0,0 +1,91 @@ + + + AVRDigitalOut + + + +
+ + + + +
+ << AVRDigitalIn + + + Scilab 2 C Converter + + + AVRDigitalPortSetup >> + +
+
+
+ + + + Scilab 2 C Converter >> Scilab 2 C Converter > AVRDigitalOut + +

+

AVRDigitalOut

+

Function to change state (high\low) of a digital output pin on AVR

+ + +

Calling Sequence

+
AVRDigitalOut(port,pin,state)
+ +

Parameters

+
port : +

port of microcontroller to be used

+
pin : +

pin of port (mentioned above) to be used

+
state : +

state to be outputed on pin (HIGH\LOW)

+ +

Description

+

Each AVR microcontroller has pins which can be configured as digital +outputs. These are normally divided among some 'ports' (group of pins). +User has to select one of these port and which pin of that port as +digital output. Also, desired output state must be specified as +'HIGH' or 'LOW'.

+

This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for AVR.

+

+ +

Examples

+
AVRDigitalOut('A',0,HIGH)
+ +

See also

+
+ +

Authors

+
+
+ +
+ + + + + + +
Report an issue
+ << AVRDigitalIn + + + Scilab 2 C Converter + + + AVRDigitalPortSetup >> + +
+
+
+ + diff --git a/help/en_US/scilab_en_US_help/AVRDigitalPortSetup.html b/help/en_US/scilab_en_US_help/AVRDigitalPortSetup.html new file mode 100644 index 00000000..84a1749d --- /dev/null +++ b/help/en_US/scilab_en_US_help/AVRDigitalPortSetup.html @@ -0,0 +1,89 @@ + + + AVRDigitalPortSetup + + + +
+ + + + +
+ << AVRDigitalOut + + + Scilab 2 C Converter + + + AVRDigitalSetup >> + +
+
+
+ + + + Scilab 2 C Converter >> Scilab 2 C Converter > AVRDigitalPortSetup + +

+

AVRDigitalPortSetup

+

Function to decide direction of port on AVR

+ + +

Calling Sequence

+
AVRDigitalPortSetup(port,direction)
+ +

Parameters

+
port : +

port of microcontroller to be used(1 for PORTA, 2 for PORTB,...)

+
direction : +

direction to be set for pin (0 for INPUT, 1 for OUTPUT)

+ +

Description

+

Each AVR microcontroller has pins which can be configured as digital +outputs/inputs. These are normally divided among some 'ports' (group of pins). +User has to select one of these port and which pin of that port to be +used as digital output/input. Also, desired direction must be specified as +'INPUT' or 'OUTPUT'.

+

This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for AVR.

+

+ +

Examples

+
AVRDigitalPortSetup(1,0); //This function will make PortA as input port
+ +

See also

+
+ +

Authors

+
+
+ +
+ + + + + + +
Report an issue
+ << AVRDigitalOut + + + Scilab 2 C Converter + + + AVRDigitalSetup >> + +
+
+
+ + diff --git a/help/en_US/scilab_en_US_help/AVRDigitalSetup.html b/help/en_US/scilab_en_US_help/AVRDigitalSetup.html new file mode 100644 index 00000000..85f0a5a4 --- /dev/null +++ b/help/en_US/scilab_en_US_help/AVRDigitalSetup.html @@ -0,0 +1,91 @@ + + + AVRDigitalSetup + + + +
+ + + + +
+ << AVRDigitalPortSetup + + + Scilab 2 C Converter + + + AVRGetTimerValue >> + +
+
+
+ + + + Scilab 2 C Converter >> Scilab 2 C Converter > AVRDigitalSetup + +

+

AVRDigitalSetup

+

Function to decide direction of a digital pin on AVR

+ + +

Calling Sequence

+
AVRDigitalSetup(port,pin,direction)
+ +

Parameters

+
port : +

port of microcontroller to be used

+
pin : +

pin of port (mentioned above) to be used

+
direction : +

direction to be set for pin (INPUT\OUTPUT)

+ +

Description

+

Each AVR microcontroller has pins which can be configured as digital +outputs/inputs. These are normally divided among some 'ports' (group of pins). +User has to select one of these port and which pin of that port to be +used as digital output/input. Also, desired direction must be specified as +'INPUT' or 'OUTPUT'.

+

This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for AVR.

+

+ +

Examples

+
AVRDigitalSetup('A',0,OUTPUT)
+ +

See also

+
+ +

Authors

+
+
+ +
+ + + + + + +
Report an issue
+ << AVRDigitalPortSetup + + + Scilab 2 C Converter + + + AVRGetTimerValue >> + +
+
+
+ + diff --git a/help/en_US/scilab_en_US_help/AVRGetTimerValue.html b/help/en_US/scilab_en_US_help/AVRGetTimerValue.html new file mode 100644 index 00000000..a213dc68 --- /dev/null +++ b/help/en_US/scilab_en_US_help/AVRGetTimerValue.html @@ -0,0 +1,83 @@ + + + AVRGetTimerValue + + + +
+ + + + +
+ << AVRDigitalSetup + + + Scilab 2 C Converter + + + AVRPWM0SetDuty >> + +
+
+
+ + + + Scilab 2 C Converter >> Scilab 2 C Converter > AVRGetTimerValue + +

+

AVRGetTimerValue

+

Function to get timer count

+ + +

Parameters

+
timer : +

timer whose current count is to be returned

+ +

Description

+

This function returns the count value of a desired timer.By knowing the count value certain interrupt action can be taken.

+

Timer can take the following values +

+

This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for AVR.

+

+ +

Examples

+
AVRGetTimerValue(0);   //returns present count of the TCNT0 counter
+ +

See also

+
+ +

Authors

+
+
+ +
+ + + + + + +
Report an issue
+ << AVRDigitalSetup + + + Scilab 2 C Converter + + + AVRPWM0SetDuty >> + +
+
+
+ + diff --git a/help/en_US/scilab_en_US_help/AVRPWM0SetDuty.html b/help/en_US/scilab_en_US_help/AVRPWM0SetDuty.html new file mode 100644 index 00000000..2a3b9c22 --- /dev/null +++ b/help/en_US/scilab_en_US_help/AVRPWM0SetDuty.html @@ -0,0 +1,80 @@ + + + AVRPWM0SetDuty + + + +
+ + + + +
+ << AVRGetTimerValue + + + Scilab 2 C Converter + + + AVRPWM0Setup >> + +
+
+
+ + + + Scilab 2 C Converter >> Scilab 2 C Converter > AVRPWM0SetDuty + +

+

AVRPWM0SetDuty

+

Function to Set Duty cycle of PWM Output generated by Timer0 at OC0 pin.

+ + +

Parameters

+
duty : +

It holds an integer value from 0 to 100 which sets the percentage of time for which signal is active.

+ +

Description

+

Each Micro controller has PWM output pins which can generate varying voltage +from 0V-5V.In this function by varying the duty cycle, varying voltage can be produced.

+

This is curretly dummy function. It provides no functionality but is required for providing support for generating C code for AVR.

+

+ +

Examples

+
AVRPWM0SetDuty(50); //Produces 2.5V at OC0 pin
+AVRPWM0SetDuty(0); //Produces 0V at OC0 pin
+ +

See also

+
+ +

Authors

+
+
+ +
+ + + + + + +
Report an issue
+ << AVRGetTimerValue + + + Scilab 2 C Converter + + + AVRPWM0Setup >> + +
+
+
+ + diff --git a/help/en_US/scilab_en_US_help/AVRPWM0Setup.html b/help/en_US/scilab_en_US_help/AVRPWM0Setup.html new file mode 100644 index 00000000..d24d9d8d --- /dev/null +++ b/help/en_US/scilab_en_US_help/AVRPWM0Setup.html @@ -0,0 +1,98 @@ + + + AVRPWM0Setup + + + +
+ + + + +
+ << AVRPWM0SetDuty + + + Scilab 2 C Converter + + + AVRPWM1SetDuty >> + +
+
+
+ + + + Scilab 2 C Converter >> Scilab 2 C Converter > AVRPWM0Setup + +

+

AVRPWM0Setup

+

Function to Setup OC0 pin for required PWM mode

+ + +

Parameters

+
waveform_mode: +

integer, from 0 to 2

+
output_mode: +

integer, from 0 to 1 (or 2) depending on the waveform_mode

+ +

Description

+

Every Micro controller has PWM pins which can generate varying voltages +from 0V-5V.This function helps to use OC0 pin to produce required +output waveform by setting the waveform mode and otput mode.

+

waveform_mode can take values- +

+

output_mode can take values- +

+

This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for AVR.

+

+ +

Examples

+
AVRPWM0Setup(2,0);     //This function will select CTC waveform mode and will clear OC0 on compare match
+ +

See also

+
+ +

Authors

+
+
+ +
+ + + + + + +
Report an issue
+ << AVRPWM0SetDuty + + + Scilab 2 C Converter + + + AVRPWM1SetDuty >> + +
+
+
+ + diff --git a/help/en_US/scilab_en_US_help/AVRPWM1SetDuty.html b/help/en_US/scilab_en_US_help/AVRPWM1SetDuty.html new file mode 100644 index 00000000..03403a84 --- /dev/null +++ b/help/en_US/scilab_en_US_help/AVRPWM1SetDuty.html @@ -0,0 +1,83 @@ + + + AVRPWM1SetDuty + + + +
+ + + + +
+ << AVRPWM0Setup + + + Scilab 2 C Converter + + + AVRPWM1Setup >> + +
+
+
+ + + + Scilab 2 C Converter >> Scilab 2 C Converter > AVRPWM1SetDuty + +

+

AVRPWM1SetDuty

+

Function to Set Duty cycle of PWM Output generated by Timer1 at OC1A or OC1B pin.

+ + +

Parameters

+
ouput_pin: +

integer, 0 (for OC1A) or 1 (for OC1B)

+
duty: +

It holds an integer value from 0 to 100 which sets the percentage of time for which signal is active.

+
Top_Value: +

It holds an integer value from 0 to 65535.This value sets the Top value of the counter TCNT1 i.e ICR.(for more info refer datasheet)

+ +

Description

+

Each Micro controller has PWM output pins which can generate varying voltage +from 0V-5V.This function Sets the duty cycle of output PWM signal.Also this function +decides the Top Vale of TCNT1 and the output pin to output PWM signal.

+

This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for AVR.

+

Example +AVRPWM1SetDuty(0,50,40000); //This function will produce PWM signal of 50% duty cycle on OC1A pin and TCNT1 will reset at 40000 instead at 65535.

+ +

See also

+
+ +

Authors

+
+
+ +
+ + + + + + +
Report an issue
+ << AVRPWM0Setup + + + Scilab 2 C Converter + + + AVRPWM1Setup >> + +
+
+
+ + diff --git a/help/en_US/scilab_en_US_help/AVRPWM1Setup.html b/help/en_US/scilab_en_US_help/AVRPWM1Setup.html new file mode 100644 index 00000000..5411af4d --- /dev/null +++ b/help/en_US/scilab_en_US_help/AVRPWM1Setup.html @@ -0,0 +1,100 @@ + + + AVRPWM1Setup + + + +
+ + + + +
+ << AVRPWM1SetDuty + + + Scilab 2 C Converter + + + AVRPWM2SetDuty >> + +
+
+
+ + + + Scilab 2 C Converter >> Scilab 2 C Converter > AVRPWM1Setup + +

+

AVRPWM1Setup

+

Function to Setup OC1A or OC1B pin for required PWM mode

+ + +

Parameters

+
waveform_mode: +

integer, from 0 to 2

+
output_mode: +

integer, from 0 to 1 (or 2) depending on the waveform_mode

+
output_pin: +

0 (for OC1A) or 1 for (OC1B)

+ +

Description

+

Every Micro controller has PWM pins which can generate varying voltages +from 0V-5V.This function helps to use OC1A or OC1B pin to produces required +output waveform by setting the waveform mode and otput mode.

+

waveform_mode can take values- +

+

output_mode can take values- +

+

This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for AVR.

+

Example +AVRPWM1Setup(2,0,0); //This function will select CTC mode and will clear OC1A or OC1B +on compare match.Also as defined the output will be produced at +0C1A pin.

+ +

See also

+
+ +

Authors

+
+
+ +
+ + + + + + +
Report an issue
+ << AVRPWM1SetDuty + + + Scilab 2 C Converter + + + AVRPWM2SetDuty >> + +
+
+
+ + diff --git a/help/en_US/scilab_en_US_help/AVRPWM2SetDuty.html b/help/en_US/scilab_en_US_help/AVRPWM2SetDuty.html new file mode 100644 index 00000000..c92275e0 --- /dev/null +++ b/help/en_US/scilab_en_US_help/AVRPWM2SetDuty.html @@ -0,0 +1,81 @@ + + + AVRPWM2SetDuty + + + +
+ + + + +
+ << AVRPWM1Setup + + + Scilab 2 C Converter + + + AVRPWM2Setup >> + +
+
+
+ + + + Scilab 2 C Converter >> Scilab 2 C Converter > AVRPWM2SetDuty + +

+

AVRPWM2SetDuty

+

Function to Set Duty cycle of PWM Output generated by Timer2 at OC2 pin.

+ + +

Parameters

+
duty : +

It holds an integer value from 0 to 100 which sets the percentage of time for which signal is active.

+ +

Description

+

Each Micro controller has PWM output pins which can generate varying voltage +from 0V-5V.In this function by varying the duty cycle, varying voltage can be +produced.

+

This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for AVR.

+

Example +AVRPWM2SetDuty(50); //Produces 2.5V at OC2 pin +AVRPWM2SetDuty(0); //Produces 0V at OC2 pin

+

+ +

See also

+
+ +

Authors

+
+
+ +
+ + + + + + +
Report an issue
+ << AVRPWM1Setup + + + Scilab 2 C Converter + + + AVRPWM2Setup >> + +
+
+
+ + diff --git a/help/en_US/scilab_en_US_help/AVRPWM2Setup.html b/help/en_US/scilab_en_US_help/AVRPWM2Setup.html new file mode 100644 index 00000000..aebf5c0c --- /dev/null +++ b/help/en_US/scilab_en_US_help/AVRPWM2Setup.html @@ -0,0 +1,97 @@ + + + AVRPWM2Setup + + + +
+ + + + +
+ << AVRPWM2SetDuty + + + Scilab 2 C Converter + + + AVRReadADC >> + +
+
+
+ + + + Scilab 2 C Converter >> Scilab 2 C Converter > AVRPWM2Setup + +

+

AVRPWM2Setup

+

Function to Setup OC2 pin for required PWM mode

+ + +

Parameters

+
waveform_mode: +

integer, from 0 to 2

+
output_mode: +

integer, from 0 to 1 (or 2) depending on the waveform_mode

+ +

Description

+

Every Micro controller has PWM pins which can generate varying voltages +from 0V-5V.This function helps to use OC2 pin to produces required +output waveform by setting the waveform mode and otput mode.

+

waveform_mode can take values- +

+

output_mode can take values- +

+

This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for AVR.

+

Example +AVRPWM2Setup(2,0); //This function will select CTC waveform mode and will clear OC2 on +compare match

+ +

See also

+
+ +

Authors

+
+
+ +
+ + + + + + +
Report an issue
+ << AVRPWM2SetDuty + + + Scilab 2 C Converter + + + AVRReadADC >> + +
+
+
+ + diff --git a/help/en_US/scilab_en_US_help/AVRReadADC.html b/help/en_US/scilab_en_US_help/AVRReadADC.html new file mode 100644 index 00000000..43dba972 --- /dev/null +++ b/help/en_US/scilab_en_US_help/AVRReadADC.html @@ -0,0 +1,84 @@ + + + AVRReadADC + + + +
+ + + + +
+ << AVRPWM2Setup + + + Scilab 2 C Converter + + + AVRSleep >> + +
+
+
+ + + + Scilab 2 C Converter >> Scilab 2 C Converter > AVRReadADC + +

+

AVRReadADC

+

Function to get voltage on analog pin on AVR

+ + +

Calling Sequence

+
u8AVRReadADCs(channel)
+ +

Parameters

+
channel : +

Select which channel is to be read. Values from 0-7 select one of the pins ADC0-ADC7. For other possible channel values refer datasheet

+ +

Description

+

This function returns digital value for present on adc pins. 'channel' +selects which of the ADC0-ADC7 is to be used for reading analog value. +Apart from reading just ADC0-ADC7 other it can also read differential +voltages between some pins. For channel values for those options, please +refer datasheet.

+

This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for AVR.

+

+ +

Examples

+
adc_result = u8AVRReadADC(0)   //Read ADC0
+ +

Authors

+
+
+ +
+ + + + + + +
Report an issue
+ << AVRPWM2Setup + + + Scilab 2 C Converter + + + AVRSleep >> + +
+
+
+ + diff --git a/help/en_US/scilab_en_US_help/AVRSleep.html b/help/en_US/scilab_en_US_help/AVRSleep.html new file mode 100644 index 00000000..19c316df --- /dev/null +++ b/help/en_US/scilab_en_US_help/AVRSleep.html @@ -0,0 +1,75 @@ + + + AVRSleep + + + +
+ + + + +
+ << AVRReadADC + + + Scilab 2 C Converter + + + AVRTimerSetup >> + +
+
+
+ + + + Scilab 2 C Converter >> Scilab 2 C Converter > AVRSleep + +

+

AVRSleep

+

Function to pause the execution for the given time.

+ + +

Description

+

This function causes the execution to stop for the given amount of time.

+

This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for AVR.

+

+ +

Examples

+
AVRSleep(5000);
+ +

See also

+
+ +

Authors

+
+
+ +
+ + + + + + +
Report an issue
+ << AVRReadADC + + + Scilab 2 C Converter + + + AVRTimerSetup >> + +
+
+
+ + diff --git a/help/en_US/scilab_en_US_help/AVRTimerSetup.html b/help/en_US/scilab_en_US_help/AVRTimerSetup.html new file mode 100644 index 00000000..4935afed --- /dev/null +++ b/help/en_US/scilab_en_US_help/AVRTimerSetup.html @@ -0,0 +1,66 @@ + + + AVRTimerSetup + + + +
+ + + + +
+ << AVRSleep + + + Scilab 2 C Converter + + + AVRUARTReceive >> + +
+
+
+ + + + Scilab 2 C Converter >> Scilab 2 C Converter > AVRTimerSetup + +

+

AVRTimerSetup

+

Function to setup Timers in ATmega16

+ + +

See also

+
+ +

Authors

+
+
+ +
+ + + + + + +
Report an issue
+ << AVRSleep + + + Scilab 2 C Converter + + + AVRUARTReceive >> + +
+
+
+ + diff --git a/help/en_US/scilab_en_US_help/AVRUARTReceive.html b/help/en_US/scilab_en_US_help/AVRUARTReceive.html new file mode 100644 index 00000000..87e98905 --- /dev/null +++ b/help/en_US/scilab_en_US_help/AVRUARTReceive.html @@ -0,0 +1,77 @@ + + + AVRUARTReceive + + + +
+ + + + +
+ << AVRTimerSetup + + + Scilab 2 C Converter + + + AVRUARTSetup >> + +
+
+
+ + + + Scilab 2 C Converter >> Scilab 2 C Converter > AVRUARTReceive + +

+

AVRUARTReceive

+

Function to Receive Char value send to ATmega16 using UART or USART.

+ + +

Description

+

This function Receives Char as 8 bit value.This value is stored in UDR at receiving +end.

+

This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for AVR.

+

+ +

Examples

+
state = AVRUARTReceive(); //This function will Receive char and return the entire value
+ +

See also

+
+ +

Authors

+
+
+ +
+ + + + + + +
Report an issue
+ << AVRTimerSetup + + + Scilab 2 C Converter + + + AVRUARTSetup >> + +
+
+
+ + diff --git a/help/en_US/scilab_en_US_help/AVRUARTSetup.html b/help/en_US/scilab_en_US_help/AVRUARTSetup.html new file mode 100644 index 00000000..77855949 --- /dev/null +++ b/help/en_US/scilab_en_US_help/AVRUARTSetup.html @@ -0,0 +1,96 @@ + + + AVRUARTSetup + + + +
+ + + + +
+ << AVRUARTReceive + + + Scilab 2 C Converter + + + AVRUARTTransmit >> + +
+
+
+ + + + Scilab 2 C Converter >> Scilab 2 C Converter > AVRUARTSetup + +

+

AVRUARTSetup

+

Function to Setup Serial Communication i.e UART or USART in ATmega16.

+ + +

Parameters

+
mode : +

integer, from 0 to 2

+
baudrate : +

Enter one of the following available baudrates (2400 , 4800 , 9600 , 14400 , 19200 , 28800 , 38400 , 57600 , 768000 , 115200 , 230400 , 250000 , 1000000)

+
stopbits : +

integer, (0 for one stopbit) or (1 for two stopbits)

+
parity : +

integer, from 0 to 2

+ +

Description

+

This function Setup the UART or USART for Serial Communicaion between ATmega16 +and different micro controllers or between ATmega16 and Computer.

+

mode can take values: +

+

parity can take values: +

+

This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for AVR.

+

+ +

Examples

+
AVRUARTSetup(0,9600,0,0); //This function will enable UART Communication for ATmega16
+with 9600 as baudrate,one stop bit and parity disabled
+ +

See also

+
+ +

Authors

+
+
+ +
+ + + + + + +
Report an issue
+ << AVRUARTReceive + + + Scilab 2 C Converter + + + AVRUARTTransmit >> + +
+
+
+ + diff --git a/help/en_US/scilab_en_US_help/AVRUARTTransmit.html b/help/en_US/scilab_en_US_help/AVRUARTTransmit.html new file mode 100644 index 00000000..624d6a06 --- /dev/null +++ b/help/en_US/scilab_en_US_help/AVRUARTTransmit.html @@ -0,0 +1,77 @@ + + + AVRUARTTransmit + + + +
+ + + + +
+ << AVRUARTSetup + + + Scilab 2 C Converter + + + CV_AdaptiveThreshold >> + +
+
+
+ + + + Scilab 2 C Converter >> Scilab 2 C Converter > AVRUARTTransmit + +

+

AVRUARTTransmit

+

Function to Transmit data using UART or USART.

+ + +

Description

+

This function Tranmits data over UART or USART.The data to be transmitted can +be a Char , String , Unsigned Int, Signed Int.

+

This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for AVR.

+

+ +

Examples

+
AVRUARTTransmit("This is example");  //This function will transmit the entered string.
+ +

See also

+
+ +

Authors

+
+
+ +
+ + + + + + +
Report an issue
+ << AVRUARTSetup + + + Scilab 2 C Converter + + + CV_AdaptiveThreshold >> + +
+
+
+ + diff --git a/help/en_US/scilab_en_US_help/CV_AdaptiveThreshold.html b/help/en_US/scilab_en_US_help/CV_AdaptiveThreshold.html new file mode 100644 index 00000000..14cd3f58 --- /dev/null +++ b/help/en_US/scilab_en_US_help/CV_AdaptiveThreshold.html @@ -0,0 +1,94 @@ + + + CV_AdaptiveThreshold + + + +
+ + + + +
+ << AVRUARTTransmit + + + Scilab 2 C Converter + + + CV_Blur >> + +
+
+
+ + + + Scilab 2 C Converter >> Scilab 2 C Converter > CV_AdaptiveThreshold + +

+

CV_AdaptiveThreshold

+

function to adaptively threshold input image

+ + +

Calling Sequence

+
dst = CV_AdaptiveThreshold(srcimg,max_value,adaptive_method,thresh_type,blk_size,c)
+ +

Parameters

+
src : +

Source 8-bit single-channel image.

+
max_value : +

Non-zero value assigned to the pixels for which the condition is satisfied. See the details below.

+
adaptive_method : +

Adaptive thresholding algorithm to use, ADAPTIVE_THRESH_MEAN_C or ADAPTIVE_THRESH_GAUSSIAN_C .

+
thresh_type : +

Thresholding type that must be either THRESH_BINARY or THRESH_BINARY_INV .

+
blockSize : +

Size of a pixel neighborhood that is used to calculate a threshold value for the pixel: 3, 5, 7, and so on.

+
C : +

Constant subtracted from the mean or weighted mean.Normally, it is positive but may be zero or negative as well.

+ +

Description

+

This function can be used for adaptively threshold given image

+

This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for OpenCV

+

+ +

Examples

+
img = CV_LoadImage('~/test.jpg',0)
+dst = CV_AdaptiveThreshold(img,255,"ADAPTIVE_THRESH_MEAN_C", ...
+"THRESH_BINARY",5,0)
+ +

See also

+
+ +

Authors

+
+
+ +
+ + + + + + +
Report an issue
+ << AVRUARTTransmit + + + Scilab 2 C Converter + + + CV_Blur >> + +
+
+
+ + diff --git a/help/en_US/scilab_en_US_help/CV_Blur.html b/help/en_US/scilab_en_US_help/CV_Blur.html new file mode 100644 index 00000000..a9f2008e --- /dev/null +++ b/help/en_US/scilab_en_US_help/CV_Blur.html @@ -0,0 +1,96 @@ + + + CV_Blur + + + +
+ + + + +
+ << CV_AdaptiveThreshold + + + Scilab 2 C Converter + + + CV_Canny >> + +
+
+
+ + + + Scilab 2 C Converter >> Scilab 2 C Converter > CV_Blur + +

+

CV_Blur

+

function to blur image using normalised box filter

+ + +

Calling Sequence

+
dst = CV_Blur(srcimg,ksize_width,ksize_height,anchor_x,anchor_y,border_type)
+ +

Parameters

+
srcimg : +

Source image.

+
ksize_width, ksize_height : +

blurring kernel size.

+
anchor_x, anchor_y : +

x,y coordinates of anchor point

+
border_type : +

border mode used to extrapolate pixels outside of the image.

+ +

Description

+

This function can be used for blurring image using normalised box +filter. Image can be of any depth and have any no of channels.

+

border_type can be : +

+

This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for OpenCV

+

+ +

Examples

+
img = CV_LoadImage('~/test.jpg',0)
+dst = CV_Blur(img,3,3,-1,-1,"BORDER_CONSTANT")
+ +

See also

+
+ +

Authors

+
+
+ +
+ + + + + + +
Report an issue
+ << CV_AdaptiveThreshold + + + Scilab 2 C Converter + + + CV_Canny >> + +
+
+
+ + diff --git a/help/en_US/scilab_en_US_help/CV_Canny.html b/help/en_US/scilab_en_US_help/CV_Canny.html new file mode 100644 index 00000000..5fe68118 --- /dev/null +++ b/help/en_US/scilab_en_US_help/CV_Canny.html @@ -0,0 +1,95 @@ + + + CV_Canny + + + +
+ + + + +
+ << CV_Blur + + + Scilab 2 C Converter + + + CV_CornerHarris >> + +
+
+
+ + + + Scilab 2 C Converter >> Scilab 2 C Converter > CV_Canny + +

+

CV_Canny

+

Finds edges in image using Canny algorithm

+ + +

Calling Sequence

+
edges = CV_Canny(srcimg,threhold1,threshold2,aperture_size,L2gradient)
+ +

Parameters

+
srcimg : +

single-channel 8-bit input image.

+
threshold1 : +

first threshold for the hysteresis procedure.

+
threshold2 : +

second threshold for the hysteresis procedure.

+
aperture_size : +

aperture size for the Sobel() operator.

+
L2gradient : +

a flag, indicating whether a more accurate

+ +

Description

+

This function can be used for finding edes in single channel 8 bit +image. 'aperture_size' and 'L2gradient' are optionals. By default, +aperture_size is 3 and L2gradient is false.

+

For L2gradient: L_2 norm =sqrt{(dI/dx)^2 + (dI/dy)^2} should be used to calculate the image gradient magnitude (L2gradient=1 ), or whether the default L_1 norm =|dI/dx|+|dI/dy| is enough (L2gradient=0).

+

This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for OpenCV

+

+ +

Examples

+
img = CV_LoadImage('~/test.jpg',0)
+dst = CV_CvtColor(img,"CV_RGB2GRAY");
+edge = CV_Canny(dst,50,100,3,0);
+ +

See also

+
+ +

Authors

+
+
+ +
+ + + + + + +
Report an issue
+ << CV_Blur + + + Scilab 2 C Converter + + + CV_CornerHarris >> + +
+
+
+ + diff --git a/help/en_US/scilab_en_US_help/CV_CornerHarris.html b/help/en_US/scilab_en_US_help/CV_CornerHarris.html new file mode 100644 index 00000000..f5ad9bb9 --- /dev/null +++ b/help/en_US/scilab_en_US_help/CV_CornerHarris.html @@ -0,0 +1,98 @@ + + + CV_CornerHarris + + + +
+ + + + +
+ << CV_Canny + + + Scilab 2 C Converter + + + CV_CreateImage >> + +
+
+
+ + + + Scilab 2 C Converter >> Scilab 2 C Converter > CV_CornerHarris + +

+

CV_CornerHarris

+

Finds edges in image using Harris algorithm

+ + +

Calling Sequence

+
edges = CV_CornerHarris(srcimg,blocksize,ksize,k,border_type)
+ +

Parameters

+
srcimg: +

Input single-channel 8-bit or floating-point image.

+
blockSize: +

Neighborhood size

+
ksize: +

Aperture parameter for the Sobel() operator.

+
k: +

Harris detector free parameter.

+
border_type: +

border mode used to extrapolate pixels outside of the image.

+ +

Description

+

The function runs the Harris edge detector on the image. For each pixel (x, y) it calculates a 2 * 2 gradient covariance matrix M(x,y) over a blockSize * blockSize neighborhood. Then, it computes the following characteristic: dst(x,y) = det(M(x,y)) - k .tr(M(x,y))^2. Corners in the image can be found as the local maxima of this response map.

+

border_type can be : +

+

This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for OpenCV

+

+ +

Examples

+
img = CV_LoadImage('~/test.jpg',0)
+dst = CV_CvtColor(img,"CV_RGB2GRAY");
+edge = CV_CornerHarris(dst,5,3,1,"BORDER_REPLICATE");
+ +

See also

+
+ +

Authors

+
+
+ +
+ + + + + + +
Report an issue
+ << CV_Canny + + + Scilab 2 C Converter + + + CV_CreateImage >> + +
+
+
+ + diff --git a/help/en_US/scilab_en_US_help/CV_CreateImage.html b/help/en_US/scilab_en_US_help/CV_CreateImage.html new file mode 100644 index 00000000..5a3e034b --- /dev/null +++ b/help/en_US/scilab_en_US_help/CV_CreateImage.html @@ -0,0 +1,85 @@ + + + CV_CreateImage + + + +
+ + + + +
+ << CV_CornerHarris + + + Scilab 2 C Converter + + + CV_CvtColor >> + +
+
+
+ + + + Scilab 2 C Converter >> Scilab 2 C Converter > CV_CreateImage + +

+

CV_CreateImage

+

function to create an image object of given size and type

+ + +

Calling Sequence

+
CV_CreateImage(image_size,bit_depth,no_of_channels)
+ +

Parameters

+
image_size: +

width and height of image

+
bit_depth: +

Bit depth of image elements

+
no_of_channels: +

no of channels per pixels

+ +

Description

+

This function can be used to create opencv image object. For more info about bit depth and channels,please refer to OpenCV documentation

+

This is curretly dummy function. It provides no functionality but is required for providing support for generating C code for OpenCV

+

+ +

Examples

+
CV_CreateImage([320 240], "IPL_DEPTH_8U", 1)    //to create image of the size 320*240 pixels with 8 bit unsigned each pixels and gray scale image
+ +

See also

+
+ +

Authors

+
+
+ +
+ + + + + + +
Report an issue
+ << CV_CornerHarris + + + Scilab 2 C Converter + + + CV_CvtColor >> + +
+
+
+ + diff --git a/help/en_US/scilab_en_US_help/CV_CvtColor.html b/help/en_US/scilab_en_US_help/CV_CvtColor.html new file mode 100644 index 00000000..ffa3cef1 --- /dev/null +++ b/help/en_US/scilab_en_US_help/CV_CvtColor.html @@ -0,0 +1,90 @@ + + + CV_CvtColor + + + +
+ + + + +
+ << CV_CreateImage + + + Scilab 2 C Converter + + + CV_Dilate >> + +
+
+
+ + + + Scilab 2 C Converter >> Scilab 2 C Converter > CV_CvtColor + +

+

CV_CvtColor

+

function to convert image from one colorspace to other colorspace

+ + +

Calling Sequence

+
CV_CvtColor(srcimg,code)
+ +

Parameters

+
srcimg: +

source image to be converted

+
dstimg: +

destination image in which to store converted image

+
code: +

String specifying conversion type. Same as defined in OpenCV. for eg. 'CV_RGB2GRAY' for conversion from RGB image to grayscale image

+
dstCn: +

no of channels in destination image (0 by default)

+ +

Description

+

This function can be used for converting an image to other colorspace. +Refer OpenCV documentation for list of available conversions

+

This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for OpenCV

+

+ +

Examples

+
img = CV_LoadImage('~/test.jpg',0)
+dst = CV_CvtColor(img,'CV_RGB2GRAY')
+ +

See also

+
+ +

Authors

+
+
+ +
+ + + + + + +
Report an issue
+ << CV_CreateImage + + + Scilab 2 C Converter + + + CV_Dilate >> + +
+
+
+ + diff --git a/help/en_US/scilab_en_US_help/CV_Dilate.html b/help/en_US/scilab_en_US_help/CV_Dilate.html new file mode 100644 index 00000000..0c898402 --- /dev/null +++ b/help/en_US/scilab_en_US_help/CV_Dilate.html @@ -0,0 +1,99 @@ + + + CV_Dilate + + + +
+ + + + +
+ << CV_CvtColor + + + Scilab 2 C Converter + + + CV_DistanceTransform >> + +
+
+
+ + + + Scilab 2 C Converter >> Scilab 2 C Converter > CV_Dilate + +

+

CV_Dilate

+

dilates an image by using a specific structuring element.

+ + +

Calling Sequence

+
cvtimg = CV_Dilate(srcimg,dilation_type,dilation_size,[iterations,border_type,border_value])
+ +

Parameters

+
src : +

input image; the number of channels can be arbitrary, but the depth should be one of CV_8U, CV_16U, CV_16S, CV_32F or CV_64F.

+
dilation_type : +

can be one of MORPH_RECT, MORPH_CROSS,MORPH_ELLIPSE

+
dilation_size : +

size of kernel to be used for erosion. Must be odd

+
iterations : +

number of times erosion is applied.

+
border_type : +

pixel extrapolation method.

+
border_value : +

border value in case of a constant border

+ +

Description

+

This function can be used for eroding an image. Kernel used for erosion is decided by type and size. Size must always be odd. Anchor pint of kernel is always center of kernel. Input arguements 'iterations(1), border_type(BORDER_CONSTANT) and border_value' are optionals. Whwn not specified, default values as as mentioned in brackets.

+

border_type can be : +

+

This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for OpenCV

+

+ +

Examples

+
img = CV_LoadImage('~/test.jpg',0)
+dst = CV_Erode(img,"MORPH_RECT",3,1,"BORDER_CONSTANT",0);
+ +

See also

+
+ +

Authors

+
+
+ +
+ + + + + + +
Report an issue
+ << CV_CvtColor + + + Scilab 2 C Converter + + + CV_DistanceTransform >> + +
+
+
+ + diff --git a/help/en_US/scilab_en_US_help/CV_DistanceTransform.html b/help/en_US/scilab_en_US_help/CV_DistanceTransform.html new file mode 100644 index 00000000..5d432924 --- /dev/null +++ b/help/en_US/scilab_en_US_help/CV_DistanceTransform.html @@ -0,0 +1,87 @@ + + + CV_DistanceTransform + + + +
+ + + + +
+ << CV_Dilate + + + Scilab 2 C Converter + + + CV_Erode >> + +
+
+
+ + + + Scilab 2 C Converter >> Scilab 2 C Converter > CV_DistanceTransform + +

+

CV_DistanceTransform

+

function to calculate distance to closest zero pixels for each pixel

+ + +

Calling Sequence

+
dst = CV_DistanceTransform(srcimg,distance_type,mask_size)
+ +

Parameters

+
srcimg : +

Source 8-bit single-channel image.

+
distance_type : +

Type of distance. It can be CV_DIST_L1, CV_DIST_L2 , or CV_DIST_C

+
mask_size : +

Size of the distance transform mask

+ +

Description

+

This function can be used to calculate distance to closest zero pixel for each pixel of the source image. Output is 32 bit floatingpoint, single channel image of the same size as that of source image.

+

This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for OpenCV

+

+ +

Examples

+
img = CV_LoadImage('~/test.jpg',0)
+dst = CV_DistanceTransform(img,"CV_DIST_L1",3)
+ +

See also

+
+ +

Authors

+
+
+ +
+ + + + + + +
Report an issue
+ << CV_Dilate + + + Scilab 2 C Converter + + + CV_Erode >> + +
+
+
+ + diff --git a/help/en_US/scilab_en_US_help/CV_Erode.html b/help/en_US/scilab_en_US_help/CV_Erode.html new file mode 100644 index 00000000..102058d0 --- /dev/null +++ b/help/en_US/scilab_en_US_help/CV_Erode.html @@ -0,0 +1,99 @@ + + + CV_Erode + + + +
+ + + + +
+ << CV_DistanceTransform + + + Scilab 2 C Converter + + + CV_GaussianBlur >> + +
+
+
+ + + + Scilab 2 C Converter >> Scilab 2 C Converter > CV_Erode + +

+

CV_Erode

+

Erodes an image by using a specific structuring element.

+ + +

Calling Sequence

+
cvtimg = CV_Erode(srcimg,erosion_type,erosion_size,[iterations,border_type,border_value])
+ +

Parameters

+
src : +

input image; the number of channels can be arbitrary, but the depth should be one of CV_8U, CV_16U, CV_16S, CV_32F or CV_64F.

+
erosion_type : +

can be one of : MORPH_RECT, MORPH_CROSS, MORPH_ELLIPSE

+
erosion_size : +

size of kernel to be used for erosion. Must be odd

+
iterations : +

number of times erosion is applied.

+
border_type : +

pixel extrapolation method.

+
border_value : +

border value in case of a constant border

+ +

Description

+

This function can be used for eroding an image. Kernel used for erosion is decided by type and size. Size must always be odd. Anchor pint of kernel is always center of kernel. Input arguements 'iterations(1), border_type(BORDER_CONSTANT) and border_value' are optionals. Whwn not specified, default values as as mentioned in brackets.

+

border_type can be : +

+

This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for OpenCV

+

+ +

Examples

+
img = CV_LoadImage('~/test.jpg',0)
+dst = CV_Erode(img,"MORPH_RECT",3,1,"BORDER_CONSTANT",0);
+ +

See also

+
+ +

Authors

+
+
+ +
+ + + + + + +
Report an issue
+ << CV_DistanceTransform + + + Scilab 2 C Converter + + + CV_GaussianBlur >> + +
+
+
+ + diff --git a/help/en_US/scilab_en_US_help/CV_GaussianBlur.html b/help/en_US/scilab_en_US_help/CV_GaussianBlur.html new file mode 100644 index 00000000..470cf56c --- /dev/null +++ b/help/en_US/scilab_en_US_help/CV_GaussianBlur.html @@ -0,0 +1,98 @@ + + + CV_GaussianBlur + + + +
+ + + + +
+ << CV_Erode + + + Scilab 2 C Converter + + + CV_GetImgSize >> + +
+
+
+ + + + Scilab 2 C Converter >> Scilab 2 C Converter > CV_GaussianBlur + +

+

CV_GaussianBlur

+

function to blur image using gaussian filter

+ + +

Calling Sequence

+
cvtimg = CV_GaussianBlur(srcimg,ksize_width,ksize_height,sigma_x,sigma_y,border_type)
+ +

Parameters

+
srcimg : +

Source image.

+
ksize_width, ksize_height : +

blurring kernel size. must be odd.

+
sigmaX : +

Gaussian kernel standard deviation in X direction.

+
sigmaY : +

Gaussian kernel standard deviation in Y direction;

+
border_type : +

border mode used to extrapolate pixels outside of the image.

+ +

Description

+

This function can be used for blurring image using gaussian filter. Image can be of any depth and have any no of channels.

+

For sigmaX and sigmaY : if sigmaY is zero, it is set to be equal to sigmaX, if both sigmas are zeros, they are computed from ksize.width and ksize.height , respectively.

+

border_type can be : +

+

This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for OpenCV

+

+ +

Examples

+
img = CV_LoadImage('~/test.jpg',0)
+dst = CV_GaussianBlur(img,3,3,0,0,"BORDER_CONSTANT")
+ +

See also

+
+ +

Authors

+
+
+ +
+ + + + + + +
Report an issue
+ << CV_Erode + + + Scilab 2 C Converter + + + CV_GetImgSize >> + +
+
+
+ + diff --git a/help/en_US/scilab_en_US_help/CV_GetImgSize.html b/help/en_US/scilab_en_US_help/CV_GetImgSize.html new file mode 100644 index 00000000..e7884967 --- /dev/null +++ b/help/en_US/scilab_en_US_help/CV_GetImgSize.html @@ -0,0 +1,84 @@ + + + CV_GetImgSize + + + +
+ + + + +
+ << CV_GaussianBlur + + + Scilab 2 C Converter + + + CV_LoadImage >> + +
+
+
+ + + + Scilab 2 C Converter >> Scilab 2 C Converter > CV_GetImgSize + +

+

CV_GetImgSize

+

function to get size of the image (width*height)

+ + +

Calling Sequence

+
CV_GetImgSize(img)
+ +

Parameters

+
img: +

image whose size is to be returned

+ +

Description

+

This function can be used for retriving size information of the image. +It returs an array with first image element as width and second as height

+

This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for OpenCV

+

+ +

Examples

+
img = CV_LoadImage('~/test.jpg',0)
+size = CV_GetImgSize(img)
+ +

See also

+
+ +

Authors

+
+
+ +
+ + + + + + +
Report an issue
+ << CV_GaussianBlur + + + Scilab 2 C Converter + + + CV_LoadImage >> + +
+
+
+ + diff --git a/help/en_US/scilab_en_US_help/CV_LoadImage.html b/help/en_US/scilab_en_US_help/CV_LoadImage.html new file mode 100644 index 00000000..473e4a5d --- /dev/null +++ b/help/en_US/scilab_en_US_help/CV_LoadImage.html @@ -0,0 +1,88 @@ + + + CV_LoadImage + + + +
+ + + + +
+ << CV_GetImgSize + + + Scilab 2 C Converter + + + CV_MedianBlur >> + +
+
+
+ + + + Scilab 2 C Converter >> Scilab 2 C Converter > CV_LoadImage + +

+

CV_LoadImage

+

function to load an image object from given filename

+ + +

Calling Sequence

+
CV_LoadImage(filename,loadtype)
+ +

Parameters

+
filename: +

name of file to be opened

+
loadtype: +

desired load method

+ +

Description

+

This function can be used for loading a previously stored image

+

loadtype can take the following values: +

+

This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for OpenCV

+

+ +

Examples

+
CV_LoadImage('~/test.jpg',0)
+ +

See also

+
+ +

Authors

+
+
+ +
+ + + + + + +
Report an issue
+ << CV_GetImgSize + + + Scilab 2 C Converter + + + CV_MedianBlur >> + +
+
+
+ + diff --git a/help/en_US/scilab_en_US_help/CV_MedianBlur.html b/help/en_US/scilab_en_US_help/CV_MedianBlur.html new file mode 100644 index 00000000..a75064e9 --- /dev/null +++ b/help/en_US/scilab_en_US_help/CV_MedianBlur.html @@ -0,0 +1,86 @@ + + + CV_MedianBlur + + + +
+ + + + +
+ << CV_LoadImage + + + Scilab 2 C Converter + + + CV_SaveImage >> + +
+
+
+ + + + Scilab 2 C Converter >> Scilab 2 C Converter > CV_MedianBlur + +

+

CV_MedianBlur

+

function to blur image using median filter

+ + +

Calling Sequence

+
cvtimg = CV_MedianBlur(srcimg,ksize)
+ +

Parameters

+
srcimg : +

input 1-, 3-, or 4-channel image; when ksize is 3 or 5, the image depth should be CV_8U, CV_16U, or CV_32F, for larger aperture sizes, it can only be CV_8U.

+
ksize_width : +

aperture linear size; it must be odd and greater than 1, for example: 3, 5, 7 ...

+ +

Description

+

This function can be used for blurring image using median +filter. Image can be of any depth and have any no of channels.

+

This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for OpenCV

+

+ +

Examples

+
img = CV_LoadImage('~/test.jpg',0)
+dst = CV_MedianBlur(img,3)
+ +

See also

+
+ +

Authors

+
+
+ +
+ + + + + + +
Report an issue
+ << CV_LoadImage + + + Scilab 2 C Converter + + + CV_SaveImage >> + +
+
+
+ + diff --git a/help/en_US/scilab_en_US_help/CV_SaveImage.html b/help/en_US/scilab_en_US_help/CV_SaveImage.html new file mode 100644 index 00000000..fe309032 --- /dev/null +++ b/help/en_US/scilab_en_US_help/CV_SaveImage.html @@ -0,0 +1,86 @@ + + + CV_SaveImage + + + +
+ + + + +
+ << CV_MedianBlur + + + Scilab 2 C Converter + + + CV_ShowImage >> + +
+
+
+ + + + Scilab 2 C Converter >> Scilab 2 C Converter > CV_SaveImage + +

+

CV_SaveImage

+

function to save an image object as a given filename

+ + +

Calling Sequence

+
CV_SaveImage(filename,img)
+ +

Parameters

+
filename: +

name of file image to be saved as

+
img: +

image to be saved

+ +

Description

+

This function can be used for saving image. File format is detected +from file extension

+

This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for OpenCV

+

+ +

Examples

+
img = CV_LoadImage('~/test.jpg',0)
+CV_SaveImage('test1.png',img)
+ +

See also

+
+ +

Authors

+
+
+ +
+ + + + + + +
Report an issue
+ << CV_MedianBlur + + + Scilab 2 C Converter + + + CV_ShowImage >> + +
+
+
+ + diff --git a/help/en_US/scilab_en_US_help/CV_ShowImage.html b/help/en_US/scilab_en_US_help/CV_ShowImage.html new file mode 100644 index 00000000..abc8cace --- /dev/null +++ b/help/en_US/scilab_en_US_help/CV_ShowImage.html @@ -0,0 +1,86 @@ + + + CV_ShowImage + + + +
+ + + + +
+ << CV_SaveImage + + + Scilab 2 C Converter + + + CV_Threshold >> + +
+
+
+ + + + Scilab 2 C Converter >> Scilab 2 C Converter > CV_ShowImage + +

+

CV_ShowImage

+

function to show an image

+ + +

Calling Sequence

+
CV_ShowImage(img)
+CV_ShowImage(winname,img)
+ +

Parameters

+
winname: +

name of window in which img is to be shown

+
img: +

image to be shown already acquired (from file/camera)

+ +

Description

+

This function can be used for showing images

+

This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for OpenCV

+

+ +

Examples

+
img = CV_LoadImage('~/test.jpg',0)
+CV_ShowImage(img)
+ +

See also

+
+ +

Authors

+
+
+ +
+ + + + + + +
Report an issue
+ << CV_SaveImage + + + Scilab 2 C Converter + + + CV_Threshold >> + +
+
+
+ + diff --git a/help/en_US/scilab_en_US_help/CV_Threshold.html b/help/en_US/scilab_en_US_help/CV_Threshold.html new file mode 100644 index 00000000..fa465fce --- /dev/null +++ b/help/en_US/scilab_en_US_help/CV_Threshold.html @@ -0,0 +1,90 @@ + + + CV_Threshold + + + +
+ + + + +
+ << CV_ShowImage + + + Scilab 2 C Converter + + + CV_WaitKey >> + +
+
+
+ + + + Scilab 2 C Converter >> Scilab 2 C Converter > CV_Threshold + +

+

CV_Threshold

+

function to threshold input image

+ + +

Calling Sequence

+
dst = CV_Threshold(srcimg,code,threshold,max_value,thresh_type)
+ +

Parameters

+
srcimg: +

source image to be converted

+
threshold: +

threshold value

+
max_value: +

maximum value to be used with THRESH_BINARY and THRESH_BINARY_INV

+
thresh_type: +

Type for threshold. It can one of the following: THRESH_BINARY, THRESH_BINARY_INV, THRESH_TRUNC, THRESH_TOZERO, THRESH_TOZERO_INV

+ +

Description

+

This function can be used for converting an image to other colorspace. +Refer OpenCV documentation for list of available conversions

+

This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for OpenCV

+

+ +

Examples

+
img = CV_LoadImage('~/test.jpg',0)
+dst = CV_Threshold(img,100,255,'THRESH_BINARY')
+ +

See also

+
+ +

Authors

+
+
+ +
+ + + + + + +
Report an issue
+ << CV_ShowImage + + + Scilab 2 C Converter + + + CV_WaitKey >> + +
+
+
+ + diff --git a/help/en_US/scilab_en_US_help/CV_WaitKey.html b/help/en_US/scilab_en_US_help/CV_WaitKey.html new file mode 100644 index 00000000..281d1690 --- /dev/null +++ b/help/en_US/scilab_en_US_help/CV_WaitKey.html @@ -0,0 +1,83 @@ + + + CV_WaitKey + + + +
+ + + + +
+ << CV_Threshold + + + Scilab 2 C Converter + + + +
+
+
+ + + + Scilab 2 C Converter >> Scilab 2 C Converter > CV_WaitKey + +

+

CV_WaitKey

+

function similar to cvWaitKey

+ + +

Calling Sequence

+
CV_WaitKey(delay)
+ +

Parameters

+
delay: +

waiting delay, if 0 then wait till keypress

+ +

Description

+

This function can be used for inseting some delay. This function must +follow CV_ShowImage to display image.

+

This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for OpenCV

+

+ +

Examples

+
img = CV_LoadImage('~/test.jpg',0)
+CV_ShowImage('',img)
+CV_WaitKey(0);
+ +

See also

+
+ +

Authors

+
+
+ +
+ + + + + + +
Report an issue
+ << CV_Threshold + + + Scilab 2 C Converter + + + +
+
+
+ + diff --git a/help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS b/help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS new file mode 100644 index 00000000..a6bca91c Binary files /dev/null and b/help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS differ diff --git a/help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS.TAB b/help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS.TAB new file mode 100644 index 00000000..14cf1a67 --- /dev/null +++ b/help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS.TAB @@ -0,0 +1,3 @@ +eÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿuÿÿÿÿÿÿÿÿÿÝÿÿÿÿÿÝÿÿÿÿ÷_uÿÿÿÿÿÿÝÿÿÿÿÿÿÿÿÿÿÿÿÿuÿÿÿÿÿÿÿÿuÿÿuÿ÷]×ÿÿÿÿÿ÷_ÿ}ÿÿý×ÿÿ÷×ÿÿuÿÿÿÿÿÿý×ÿÝÌ'ÿÿÿÿÿÿÿÝ}×ÿÿÝÿÿ÷×Ýÿÿÿÿÿ4Ÿÿuÿÿÿÿÿÿu÷_ÿÿuuÿuôüPoÇ +e¡aŠoªÝvQFM†ñe±‘_­¤áÁF^d†~šK±¡e¯«áA±Q†ÐgÙ?úÛ¤Ë6†…>á¡Y–†ÿW‡†ÿ†Ä¡¿ÿÿŒ+†ÿÅâè`H¿Œ*RÍ‹4³Ó,ý 1’º™JÄÍu*£ +Ž*6*£ ŽW*«ão+0¯£h¬È®¯ªª£ÿÿÿ&_ººªªª©Š9:¢Ì‹ªª¨Øº3ʨÆBꪪꪪ0»¨Ò뾪»ÿÿüÒÿ0¿ÿÿüÂÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÌ/ÿÿÿÿÿÿÿÿÿÿó ÿÿÌ¢ÿÿÿÿÿüÂÿÿÿÿÿÿÿÿö \ No newline at end of file diff --git a/help/en_US/scilab_en_US_help/JavaHelpSearch/OFFSETS b/help/en_US/scilab_en_US_help/JavaHelpSearch/OFFSETS new file mode 100644 index 00000000..171c6512 --- /dev/null +++ b/help/en_US/scilab_en_US_help/JavaHelpSearch/OFFSETS @@ -0,0 +1 @@ +„f¥s™½{‘2©{ª<¯Žßê¢$k±Žnâ«É®’„ €q/0<Ì8~Šû®2öºÇ0+c©ÄõšÆfµeÁ.í¾Hûö‹ó%ïóÜw¿®Ðƒ×o5ìÛ¸ìÍóöÀ`½}˜@›FZ.šõqÜŧÐ \ No newline at end of file diff --git a/help/en_US/scilab_en_US_help/JavaHelpSearch/POSITIONS b/help/en_US/scilab_en_US_help/JavaHelpSearch/POSITIONS new file mode 100644 index 00000000..d93e5bce Binary files /dev/null and b/help/en_US/scilab_en_US_help/JavaHelpSearch/POSITIONS differ diff --git a/help/en_US/scilab_en_US_help/JavaHelpSearch/SCHEMA b/help/en_US/scilab_en_US_help/JavaHelpSearch/SCHEMA new file mode 100644 index 00000000..6a59db84 --- /dev/null +++ b/help/en_US/scilab_en_US_help/JavaHelpSearch/SCHEMA @@ -0,0 +1,2 @@ +JavaSearch 1.0 +TMAP bs=2048 rt=1 fl=-1 id1=728 id2=1 diff --git a/help/en_US/scilab_en_US_help/JavaHelpSearch/TMAP b/help/en_US/scilab_en_US_help/JavaHelpSearch/TMAP new file mode 100644 index 00000000..5be4429a Binary files /dev/null and b/help/en_US/scilab_en_US_help/JavaHelpSearch/TMAP differ diff --git a/help/en_US/scilab_en_US_help/ScilabCaution.png b/help/en_US/scilab_en_US_help/ScilabCaution.png new file mode 100644 index 00000000..231159a5 Binary files /dev/null and b/help/en_US/scilab_en_US_help/ScilabCaution.png differ diff --git a/help/en_US/scilab_en_US_help/ScilabEdit.png b/help/en_US/scilab_en_US_help/ScilabEdit.png new file mode 100644 index 00000000..ff0cca72 Binary files /dev/null and b/help/en_US/scilab_en_US_help/ScilabEdit.png differ diff --git a/help/en_US/scilab_en_US_help/ScilabExecute.png b/help/en_US/scilab_en_US_help/ScilabExecute.png new file mode 100644 index 00000000..4acd4b93 Binary files /dev/null and b/help/en_US/scilab_en_US_help/ScilabExecute.png differ diff --git a/help/en_US/scilab_en_US_help/ScilabImportant.png b/help/en_US/scilab_en_US_help/ScilabImportant.png new file mode 100644 index 00000000..73931b2c Binary files /dev/null and b/help/en_US/scilab_en_US_help/ScilabImportant.png differ diff --git a/help/en_US/scilab_en_US_help/ScilabNote.png b/help/en_US/scilab_en_US_help/ScilabNote.png new file mode 100644 index 00000000..6607ece6 Binary files /dev/null and b/help/en_US/scilab_en_US_help/ScilabNote.png differ diff --git a/help/en_US/scilab_en_US_help/ScilabTip.png b/help/en_US/scilab_en_US_help/ScilabTip.png new file mode 100644 index 00000000..6607ece6 Binary files /dev/null and b/help/en_US/scilab_en_US_help/ScilabTip.png differ diff --git a/help/en_US/scilab_en_US_help/ScilabWarning.png b/help/en_US/scilab_en_US_help/ScilabWarning.png new file mode 100644 index 00000000..231159a5 Binary files /dev/null and b/help/en_US/scilab_en_US_help/ScilabWarning.png differ diff --git a/help/en_US/scilab_en_US_help/c_code.css b/help/en_US/scilab_en_US_help/c_code.css new file mode 100644 index 00000000..948d2eea --- /dev/null +++ b/help/en_US/scilab_en_US_help/c_code.css @@ -0,0 +1,54 @@ +.ccomment { + font-style: italic; + color: #b22222 +} + +.cdefault { + font-style: normal; + color: #000000 +} + +.copenclose { + font-style: normal; + color: #000000 +} + +.coperator { + font-style: normal; + color: #000000 +} + +.cstring { + font-style: normal; + color: #a6557a +} + +.ctype { + font-style: normal; + color: #55a655 +} + +.cpreprocessor { + font-style: normal; + color: #9965a6 +} + +.cid { + font-style: normal; + color: #000000 +} + +.ckeyword { + font-style: normal; + color: #ad3ff2 +} + +.cmodifier { + font-style: normal; + color: #ad3ff2 +} + +.cnumber { + font-style: normal; + color: #008b8b +} diff --git a/help/en_US/scilab_en_US_help/index.html b/help/en_US/scilab_en_US_help/index.html new file mode 100644 index 00000000..8b95d48d --- /dev/null +++ b/help/en_US/scilab_en_US_help/index.html @@ -0,0 +1,259 @@ + + + + + + +
+ + + + +
+ + + + + +
+
+
+ + + + +

+

Scilab 2 C Converter

+ +
+ +
+ + + + + + +
Report an issue
+ + + + + +
+
+
+ + diff --git a/help/en_US/scilab_en_US_help/jhelpidx.xml b/help/en_US/scilab_en_US_help/jhelpidx.xml new file mode 100644 index 00000000..aa5a66e2 --- /dev/null +++ b/help/en_US/scilab_en_US_help/jhelpidx.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/help/en_US/scilab_en_US_help/jhelpmap.jhm b/help/en_US/scilab_en_US_help/jhelpmap.jhm new file mode 100644 index 00000000..aebfeb07 --- /dev/null +++ b/help/en_US/scilab_en_US_help/jhelpmap.jhm @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/help/en_US/scilab_en_US_help/jhelpset.hs b/help/en_US/scilab_en_US_help/jhelpset.hs new file mode 100644 index 00000000..04f9fef5 --- /dev/null +++ b/help/en_US/scilab_en_US_help/jhelpset.hs @@ -0,0 +1,28 @@ + + + +Scilab 2 C Converter + +top + + + +TOC + +javax.help.TOCView +jhelptoc.xml + + +Index + +javax.help.IndexView +jhelpidx.xml + + +Search + +javax.help.SearchView +JavaHelpSearch + + \ No newline at end of file diff --git a/help/en_US/scilab_en_US_help/jhelptoc.xml b/help/en_US/scilab_en_US_help/jhelptoc.xml new file mode 100644 index 00000000..176ca2a8 --- /dev/null +++ b/help/en_US/scilab_en_US_help/jhelptoc.xml @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/help/en_US/scilab_en_US_help/scilab_code.css b/help/en_US/scilab_en_US_help/scilab_code.css new file mode 100644 index 00000000..658f42e0 --- /dev/null +++ b/help/en_US/scilab_en_US_help/scilab_code.css @@ -0,0 +1,96 @@ +.scilabcomment { + font-style: italic; + color: #01a801 +} + +.scilabdefault { + font-style: normal; + color: #000000 +} + +.scilabspecial { + font-style: normal; + color: #ffaa00 +} + +.scilabconstants { + font-style: normal; + color: #da70d6 +} + +.scilaboperator { + font-style: normal; + color: #5c5c5c +} + +.scilabnumber { + font-style: normal; + color: #bc8f8f +} + +.scilabfkeyword { + font-style: normal; + color: #b01813 +} + +.scilabskeyword { + font-style: normal; + color: #a020f0 +} + +.scilabckeyword { + font-style: normal; + color: #5f9ea0 +} + +.scilabcommand { + font-style: normal; + color: #32b9b9 +} + +.scilabmacro { + font-style: normal; + color: #ae5cb0 +} + +a.scilabcommand { + font-style: normal; + text-decoration: underline; + color: #32b9b9 +} + +a.scilabmacro { + font-style: normal; + text-decoration: underline; + color: #ae5cb0 +} + +.scilabstring { + font-style: normal; + color: #bc8f8f +} + +.scilabid { + font-style: normal; + color: #000000 +} + +.scilabinputoutputargs { + font-weight: bold; + color: #834310 +} + +.scilabfunctionid { + font-weight: bold; + color: #000000 +} + +.scilabfield { + font-style: normal; + color: #aaaaaa +} + +.scilabopenclose { + font-style: normal; + color: #4a55db +} diff --git a/help/en_US/scilab_en_US_help/section_473a2b9e79723ff76a7f243f85d2b6b8.html b/help/en_US/scilab_en_US_help/section_473a2b9e79723ff76a7f243f85d2b6b8.html new file mode 100644 index 00000000..647ce7ce --- /dev/null +++ b/help/en_US/scilab_en_US_help/section_473a2b9e79723ff76a7f243f85d2b6b8.html @@ -0,0 +1,259 @@ + + + + + + +
+ + + + +
+ + + Scilab 2 C Converter + + + +
+
+
+ + + + Scilab 2 C Converter >> Scilab 2 C Converter + +

+

Scilab 2 C Converter

+ +
+ +
+ + + + + + +
Report an issue
+ + + Scilab 2 C Converter + + + +
+
+
+ + diff --git a/help/en_US/scilab_en_US_help/style.css b/help/en_US/scilab_en_US_help/style.css new file mode 100644 index 00000000..0fe8923d --- /dev/null +++ b/help/en_US/scilab_en_US_help/style.css @@ -0,0 +1,350 @@ +body { + color:#000000; + background-color:#ffffff; + font-family:sans-serif; + font-size:100%; + margin:5px; + padding:0; + background : url("/img/body.png"); + background-repeat : repeat-x; +} + +.para { + padding-left: 10px; +} + +.refname { + color: #ff6c0a; +} +.refpurpose { + font-size: 110%; +} + +.synopsis { + border: 1px solid black; + width:80%; + padding: 0.5em; +} + +.editbar { + text-align: right; +} + +.term { + color:#800000; + font-size:100%; +} + +h3 { + color: #000063; + font-weight: bold; + font-size:130%; + margin-bottom: 10px; +} + +.programlisting { + font-family: monospace; + font-size: 100%; + background-color:#EEEEFF; + border-color:#CCCCCC; + border-style:solid; + border-width:2px medium; + width:80%; + color:#333333; + line-height:120%; + padding:10px; +} + +.literal { + font-family: monospace; + font-size: 100%; +} + +.option { + font-family: monospace; + font-style: italic; + font-size: 100%; +} + +.command { + font-family: monospace; + font-size: 100%; + color: #32b9b9; +} + +.function { + font-family: monospace; + font-size: 100%; + color: #32b9b9; +} + +.varname { + font-family: monospace; + font-weight: bold; + font-size: 100%; +} + +.constant { + font-family: monospace; + font-size: 100%; + color: #da70d6; +} + +a { + color: blue; + text-decoration:none; +} + +a:hover { + text-decoration:underline; +} + +.itemizedlist { + list-style-type: disk; +} + +.inline-list li { + display: inline; + list-style-type: disk; +} + +.vert-list { + list-style-type: disk; +} + +pre { + margin-bottom: 0px; + margin-top: 0px; +} + +.leftpart { + position:absolute; + float:left; + width: 186px; + padding: 5px; + font-size: smaller; +} + +.content { + margin-top: 100px; + margin-left: 196px +} + +.container { + margin: 0 auto; + width:1024px; +} + +ul.toc li.list-active { + list-style-type:disc; + font-weight:bold; +} + +ul.toc li.parent { + font-size: 115%; + padding: 5px 0px 5px 11px; + border-bottom: 1px solid #cccccc; + margin-bottom: 5px; +} + +ul.toc li.root { + font-size: 135%; + padding: 5px 0px 5px 11px; + border-bottom: 1px solid #cccccc; + margin-bottom: 5px; +} + +ul.toc li { + font-size: 85%; + margin: 1px 0 1px 1px; + padding: 1px 0 1px 11px; + background-repeat: no-repeat; + background-position: center left; + list-style-type: circle; +} + +.next { + float:right; + text-align: right; +} + +.center { + text-align: center; +} + +.screen { + font-family: monospace; + font-size: 100%; + background-color:#FFFFFF; + border-color:#CCCCCC; + border-style:solid; + border-width:2px medium; + width:80%; + color:#333333; + line-height:120%; + padding:10px; +} + +/* Top and bottom navigation controls on manual pages --------------------- */ +div.manualnavbar { + background-color: #E0E0E0; + color: inherit; + padding: 4px; + margin-bottom: 10px; +} +div.manualnavbar .prev { + padding-right: 4px; +} +div.manualnavbar .next { + text-align: right; + padding-left: 4px; +} + +div.manualnavbar .top { + text-align: center; + display: block; +} + +div.manualnavbar hr { + color: #cccccc; + background-color: #cccccc; +} + +/* Footer navigation area ------------------------------------------------- */ + +#pagefooter { + position: relative; + font-size: 75%; + color: inherit; + background-color: #e5e5e5; + width: 100%; +} + +#pagefooterleft { + top: 0px; + left: 0px; + padding: 6px; + margin-right: 30%; +} + +#pagefooterright { + text-align: right; + margin-left: 50%; + padding: 6px; +} +#footnav { + color: inherit; + background-color: #9999cc; + border-width: 1px 0px; + border-color: #333366; + border-style: solid; + text-align: right; + padding-right: 6px; +} + + + + + #global{ +/* width: 90%; */ + max-width: 90em; +/* min-width: 850px; */ + margin-left: auto; + margin-right: auto; + } + + #myHeader{ + background-color:#000000; + color:white; + margin-bottom : 10px; + position : relative; + text-align: center; +/* width : 1024px;*/ + height : 100px; + padding-left : 20px; + background : url("http://atoms.scilab.org/images/homepage/cadre_head.png"); + background-repeat : no-repeat; + background-position : 0px 0px; + + } + + #myFooter{ + background-color:#E5E5E5; + font-color:black; +/* width: 90%;*/ + max-width: 90em; +/* min-width: 850px; + margin-left: 5%; + margin-right: 5%;*/ + margin-top:10px; + padding:10px; + } + + #mainArea{ + width: 100%; + overflow: hidden; + } + + #myLeftArea{ + color:white; + float: left; + width: 180px; + padding:5px; + } + + #myMiddleArea{ + color:black; + margin-left: 200px; + padding: 10px 20px; + } + + #myRightArea{ + color:white; + float: right; + width: 200px; + padding: 12px 20px; + } + + +div#cadre_head +{ + position : relative; + text-align: center; +/* width : 1024px;*/ + height : 100px; + padding-left : 20px; + background : url("/img/cadre_head.png"); + background-repeat : no-repeat; + background-position : 0px 0px; +} + + +div#slogan{ + position: absolute; + top : 50px; + left:251px; + color:#0000AA; + font: 120%, Georgia,Serif; +} +div#cadre_help +{ + position: absolute; + top:45px; + right:0px; + font-size:0.8em; + color:#0000AA; +} + +table.revhistory +{ + width:80%; + border-color:#CCCCCC; + border-style:solid; + border-width:2px medium; + margin-bottom: 10px; +} + +table.revhistory tr.title td +{ + background-color: #9999CC; +} \ No newline at end of file diff --git a/help/en_US/scilab_en_US_help/xml_code.css b/help/en_US/scilab_en_US_help/xml_code.css new file mode 100644 index 00000000..9e4c27f9 --- /dev/null +++ b/help/en_US/scilab_en_US_help/xml_code.css @@ -0,0 +1,94 @@ +.xmlcomment { + font-style: italic; + color: #01a801 +} + +.xmldefault { + font-style: normal; + color: #000000 +} + +.xmlentity { + font-style: normal; + color: #ffaa00 +} + +.xmlopeninstr { + font-style: normal; + color: #000000 +} + +.xmlcloseinstr { + font-style: normal; + color: #000000 +} + +.xmlinstrname { + font-style: normal; + color: #9965a6 +} + +.xmllowtag { + font-style: normal; + color: #000000 +} + +.xmltagname { + font-style: normal; + color: #0303ff +} + +.xmllowclose { + font-style: normal; + color: #000000 +} + +.xmlopencomment { + font-style: italic; + color: #01a801 +} + +.xmlcommentend { + font-style: italic; + color: #01a801 +} + +.xmlcomment { + font-style: italic; + color: #01a801 +} + +.xmlopencdata { + font-style: normal; + color: #c45555 +} + +.xmlcdataend { + font-style: normal; + color: #c45555 +} + +.xmlcdata { + font-style: normal; + color: #000000 +} + +.xmlattributename { + font-style: normal; + color: #9965a6 +} + +.xmlequal { + font-style: normal; + color: #000000 +} + +.xmlattributevalue { + font-style: normal; + color: #973964 +} + +.xmlautoclose { + font-style: normal; + color: #000000 +} diff --git a/includes/sci2clib.h b/includes/sci2clib.h index eae03ebb..4973fbee 100644 --- a/includes/sci2clib.h +++ b/includes/sci2clib.h @@ -189,6 +189,12 @@ extern "C" { /* interfacing int16 */ #include "int16.h" #include "int_int16.h" +/* interfacing uint32 */ +#include "uint32.h" +#include "int_uint32.h" +/* interfacing int32 */ +#include "int32.h" +#include "int_int32.h" /*interfacing bitand */ #include "bitand.h" @@ -573,21 +579,41 @@ extern "C" { #endif /*RPi*/ -#ifdef RPi1 +//#ifdef RPi1 #include "wiringPi.h" -#include "int_RPIPeripheralDigital.h" #include "RPIPeripheralDigital.h" -#include "int_RPIPeripheralTiming.h" -#include "RPIPeripheralTiming.h" -#include "int_RPIPeripheralSerial.h" -#include "RPIPeripheralSerial.h" -#include "int_RPIPeripheralThreading.h" -#include "RPIPeripheralThreading.h" -#include "int_RPIPeripheralPinISR.h" -#include "RPIPeripheralPinISR.h" -#include "int_RPIPeripheralPWM.h" +#include "int_RPIPeripheralDigital.h" +#include "RPIPeripheralGertboard.h" +#include "int_RPIPeripheralGertboard.h" +#include "RPIPeripheralI2C.h" +#include "int_RPIPeripheralI2C.h" +#include "RPIPeripheralInterrupt.h" +#include "int_RPIPeripheralInterrupt.h" +#include "RPIPeripheralLCD.h" +#include "int_RPIPeripheralLCD.h" +#include "RPIPeripheralMcp.h" +#include "int_RPIPeripheralMcp.h" +#include "RPIPeripheralMisc.h" +#include "int_RPIPeripheralMisc.h" +#include "RPIPeripheralPcf.h" +#include "int_RPIPeripheralPcf.h" +#include "RPIPeripheralPiGlow.h" +#include "int_RPIPeripheralPiGlow.h" +#include "RPIPeripheralPinMap.h" +#include "int_RPIPeripheralPinMap.h" #include "RPIPeripheralPWM.h" -#endif +#include "int_RPIPeripheralPWM.h" +#include "RPIPeripheralSerial.h" +#include "int_RPIPeripheralSerial.h" +#include "RPIPeripheralSetup.h" +#include "int_RPIPeripheralSetup.h" +#include "RPIPeripheralShift.h" +#include "int_RPIPeripheralShift.h" +#include "RPIPeripheralSoft.h" +#include "int_RPIPeripheralSoft.h" +#include "RPIPeripheralTiming.h" +#include "int_RPIPeripheralTiming.h" +//#endif #ifdef __cplusplus } diff --git a/jar/scilab_en_US_help.jar b/jar/scilab_en_US_help.jar new file mode 100644 index 00000000..bc6fae6d Binary files /dev/null and b/jar/scilab_en_US_help.jar differ diff --git a/loader.sce b/loader.sce index 061021cb..92d68830 100644 --- a/loader.sce +++ b/loader.sce @@ -1,20 +1,10 @@ // This file is released under the 3-clause BSD license. See COPYING-BSD. // Generated by builder.sce: Please, do not edit this file -oldmode = mode(); mode(-1); -oldlines = lines()(2); lines(0); try - exec(get_absolute_file_path("loader.sce")+"etc/"+"scilab2c.start"); + getversion("scilab"); catch - [errmsg, tmp, nline, func] = lasterror() - msg = "%s: error on line #%d: ""%s""\n" - msg = msprintf(msg, func, nline, errmsg) - lines(oldlines) - mode(oldmode); - clear oldlines oldmode tmp nline func - error(msg); -end -lines(oldlines); -mode(oldmode); -clear oldlines oldmode; + error("Scilab 5.0 or more is required."); +end; +exec(get_absolute_file_path("loader.sce")+"etc/"+"scilab2c.start"); diff --git a/locales/en_US.po b/locales/en_US.po new file mode 100755 index 00000000..7ba878bf --- /dev/null +++ b/locales/en_US.po @@ -0,0 +1,35 @@ +msgid "" +msgstr "" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: sci_gateway\c\sci_cerror.c:17 +msgid "%s: I'm waiting only one argument.\n" +msgstr "" + +#: sci_gateway\c\sci_cerror.c:22 +#: macros\scilab_error.sci:17 +msgid "%s: Yeah! %d is a good number of arguments but I prefer fail, sorry.\n" +msgstr "" + +#: macros\scilab_error.sci:13 +msgid "%s: I''m waiting for only one argument.\n" +msgstr "" + +msgid "Rectangle" +msgstr "" + +msgid "My Title" +msgstr "" + +msgid "Height" +msgstr "" + +msgid "Width" +msgstr "" + +msgid "Color" +msgstr "" + +msgid "Outline" +msgstr "" diff --git a/locales/en_US/LC_MESSAGES/scilab2c.mo b/locales/en_US/LC_MESSAGES/scilab2c.mo new file mode 100644 index 00000000..109adc91 Binary files /dev/null and b/locales/en_US/LC_MESSAGES/scilab2c.mo differ diff --git a/locales/en_US/LC_MESSAGES/scilab2c.po b/locales/en_US/LC_MESSAGES/scilab2c.po new file mode 100755 index 00000000..7ba878bf --- /dev/null +++ b/locales/en_US/LC_MESSAGES/scilab2c.po @@ -0,0 +1,35 @@ +msgid "" +msgstr "" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: sci_gateway\c\sci_cerror.c:17 +msgid "%s: I'm waiting only one argument.\n" +msgstr "" + +#: sci_gateway\c\sci_cerror.c:22 +#: macros\scilab_error.sci:17 +msgid "%s: Yeah! %d is a good number of arguments but I prefer fail, sorry.\n" +msgstr "" + +#: macros\scilab_error.sci:13 +msgid "%s: I''m waiting for only one argument.\n" +msgstr "" + +msgid "Rectangle" +msgstr "" + +msgid "My Title" +msgstr "" + +msgid "Height" +msgstr "" + +msgid "Width" +msgstr "" + +msgid "Color" +msgstr "" + +msgid "Outline" +msgstr "" diff --git a/macros/ASTManagement/AST_HandleEndGenFun.sci b/macros/ASTManagement/AST_HandleEndGenFun.sci index 5ff7181f..26d6cb13 100644 --- a/macros/ASTManagement/AST_HandleEndGenFun.sci +++ b/macros/ASTManagement/AST_HandleEndGenFun.sci @@ -112,6 +112,8 @@ NOutArg_mod = NOutArg PrintStringInfo(' ',ReportFileName,'both','y'); error(9999, 'SCI2CERROR: Unexpected number of output arguments for global function.'); end + elseif(ASTFunName == 'raspi' | ASTFunName == 'raspi_close') + SharedInfo.SkipNextFun = 1; end // #RNU_RES_B diff --git a/macros/ASTManagement/lib b/macros/ASTManagement/lib index 67ea09be..80a0b24d 100644 Binary files a/macros/ASTManagement/lib and b/macros/ASTManagement/lib differ diff --git a/macros/CCodeGeneration/C_GenerateMakefile.sci b/macros/CCodeGeneration/C_GenerateMakefile.sci index 7dfb4da4..f209b382 100644 --- a/macros/CCodeGeneration/C_GenerateMakefile.sci +++ b/macros/CCodeGeneration/C_GenerateMakefile.sci @@ -70,7 +70,7 @@ else PrintStringInfo('CXX = arm-linux-gnueabihf-g++ ',FileInfo.MakefileFilename,'file','y','y'); PrintStringInfo('CFLAGS = -Wall -pedantic -g -I $(HSRCDIR) -I $(ISRCDIR) -L $(LIBDIR)',FileInfo.MakefileFilename,'file','y','y'); PrintStringInfo('CXXFLAGS = -Wall -pedantic -g -I $(HSRCDIR) -I $(ISRCDIR) -L $(LIBDIR)',FileInfo.MakefileFilename,'file','y','y'); - PrintStringInfo('LDFLAGS = -llapack -lrefblas -lgfortran -lwiringPi',FileInfo.MakefileFilename,'file','y','y'); + PrintStringInfo('LDFLAGS = -llapack -lrefblas -lgfortran -lwiringPi -lwiringPiDev -lrt -lpthread',FileInfo.MakefileFilename,'file','y','y'); else PrintStringInfo('CC = gcc',FileInfo.MakefileFilename,'file','y','y'); PrintStringInfo('CXX = g++',FileInfo.MakefileFilename,'file','y','y'); diff --git a/macros/CCodeGeneration/JoinDeclarAndCcode.sci b/macros/CCodeGeneration/JoinDeclarAndCcode.sci index 2c69f46e..35607f6d 100644 --- a/macros/CCodeGeneration/JoinDeclarAndCcode.sci +++ b/macros/CCodeGeneration/JoinDeclarAndCcode.sci @@ -146,10 +146,10 @@ PrintStringInfo('** --- C code. ---',CPass2FileName,'file','y'); PrintStringInfo('** ---------------',CPass2FileName,'file','y'); PrintStringInfo('*/',CPass2FileName,'file','y'); -if((SharedInfo.Target == "RPi") & (nxtscifunname == SharedInfo.SCIMainFunName)) +//if((SharedInfo.Target == "RPi") & (nxtscifunname == SharedInfo.SCIMainFunName)) //Add wiringPiSetup() function as it is required - PrintStringInfo('wiringPiSetup();',CPass2FileName,'file','y'); -end +// PrintStringInfo('wiringPiSetup();',CPass2FileName,'file','y'); +//end // --- Copy the remaining part of V1 in V2. --- while (~meof(CPass1V1FileFid)) // #RNU_RES_B diff --git a/macros/CCodeGeneration/lib b/macros/CCodeGeneration/lib index 2db4b8c8..edcb004d 100644 Binary files a/macros/CCodeGeneration/lib and b/macros/CCodeGeneration/lib differ diff --git a/macros/ErrorMessages/lib b/macros/ErrorMessages/lib index 0a9f8913..3630f722 100644 Binary files a/macros/ErrorMessages/lib and b/macros/ErrorMessages/lib differ diff --git a/macros/FunctionAnnotation/FA_INSZ_RPI.sci b/macros/FunctionAnnotation/FA_INSZ_RPI.sci new file mode 100644 index 00000000..da924ce4 --- /dev/null +++ b/macros/FunctionAnnotation/FA_INSZ_RPI.sci @@ -0,0 +1,5 @@ +function outp=FA_INSZ_RPI(in2val) + in2val=string(in2val); + l=length(in2val); + outp=l; +endfunction diff --git a/macros/FunctionAnnotation/lib b/macros/FunctionAnnotation/lib index f02997b0..a605af93 100644 Binary files a/macros/FunctionAnnotation/lib and b/macros/FunctionAnnotation/lib differ diff --git a/macros/FunctionAnnotation/names b/macros/FunctionAnnotation/names index 8962de09..2ffbab1a 100644 --- a/macros/FunctionAnnotation/names +++ b/macros/FunctionAnnotation/names @@ -4,6 +4,7 @@ FA_GetDefaultPrecision FA_GetFunAnn FA_GetOutArgInfo FA_GetResizeApproach +FA_INSZ_RPI FA_INT FA_MAX FA_MIN diff --git a/macros/FunctionList/lib b/macros/FunctionList/lib index 2bbf0cbe..7aaf8224 100644 Binary files a/macros/FunctionList/lib and b/macros/FunctionList/lib differ diff --git a/macros/GeneralFunctions/SCI2CFindFile.sci b/macros/GeneralFunctions/SCI2CFindFile.sci index 912a72a8..f7271e2e 100644 --- a/macros/GeneralFunctions/SCI2CFindFile.sci +++ b/macros/GeneralFunctions/SCI2CFindFile.sci @@ -20,7 +20,6 @@ function [FlagFound,SCIFileName] = SCI2CFindFile(PathList,FileName) // --- Check input arguments. --- // ------------------------------ SCI2CNInArgCheck(argn(2),2,2); - FlagFound = 0; SCIFileName = ''; diff --git a/macros/GeneralFunctions/lib b/macros/GeneralFunctions/lib index e1d6f0fb..a141419f 100644 Binary files a/macros/GeneralFunctions/lib and b/macros/GeneralFunctions/lib differ diff --git a/macros/Hardware/AVR/AVRADCSetup.sci b/macros/Hardware/AVR/AVRADCSetup.sci index 264062bc..603873b3 100644 --- a/macros/Hardware/AVR/AVRADCSetup.sci +++ b/macros/Hardware/AVR/AVRADCSetup.sci @@ -17,26 +17,28 @@ function AVRADCSetup(prescaler,adc_ref) // Parameters // prescaler: prescaler to be used for generating ADC clock (0-7) // adc_ref : reference voltage to be used for ADC conversion -// 0 -> Voltage on VREF pin -// 1 -> Voltage on AVCC pin -// 2 -> Internal 2.56 reference voltage // // Description -// This function initialises ADc of AVR with given parameters. 'prescaler' is -// needed for deciding ADC clock. ADC clock should be between 50KHz and 200KHz -// and it given as (MCU clock/2^prescaler). Select appropriate prescaler depending -// on MCU clock. 'adc_ref' selects one of the available reference voltage sources -// available +// This function initialises ADc of AVR with given parameters. 'prescaler' is needed for deciding ADC clock. ADC clock should be between 50KHz and 200KHz and it given as (MCU clock/2^prescaler). Select appropriate prescaler depending on MCU clock. 'adc_ref' selects one of the available reference voltage sources available. +// +// The adc_ref can take the following values- +// +// 0 -> Voltage on VREF pin +// 1 -> Voltage on AVCC pin +// 2 -> Internal 2.56 reference voltage +// +// +// This is curretly dummy function. It provides no functionality but is required for providing support for generating C code for AVR. +// // Examples // AVRADCSetup(128,0) // See also // AVRReadADC // // Authors -// Siddhesh Wani Ashish Kamble +// Siddhesh Wani +// Ashish Kamble // -// This is curretly dummy function. It provides no functionality but is required -// for providing support for generating C code for AVR. if(prescaler>=8) disp("Error : Invalid input argument ''prescaler'' in AVRADCSetup function."); diff --git a/macros/Hardware/AVR/AVRDigitalIn.sci b/macros/Hardware/AVR/AVRDigitalIn.sci index 54eb327b..7addd663 100644 --- a/macros/Hardware/AVR/AVRDigitalIn.sci +++ b/macros/Hardware/AVR/AVRDigitalIn.sci @@ -18,8 +18,6 @@ function state = AVRDigitalIn(port,pin) // Parameters // port : port of microcontroller to be used // pin : pin of port (mentioned above) to be used -// Returns -// state : state of an input pin (HIGH\LOW) // // Description // Each AVR microcontroller has pins which can be configured as digital @@ -27,18 +25,18 @@ function state = AVRDigitalIn(port,pin) // User has to select one of these port and which pin of that port as // digital input. // +// This is curretly dummy function. It provides no functionality but is required +// for providing support for generating C code for AVR. +// // Examples // pinA0 = AVRDigitalIn(1,0) //To read state on pin 0 of port A -// // See also // AVRDigitalOut AVRDigitalSetup // -// // Authors -// Siddhesh Wani Ashish Kamble +// Siddhesh Wani +// Ashish Kamble // -// This is curretly dummy function. It provides no functionality but is required -// for providing support for generating C code for AVR. if((port==0)|(port>=5)) then disp("Error : Inavalid input argument ''port'' in AVRDigitalIn function."); diff --git a/macros/Hardware/AVR/AVRDigitalOut.sci b/macros/Hardware/AVR/AVRDigitalOut.sci index a86a5aa9..0efc927b 100644 --- a/macros/Hardware/AVR/AVRDigitalOut.sci +++ b/macros/Hardware/AVR/AVRDigitalOut.sci @@ -26,18 +26,18 @@ function AVRDigitalOut(port,pin,state) // digital output. Also, desired output state must be specified as // 'HIGH' or 'LOW'. // +// This is curretly dummy function. It provides no functionality but is required +// for providing support for generating C code for AVR. +// // Examples // AVRDigitalOut('A',0,HIGH) -// // See also // AVRDigitalIn // -// // Authors -// Siddhesh Wani Ashish Kamble +// Siddhesh Wani +// Ashish Kamble // -// This is curretly dummy function. It provides no functionality but is required -// for providing support for generating C code for AVR. if((port==0)|(port>=8)) then disp("Error : Inavalid input argument ''port'' in AVRDigitalOut function."); diff --git a/macros/Hardware/AVR/AVRDigitalPortSetup.sci b/macros/Hardware/AVR/AVRDigitalPortSetup.sci index 5f0b9671..65e8494a 100644 --- a/macros/Hardware/AVR/AVRDigitalPortSetup.sci +++ b/macros/Hardware/AVR/AVRDigitalPortSetup.sci @@ -15,7 +15,7 @@ function AVRDigitalPortSetup(port,direction) // AVRDigitalPortSetup(port,direction) // // Parameters -// port : port of microcontroller to be used(1 for PORTA, 2 for PORTB,...) +// port : port of microcontroller to be used(1 for PORTA, 2 for PORTB,...) // direction : direction to be set for pin (0 for INPUT, 1 for OUTPUT) // // Description @@ -25,18 +25,19 @@ function AVRDigitalPortSetup(port,direction) // used as digital output/input. Also, desired direction must be specified as // 'INPUT' or 'OUTPUT'. // +// This is curretly dummy function. It provides no functionality but is required +// for providing support for generating C code for AVR. +// // Examples // AVRDigitalPortSetup(1,0); //This function will make PortA as input port // // See also // AVRDigitalIn AVRDigitalOut // -// // Authors -// Siddhesh Wani Ashish Kamble +// Siddhesh Wani +// Ashish Kamble // -// This is curretly dummy function. It provides no functionality but is required -// for providing support for generating C code for AVR. if((port==0)|(port>=5)) then disp("Error : Invalid input argument ''port'' in AVRDigitalPortSetup function."); diff --git a/macros/Hardware/AVR/AVRDigitalSetup.sci b/macros/Hardware/AVR/AVRDigitalSetup.sci index e707d4fa..ed6cf306 100644 --- a/macros/Hardware/AVR/AVRDigitalSetup.sci +++ b/macros/Hardware/AVR/AVRDigitalSetup.sci @@ -15,8 +15,8 @@ function AVRDigitalSetup(port,pin,direction) // AVRDigitalSetup(port,pin,direction) // // Parameters -// port : port of microcontroller to be used -// pin : pin of port (mentioned above) to be used +// port : port of microcontroller to be used +// pin : pin of port (mentioned above) to be used // direction : direction to be set for pin (INPUT\OUTPUT) // // Description @@ -26,18 +26,19 @@ function AVRDigitalSetup(port,pin,direction) // used as digital output/input. Also, desired direction must be specified as // 'INPUT' or 'OUTPUT'. // +// This is curretly dummy function. It provides no functionality but is required +// for providing support for generating C code for AVR. +// // Examples // AVRDigitalSetup('A',0,OUTPUT) // // See also // AVRDigitalIn AVRDigitalOut // -// // Authors -// Siddhesh Wani Ashish Kamble +// Siddhesh Wani +// Ashish Kamble // -// This is curretly dummy function. It provides no functionality but is required -// for providing support for generating C code for AVR. if((port==0)|(port>=5)) then disp("Error : Invalid input argument ''port'' in AVRDigitalSetup function."); diff --git a/macros/Hardware/AVR/AVRGetTimerValue.sci b/macros/Hardware/AVR/AVRGetTimerValue.sci index afb47ac8..05919b38 100644 --- a/macros/Hardware/AVR/AVRGetTimerValue.sci +++ b/macros/Hardware/AVR/AVRGetTimerValue.sci @@ -18,20 +18,26 @@ function count = AVRGetTimerValue(timer) // 2 for timer2 // // Description -// This function returns the count value of a desired timer.By knowing the count value -// certain interrupt action can be taken. +// This function returns the count value of a desired timer.By knowing the count value certain interrupt action can be taken. +// +// Timer can take the following values +// +// 0 -> for timer0 +// 1 -> for timer1 +// 2 -> for timer2 +// +// +// This is curretly dummy function. It provides no functionality but is required +// for providing support for generating C code for AVR. // // Examples // AVRGetTimerValue(0); //returns present count of the TCNT0 counter -// // See also // AVRTimerSetup // // Authors // Ashish Kamble // -// This is curretly dummy function. It provides no functionality but is required -// for providing support for generating C code for AVR. if(timer>=3) then disp("Error : Invalid input argument ''timer'' in AVRGetTimerValue function."); diff --git a/macros/Hardware/AVR/AVRPWM0SetDuty.sci b/macros/Hardware/AVR/AVRPWM0SetDuty.sci index 604d2f40..c3815d10 100644 --- a/macros/Hardware/AVR/AVRPWM0SetDuty.sci +++ b/macros/Hardware/AVR/AVRPWM0SetDuty.sci @@ -9,15 +9,18 @@ // Email: toolbox@scilab.in function AVRPWM0SetDuty(duty) -//Function to Set Duty cycle of PWM Output generated by Timer0 at OC0 pin. +//Function to Set Duty cycle of PWM Output generated by Timer0 at OC0 pin. +// //Parameters -// duty : It holds an integer value from 0 to 100 which sets the percentage -// of time for which signal is active. +// duty : It holds an integer value from 0 to 100 which sets the percentage of time for which signal is active. +// //Description // Each Micro controller has PWM output pins which can generate varying voltage -// from 0V-5V.In this function by varying the duty cycle, varying voltage can be -// produced. -//Example +// from 0V-5V.In this function by varying the duty cycle, varying voltage can be produced. +// +// This is curretly dummy function. It provides no functionality but is required for providing support for generating C code for AVR. +// +//Examples // AVRPWM0SetDuty(50); //Produces 2.5V at OC0 pin // AVRPWM0SetDuty(0); //Produces 0V at OC0 pin //See also @@ -26,8 +29,6 @@ function AVRPWM0SetDuty(duty) //Authors // Ashish Kamble // -// This is curretly dummy function. It provides no functionality but is required -// for providing support for generating C code for AVR. if(duty>100) then disp("Error : Invalid input argument ''duty'' in AVRPWM0SetDuty function."); diff --git a/macros/Hardware/AVR/AVRPWM0Setup.sci b/macros/Hardware/AVR/AVRPWM0Setup.sci index 39861c86..c391f71e 100644 --- a/macros/Hardware/AVR/AVRPWM0Setup.sci +++ b/macros/Hardware/AVR/AVRPWM0Setup.sci @@ -10,43 +10,48 @@ function AVRPWM0Setup(waveform_mode,output_mode) //Function to Setup OC0 pin for required PWM mode +// +//Parameters +// waveform_mode: integer, from 0 to 2 +// output_mode: integer, from 0 to 1 (or 2) depending on the waveform_mode +// //Description // Every Micro controller has PWM pins which can generate varying voltages // from 0V-5V.This function helps to use OC0 pin to produce required // output waveform by setting the waveform mode and otput mode. // -//Parameters -// waveform_mode: -// 0 for Phase correct PWM Mode -// 1 for Fast PWM Mode -// 2 for CTC Mode -// output_mode: -// For Phase Correct PWM Mode: -// 0 for Clear OC0 on compare match when up-counting. Set OC0 on compare -// match when down-counting. -// 1 for Set OC0 on compare match when up-counting. Clear OC0 on compare -// match when down-counting. -// -// For Fast PWM Mode: -// 0 for non-inverted output i.e Clear OC0 on compare match, set OC0 at BOTTOM. -// 1 for inverted output i.e Set OC0 on compare match, clear OC0 at BOTTOM. -// -// For CTC Mode: -// 0 to Clear OC0 on compare match -// 1 to Set OC0 on compare match -// 2 to toggle OC0 on compare match -// -//Example -// AVRPWM0Setup(2,0); //This function will select CTC waveform mode and will clear OC0 on -// compare match +// waveform_mode can take values- +// +// 0 -> for Phase correct PWM Mode +// 1 -> for Fast PWM Mode +// 2 -> for CTC Mode +// +// +// output_mode can take values- +// +// For Phase correct PWM Mode: +// 0 for Clear OC0 on compare match when up-counting. Set OC0 on compare match when down-counting. +// 1 for Set OC0 on compare match when up-counting. Clear OC0 on compare match when down-counting. +// For Fast PWM Mode: +// 0 for non-inverted output i.e Clear OC0 on compare match, set OC0 at BOTTOM. +// 1 for inverted output i.e Set OC0 on compare match, clear OC0 at BOTTOM. +// For CTC Mode: +// 0 to Clear OC0 on compare match +// 1 to Set OC0 on compare match +// 2 to toggle OC0 on compare match +// +// +// This is curretly dummy function. It provides no functionality but is required +// for providing support for generating C code for AVR. +// +//Examples +// AVRPWM0Setup(2,0); //This function will select CTC waveform mode and will clear OC0 on compare match //See also // AVRPWM0SetDuty // //Authors // Ashish Kamble // -//This is curretly dummy function. It provides no functionality but is required -//for providing support for generating C code for AVR. if(waveform_mode>=3) then disp("Error : Invalid input argument ''waveform_mode'' in AVRPWM0Setup function."); diff --git a/macros/Hardware/AVR/AVRPWM1SetDuty.sci b/macros/Hardware/AVR/AVRPWM1SetDuty.sci index 60dc0a9f..fd6e7baf 100644 --- a/macros/Hardware/AVR/AVRPWM1SetDuty.sci +++ b/macros/Hardware/AVR/AVRPWM1SetDuty.sci @@ -11,34 +11,28 @@ function AVRPWM1SetDuty(output_pin,duty,Top_Value) //Function to Set Duty cycle of PWM Output generated by Timer1 at OC1A or OC1B pin. //Parameters -// ouput_pin: -// 0 for selecting OC1A as output pin -// 1 for selecting OC1B as output pin +// ouput_pin: integer, 0 (for OC1A) or 1 (for OC1B) // -// duty: It holds an integer value from 0 to 100 which sets the percentage -// of time for which signal is active. +// duty: It holds an integer value from 0 to 100 which sets the percentage of time for which signal is active. // -// Top_Value: It holds an integer value from 0 to 65535.This value sets the Top -// value of the counter TCNT1 i.e ICR.(for more info refer datasheet) +// Top_Value: It holds an integer value from 0 to 65535.This value sets the Top value of the counter TCNT1 i.e ICR.(for more info refer datasheet) // //Description // Each Micro controller has PWM output pins which can generate varying voltage // from 0V-5V.This function Sets the duty cycle of output PWM signal.Also this function // decides the Top Vale of TCNT1 and the output pin to output PWM signal. // +// This is curretly dummy function. It provides no functionality but is required +// for providing support for generating C code for AVR. +// //Example -// AVRPWM1SetDuty(0,50,40000); //This function will produce PWM signal of 50% duty -// cycle on OC1A pin and TCNT1 will reset at 40000 instead -// at 65535. -// +// AVRPWM1SetDuty(0,50,40000); //This function will produce PWM signal of 50% duty cycle on OC1A pin and TCNT1 will reset at 40000 instead at 65535. //See also // AVRPWM1Setup // //Authors // Ashish Kamble // -// This is curretly dummy function. It provides no functionality but is required -// for providing support for generating C code for AVR. if(output_pin>=2) then disp("Error : Invalid input argument ''output_pin'' in AVRPWM1SetDuty function."); diff --git a/macros/Hardware/AVR/AVRPWM1Setup.sci b/macros/Hardware/AVR/AVRPWM1Setup.sci index 51aa25b1..fbd96ce3 100644 --- a/macros/Hardware/AVR/AVRPWM1Setup.sci +++ b/macros/Hardware/AVR/AVRPWM1Setup.sci @@ -10,38 +10,40 @@ function AVRPWM1Setup(waveform_mode,output_mode,output_pin) //Function to Setup OC1A or OC1B pin for required PWM mode +// +//Parameters +// waveform_mode: integer, from 0 to 2 +// output_mode: integer, from 0 to 1 (or 2) depending on the waveform_mode +// output_pin: 0 (for OC1A) or 1 for (OC1B) +// //Description // Every Micro controller has PWM pins which can generate varying voltages // from 0V-5V.This function helps to use OC1A or OC1B pin to produces required // output waveform by setting the waveform mode and otput mode. // -//Parameters -// waveform_mode: -// 0 for Phase correct PWM Mode -// 1 for Fast PWM Mode -// 2 for CTC Mode +// waveform_mode can take values- +// +// 0 -> for Phase correct PWM Mode +// 1 -> for Fast PWM Mode +// 2 -> for CTC Mode +// // -// output_mode: -// For Phase Correct PWM Mode: -// 0 for Clear OC1A or OC1B on compare match when up-counting. Set OC1A or OC1B -// on compare match when down-counting. -// 1 for Set OC1A or OC1B on compare match when up-counting. Clear OC1A or OC1B -// on compare match when down-counting. -// -// For Fast PWM Mode: -// 0 for non-inverted output i.e Clear OC1A or OC1B on compare match, set OC1A -// OC1B at BOTTOM. -// 1 for inverted output i.e Set OC1A or OC1B on compare match, clear OC1A or OC1B -// at BOTTOM. -// -// For CTC Mode: -// 0 to Clear OC1A or OC1B on compare match -// 1 to Set OC1A or OC1B on compare match -// 2 to toggle OC1A or OC1B on compare match +// output_mode can take values- +// +// For Phase correct PWM Mode: +// 0 for Clear OC1A or OC1B on compare match when up-counting. Set OC1A or OC1B on compare match when down-counting. +// 1 for Set OC1A or OC1B on compare match when up-counting. Clear OC1A or OC1B on compare match when down-counting. +// For Fast PWM Mode: +// 0 for non-inverted output i.e Clear OC1A or OC1B on compare match, set OC1A or OC1B at BOTTOM. +// 1 for inverted output i.e Set OC1A or OC1B on compare match, clear OC1A or OC1B at BOTTOM. +// For CTC Mode: +// 0 to Clear OC1A or OC1B on compare match +// 1 to Set OC1A or OC1B on compare match +// 2 to toggle OC1A or OC1B on compare match +// // -// output_pin: -// 0 for selecting OC1A as output pin -// 1 for selecting OC1B as output pin +// This is curretly dummy function. It provides no functionality but is required +// for providing support for generating C code for AVR. // //Example // AVRPWM1Setup(2,0,0); //This function will select CTC mode and will clear OC1A or OC1B @@ -53,8 +55,6 @@ function AVRPWM1Setup(waveform_mode,output_mode,output_pin) //Authors // Ashish Kamble // -// This is curretly dummy function. It provides no functionality but is required -// for providing support for generating C code for AVR. if(waveform_mode>=3) then disp("Error : Invalid input argument ''waveform_mode'' in AVRPWM1Setup function."); diff --git a/macros/Hardware/AVR/AVRPWM2SetDuty.sci b/macros/Hardware/AVR/AVRPWM2SetDuty.sci index 929c1a0a..81d1761e 100644 --- a/macros/Hardware/AVR/AVRPWM2SetDuty.sci +++ b/macros/Hardware/AVR/AVRPWM2SetDuty.sci @@ -10,14 +10,17 @@ function AVRPWM2SetDuty(duty) //Function to Set Duty cycle of PWM Output generated by Timer2 at OC2 pin. +// +//Parameters +// duty : It holds an integer value from 0 to 100 which sets the percentage of time for which signal is active. +// //Description // Each Micro controller has PWM output pins which can generate varying voltage // from 0V-5V.In this function by varying the duty cycle, varying voltage can be // produced. // -//Parameters -// duty : It holds an integer value from 0 to 100 which sets the percentage -// of time for which signal is active. +// This is curretly dummy function. It provides no functionality but is required +// for providing support for generating C code for AVR. // //Example // AVRPWM2SetDuty(50); //Produces 2.5V at OC2 pin @@ -29,8 +32,6 @@ function AVRPWM2SetDuty(duty) //Authors // Ashish Kamble // -// This is curretly dummy function. It provides no functionality but is required -// for providing support for generating C code for AVR. if(duty>100) then disp("Error : Invalid input argument ''duty'' in AVRPWM2SetDuty function."); diff --git a/macros/Hardware/AVR/AVRPWM2Setup.sci b/macros/Hardware/AVR/AVRPWM2Setup.sci index d4bc74a6..11d9b019 100644 --- a/macros/Hardware/AVR/AVRPWM2Setup.sci +++ b/macros/Hardware/AVR/AVRPWM2Setup.sci @@ -10,32 +10,40 @@ function AVRPWM2Setup(waveform_mode,output_mode) //Function to Setup OC2 pin for required PWM mode +// +//Parameters +// waveform_mode: integer, from 0 to 2 +// output_mode: integer, from 0 to 1 (or 2) depending on the waveform_mode +// //Description // Every Micro controller has PWM pins which can generate varying voltages // from 0V-5V.This function helps to use OC2 pin to produces required // output waveform by setting the waveform mode and otput mode. // -//Parameters -// waveform_mode: -// 0 for Phase correct PWM Mode -// 1 for Fast PWM Mode -// 2 for CTC Mode -//output_mode: -// For Phase Correct PWM Mode: -// 0 for Clear OC2 on compare match when up-counting. Set OC2 on compare -// match when down-counting. -// 1 for Set OC2 on compare match when up-counting. Clear OC2 on compare -// match when down-counting. -// +// waveform_mode can take values- +// +// 0 -> for Phase correct PWM Mode +// 1 -> for Fast PWM Mode +// 2 -> for CTC Mode +// +// +// output_mode can take values- +// +// For Phase correct PWM Mode: +// 0 for Clear OC2 on compare match when up-counting. Set OC2 on compare match when down-counting. +// 1 for Set OC2 on compare match when up-counting. Clear OC2 on compare match when down-counting. // For Fast PWM Mode: -// 0 for non-inverted output i.e Clear OC2 on compare match, set OC2 at BOTTOM. -// 1 for inverted output i.e Set OC2 on compare match, clear OC2 at BOTTOM. -// +// 0 for non-inverted output i.e Clear OC2 on compare match, set OC2 at BOTTOM. +// 1 for inverted output i.e Set OC2 on compare match, clear OC2 at BOTTOM. // For CTC Mode: -// 0 to Clear OC2 on compare match -// 1 to Set OC2 on compare match -// 2 to toggle OC2 on compare match -// +// 0 to Clear OC2 on compare match +// 1 to Set OC2 on compare match +// 2 to toggle OC2 on compare match +// +// +// This is curretly dummy function. It provides no functionality but is required +// for providing support for generating C code for AVR. +// //Example // AVRPWM2Setup(2,0); //This function will select CTC waveform mode and will clear OC2 on // compare match @@ -45,8 +53,6 @@ function AVRPWM2Setup(waveform_mode,output_mode) //Authors // Ashish Kamble // -//This is curretly dummy function. It provides no functionality but is required -//for providing support for generating C code for AVR. if(waveform_mode>=3) then disp("Error : Invalid input argument ''waveform_mode'' in AVRPWM2Setup function."); diff --git a/macros/Hardware/AVR/AVRReadADC.sci b/macros/Hardware/AVR/AVRReadADC.sci index 7fd3e67e..71cafa7e 100644 --- a/macros/Hardware/AVR/AVRReadADC.sci +++ b/macros/Hardware/AVR/AVRReadADC.sci @@ -15,11 +15,7 @@ function adc_result = AVRReadADC(channel) // u8AVRReadADCs(channel) // // Parameters -// channel : Select which channel is to be read. Values from 0-7 select one -// of the pins ADC0-ADC7. For other possible channel values refer -// datasheet -// Returns-> -// result : Digital value for the voltage present on channel selected +// channel : Select which channel is to be read. Values from 0-7 select one of the pins ADC0-ADC7. For other possible channel values refer datasheet // // Description // This function returns digital value for present on adc pins. 'channel' @@ -28,14 +24,15 @@ function adc_result = AVRReadADC(channel) // voltages between some pins. For channel values for those options, please // refer datasheet. // +// This is curretly dummy function. It provides no functionality but is required +// for providing support for generating C code for AVR. +// // Examples // adc_result = u8AVRReadADC(0) //Read ADC0 -// // Authors -// Siddhesh Wani Ashish Kamble +// Siddhesh Wani +// Ashish Kamble // -// This is curretly dummy function. It provides no functionality but is required -// for providing support for generating C code for AVR. if(channel>=8) then disp("Error : Inavlid input argument ''channel'' in AVRReadADC function."); diff --git a/macros/Hardware/AVR/AVRSleep.sci b/macros/Hardware/AVR/AVRSleep.sci index a1b6add2..eec6e5a2 100644 --- a/macros/Hardware/AVR/AVRSleep.sci +++ b/macros/Hardware/AVR/AVRSleep.sci @@ -1,4 +1,21 @@ function AVRSleep(delay) - +// Function to pause the execution for the given time. +// +// Parameter +// delay : The time, in milliseconds, for which the execution is to be paused +// +// Description +// This function causes the execution to stop for the given amount of time. +// +// This is curretly dummy function. It provides no functionality but is required +// for providing support for generating C code for AVR. +// +//Examples +// AVRSleep(5000); +//See also +// +// Authors +// Jorawar Singh +// endfunction diff --git a/macros/Hardware/AVR/AVRTimerSetup.sci b/macros/Hardware/AVR/AVRTimerSetup.sci index 7c5dd1da..55fd55fa 100644 --- a/macros/Hardware/AVR/AVRTimerSetup.sci +++ b/macros/Hardware/AVR/AVRTimerSetup.sci @@ -10,37 +10,44 @@ function AVRTimerSetup(timer,prescaler,clock_source) //Function to setup Timers in ATmega16 +// +//Parameters: +// timer : integer, from 0 to 2 +// prescaler : integer. +// clock_source : integer, 0 (for internal) or 1 (for external) +// //Descrpition: // This function tells the micro controller which clock source you will be using. // The timer value and prescaler value passed in this function setup the timer as per // your requirement. // -//Parameters: -// timer : It is an integer value. -// 0 to setup timer0 -// 1 to setup timer1 -// 2 to setup timer2 -// prescaler : It is an integer value. -// 1 for no prescaling i.e clock will run at max 16Hz frequency -// 8 for prescaling clock by 8 i.e new clock frequency will be (clk/8) -// 64 for prescaling clock by 64 i.e new clock frequency will be (clk/64) -// 256 for prescaling clock by 256 i.e new clock frequency will be (clk/256) -// 1024 for prescaling clock by 1024 i.e new clock frequency will be (clk/1024) -// clock_source : It is an integer value. -// 0 if you are using internal clock source -// 1 if you are using external clock source +// timer can take values- +// +// 0 -> for timer0 +// 1 -> for timer1 +// 2 -> for timer2 +// +// +// prescaler can take values- +// +// 1 for no prescaling i.e clock will run at max 16Hz frequency +// 8 for prescaling clock by 8 i.e new clock frequency will be (clk/8) +// 64 for prescaling clock by 64 i.e new clock frequency will be (clk/64) +// 256 for prescaling clock by 256 i.e new clock frequency will be (clk/256) +// 1024 for prescaling clock by 1024 i.e new clock frequency will be (clk/1024) +// +// +// This is curretly dummy function. It provides no functionality but is required +// for providing support for generating C code for AVR. +// //Example -// AVRTimerSetup(0,64,0); //This function will select timer0 with timer running as per -// internal clock source and prescaled by 64. -// +// AVRTimerSetup(0,64,0); //This function will select timer0 with timer running as per internal clock source and prescaled by 64. //See also // AVRGetTimerValues // //Authors // Ashish Kamble // -//This is curretly dummy function. It provides no functionality but is required -//for providing support for generating C code for AVR. if(timer>=3) then disp("Error : Invalid input argument ''timer'' in AVRTimerSetup function."); diff --git a/macros/Hardware/AVR/AVRUARTReceive.sci b/macros/Hardware/AVR/AVRUARTReceive.sci index 790894fb..7fdf6f05 100644 --- a/macros/Hardware/AVR/AVRUARTReceive.sci +++ b/macros/Hardware/AVR/AVRUARTReceive.sci @@ -10,13 +10,16 @@ function received = AVRUARTReceive() // Function to Receive Char value send to ATmega16 using UART or USART. +// // Description // This function Receives Char as 8 bit value.This value is stored in UDR at receiving // end. // +// This is curretly dummy function. It provides no functionality but is required +// for providing support for generating C code for AVR. +// //Examples -// state = AVRUARTReceive(); //This function will Receive char and return the entire value -// +// state = AVRUARTReceive(); //This function will Receive char and return the entire value //See also // AVRUARTSetup // AVRUARTTransmit @@ -24,7 +27,5 @@ function received = AVRUARTReceive() // Authors // Ashish Kamble // -// This is curretly dummy function. It provides no functionality but is required -// for providing support for generating C code for AVR. received = 0; // received has been initialised to avoid runtime error. endfunction diff --git a/macros/Hardware/AVR/AVRUARTSetup.sci b/macros/Hardware/AVR/AVRUARTSetup.sci index 32e5db86..6ecf2a07 100644 --- a/macros/Hardware/AVR/AVRUARTSetup.sci +++ b/macros/Hardware/AVR/AVRUARTSetup.sci @@ -10,29 +10,34 @@ function AVRUARTSetup(mode, baudrate, stopbits, parity) // Function to Setup Serial Communication i.e UART or USART in ATmega16. +// +// Parameters +// mode : integer, from 0 to 2 +// baudrate : Enter one of the following available baudrates (2400 , 4800 , 9600 , 14400 , 19200 , 28800 , 38400 , 57600 , 768000 , 115200 , 230400 , 250000 , 1000000) +// stopbits : integer, (0 for one stopbit) or (1 for two stopbits) +// parity : integer, from 0 to 2 +// // Description // This function Setup the UART or USART for Serial Communicaion between ATmega16 // and different micro controllers or between ATmega16 and Computer. -// -// Parameters -// mode : -// 0 for Asynchronous Normal mode -// 1 for Asynchronous Double Speed mode -// 2 for Synchronous mode -// -// baudrate : Enter one of the following available baudrates -// 2400 , 4800 , 9600 , 14400 , 19200 , 28800 , 38400 , 57600 , -// 768000 , 115200 , 230400 , 250000 , 1000000 . // -// stopbits : -// 0 for one stopbit -// 1 for two stopbits +// mode can take values: +// +// 0 for Asynchronous Normal mode +// 1 for Asynchronous Double Speed mode +// 2 for Synchronous mode +// +// +// parity can take values: +// +// 0 for parity disabled +// 1 for even parity +// 2 for odd parity +// +// +// This is curretly dummy function. It provides no functionality but is required +// for providing support for generating C code for AVR. // -// parity : -// 0 for parity disabled -// 1 for even parity -// 2 for odd parity -// //Examples // AVRUARTSetup(0,9600,0,0); //This function will enable UART Communication for ATmega16 // with 9600 as baudrate,one stop bit and parity disabled @@ -43,8 +48,7 @@ function AVRUARTSetup(mode, baudrate, stopbits, parity) // Authors // Ashish Kamble // -// This is curretly dummy function. It provides no functionality but is required -// for providing support for generating C code for AVR. + if(mode>=3) then disp("Error : Invalid input argument ''mode'' in AVRUARTSetup function."); end diff --git a/macros/Hardware/AVR/AVRUARTTransmit.sci b/macros/Hardware/AVR/AVRUARTTransmit.sci index eb358499..695c708d 100644 --- a/macros/Hardware/AVR/AVRUARTTransmit.sci +++ b/macros/Hardware/AVR/AVRUARTTransmit.sci @@ -10,17 +10,19 @@ function AVRUARTTransmit(data) // Function to Transmit data using UART or USART. +// +// Parameter +// data : The data to be transmitted can be a Char,String,Unsigned Int,Signed Int. +// // Description // This function Tranmits data over UART or USART.The data to be transmitted can // be a Char , String , Unsigned Int, Signed Int. -// -// Parameter -// data : -// The data to be transmitted can be a Char,String,Unsigned Int,Signed Int. +// +// This is curretly dummy function. It provides no functionality but is required +// for providing support for generating C code for AVR. // //Examples -// AVRUARTTransmit("This is example"); //This function will transmit the entered string. -// +// AVRUARTTransmit("This is example"); //This function will transmit the entered string. //See also // AVRUARTSetup // AVRUARTReceive @@ -28,6 +30,4 @@ function AVRUARTTransmit(data) // Authors // Ashish Kamble // -// This is curretly dummy function. It provides no functionality but is required -// for providing support for generating C code for AVR. endfunction diff --git a/macros/Hardware/AVR/lib b/macros/Hardware/AVR/lib index 5c8f0da2..7ca99340 100644 Binary files a/macros/Hardware/AVR/lib and b/macros/Hardware/AVR/lib differ diff --git a/macros/Hardware/RasberryPi/lib b/macros/Hardware/RasberryPi/lib index 9afd77da..ef9e942d 100644 Binary files a/macros/Hardware/RasberryPi/lib and b/macros/Hardware/RasberryPi/lib differ diff --git a/macros/ImageProcessing/core/CV_CreateImage.sci b/macros/ImageProcessing/core/CV_CreateImage.sci index 02758154..90b4578b 100644 --- a/macros/ImageProcessing/core/CV_CreateImage.sci +++ b/macros/ImageProcessing/core/CV_CreateImage.sci @@ -17,25 +17,23 @@ function img = CV_CreateImage(width,height,bit_depth,no_of_channels) // // Parameters // image_size: width and height of image -// bit_depth: Bit depth of image elements -// no_of_channels: no of channels per pixels +// bit_depth: Bit depth of image elements +// no_of_channels: no of channels per pixels // // Description -// This function can be used to create opencv image object. For more info -// about bit depth and channels,please refer to OpenCV documentation -// Examples -// CV_CreateImage([320 240], "IPL_DEPTH_8U", 1) //to create image of the size 320*240 -// pixels with 8 bit unsigned each pixels and gray scale image +// This function can be used to create opencv image object. For more info about bit depth and channels,please refer to OpenCV documentation +// +// This is curretly dummy function. It provides no functionality but is required for providing support for generating C code for OpenCV // +// Examples +// CV_CreateImage([320 240], "IPL_DEPTH_8U", 1) //to create image of the size 320*240 pixels with 8 bit unsigned each pixels and gray scale image // See also // CV_LoadImage // -// // Authors // Siddhesh Wani // + img = 0; -// This is curretly dummy function. It provides no functionality but is required -// for providing support for generating C code for OpenCV endfunction diff --git a/macros/ImageProcessing/core/CV_GetImgSize.sci b/macros/ImageProcessing/core/CV_GetImgSize.sci index 02e018a7..2b176dac 100644 --- a/macros/ImageProcessing/core/CV_GetImgSize.sci +++ b/macros/ImageProcessing/core/CV_GetImgSize.sci @@ -15,23 +15,25 @@ function imgsize = CV_GetImgSize(img) // CV_GetImgSize(img) // // Parameters -// img: image whose size is to be returned +// img: image whose size is to be returned // // Description // This function can be used for retriving size information of the image. // It returs an array with first image element as width and second as height -// Examples -// img = CV_LoadImage('~/test.jpg',0) -// size = CV_GetImgSize(img) // +// This is curretly dummy function. It provides no functionality but is required +// for providing support for generating C code for OpenCV +// +// Examples +// img = CV_LoadImage('~/test.jpg',0) +// size = CV_GetImgSize(img) // See also // CV_LoadImage CV_CreateImage // // Authors // Siddhesh Wani // + imgsize = [0 0]; -// This is curretly dummy function. It provides no functionality but is required -// for providing support for generating C code for OpenCV endfunction diff --git a/macros/ImageProcessing/core/lib b/macros/ImageProcessing/core/lib index 56053510..d109e50d 100644 Binary files a/macros/ImageProcessing/core/lib and b/macros/ImageProcessing/core/lib differ diff --git a/macros/ImageProcessing/highgui/CV_LoadImage.sci b/macros/ImageProcessing/highgui/CV_LoadImage.sci index 01dda125..c420c7a1 100644 --- a/macros/ImageProcessing/highgui/CV_LoadImage.sci +++ b/macros/ImageProcessing/highgui/CV_LoadImage.sci @@ -16,25 +16,30 @@ function img = CV_LoadImage(filename,loadtype) // // Parameters // filename: name of file to be opened -// loadtype: desired load method -// <0 --> image is loaded as is (with alpha channel) -// =0 --> image is loaded as greyscale -// >0 --> 3 channel color image is loaded +// loadtype: desired load method // // Description -// This function can be used for loading a previously stored image -// Examples -// CV_LoadImage('~/test.jpg',0) +// This function can be used for loading a previously stored image +// +// loadtype can take the following values: +// +// less than 0 -> image is loaded as is (with alpha channel) +// 0 -> image is loaded as greyscale +// greater than 0 -> 3 channel color image is loaded +// // +// This is curretly dummy function. It provides no functionality but is required +// for providing support for generating C code for OpenCV +// +// Examples +// CV_LoadImage('~/test.jpg',0) // See also // CV_CreateImage // -// // Authors // Siddhesh Wani // + img = 0; -// This is curretly dummy function. It provides no functionality but is required -// for providing support for generating C code for OpenCV endfunction diff --git a/macros/ImageProcessing/highgui/CV_SaveImage.sci b/macros/ImageProcessing/highgui/CV_SaveImage.sci index 708edff0..6c5b0bf9 100644 --- a/macros/ImageProcessing/highgui/CV_SaveImage.sci +++ b/macros/ImageProcessing/highgui/CV_SaveImage.sci @@ -15,24 +15,26 @@ function status = CV_SaveImage(filename,img) // CV_SaveImage(filename,img) // // Parameters -// filename: name of file image to be saved as -// img: image to be saved +// filename: name of file image to be saved as +// img: image to be saved // // Description -// This function can be used for saving image. File format is detected -// from file extension -// Examples -// img = CV_LoadImage('~/test.jpg',0) -// CV_SaveImage('test1.png',img) +// This function can be used for saving image. File format is detected +// from file extension +// +// This is curretly dummy function. It provides no functionality but is required +// for providing support for generating C code for OpenCV // +// Examples +// img = CV_LoadImage('~/test.jpg',0) +// CV_SaveImage('test1.png',img) // See also // CV_LoadImage CV_CreateImage // // Authors // Siddhesh Wani // + status = 0; -// This is curretly dummy function. It provides no functionality but is required -// for providing support for generating C code for OpenCV endfunction diff --git a/macros/ImageProcessing/highgui/CV_ShowImage.sci b/macros/ImageProcessing/highgui/CV_ShowImage.sci index 4bfe5913..2300d256 100644 --- a/macros/ImageProcessing/highgui/CV_ShowImage.sci +++ b/macros/ImageProcessing/highgui/CV_ShowImage.sci @@ -12,28 +12,28 @@ function CV_ShowImage(winname,img) // function to show an image // // Calling Sequence -// CV_ShowImage(img) +// CV_ShowImage(img) // CV_ShowImage(winname,img) // // Parameters -// winname: name of window in which img is to be shown -// img: image to be shown already acquired (from file/camera) +// winname: name of window in which img is to be shown +// img: image to be shown already acquired (from file/camera) // // Description // This function can be used for showing images -// Examples -// img = CV_LoadImage('~/test.jpg',0) -// CV_ShowImage(img) // +// This is curretly dummy function. It provides no functionality but is required +// for providing support for generating C code for OpenCV +// +// Examples +// img = CV_LoadImage('~/test.jpg',0) +// CV_ShowImage(img) // See also // CV_CreateImage CV_LoadImage // -// // Authors // Siddhesh Wani // -// This is curretly dummy function. It provides no functionality but is required -// for providing support for generating C code for OpenCV endfunction diff --git a/macros/ImageProcessing/highgui/CV_WaitKey.sci b/macros/ImageProcessing/highgui/CV_WaitKey.sci index 0facaafe..46fd91f1 100644 --- a/macros/ImageProcessing/highgui/CV_WaitKey.sci +++ b/macros/ImageProcessing/highgui/CV_WaitKey.sci @@ -15,25 +15,25 @@ function CV_WaitKey(delay) // CV_WaitKey(delay) // // Parameters -// delay: waiting delay, if 0 then wait till keypress +// delay: waiting delay, if 0 then wait till keypress // // Description -// This function can be used for inseting some delay. This function must -// follow CV_ShowImage to display image. -// Examples -// img = CV_LoadImage('~/test.jpg',0) -// CV_ShowImage('',img) -// CV_WaitKey(0); +// This function can be used for inseting some delay. This function must +// follow CV_ShowImage to display image. +// +// This is curretly dummy function. It provides no functionality but is required +// for providing support for generating C code for OpenCV // +// Examples +// img = CV_LoadImage('~/test.jpg',0) +// CV_ShowImage('',img) +// CV_WaitKey(0); // See also // CV_LoadImage CV_ShowImage // -// // Authors // Siddhesh Wani // -// This is curretly dummy function. It provides no functionality but is required -// for providing support for generating C code for OpenCV endfunction diff --git a/macros/ImageProcessing/highgui/lib b/macros/ImageProcessing/highgui/lib index a46d5d87..8e900fee 100644 Binary files a/macros/ImageProcessing/highgui/lib and b/macros/ImageProcessing/highgui/lib differ diff --git a/macros/ImageProcessing/imgproc/CV_AdaptiveThreshold.sci b/macros/ImageProcessing/imgproc/CV_AdaptiveThreshold.sci index a922d798..e594f372 100644 --- a/macros/ImageProcessing/imgproc/CV_AdaptiveThreshold.sci +++ b/macros/ImageProcessing/imgproc/CV_AdaptiveThreshold.sci @@ -8,28 +8,26 @@ // Organization: FOSSEE, IIT Bombay // Email: toolbox@scilab.in -function cvtimg = CV_AdaptiveThreshold(srcimg,max_value,adaptive_method, ... - thresh_type, block_size, C) +function cvtimg = CV_AdaptiveThreshold(srcimg,max_value,adaptive_method,thresh_type, block_size, C) // function to adaptively threshold input image // // Calling Sequence -// dst = CV_AdaptiveThreshold(srcimg,max_value,adaptive_method, ... -// thresh_type,blk_size,c) +// dst = CV_AdaptiveThreshold(srcimg,max_value,adaptive_method,thresh_type,blk_size,c) // // Parameters -// src -> Source 8-bit single-channel image. -// max_value -> Non-zero value assigned to the pixels for which the -// condition is satisfied. See the details below. -// adaptive_method -> Adaptive thresholding algorithm to use, -// ADAPTIVE_THRESH_MEAN_C or ADAPTIVE_THRESH_GAUSSIAN_C . -// thresh_type -> Thresholding type that must be either THRESH_BINARY -// or THRESH_BINARY_INV . -// blockSize -> Size of a pixel neighborhood that is used to calculate -// a threshold value for the pixel: 3, 5, 7, and so on. -// C -> Constant subtracted from the mean or weighted mean.Normally, -// it is positive but may be zero or negative as well. +// src : Source 8-bit single-channel image. +// max_value : Non-zero value assigned to the pixels for which the condition is satisfied. See the details below. +// adaptive_method : Adaptive thresholding algorithm to use, ADAPTIVE_THRESH_MEAN_C or ADAPTIVE_THRESH_GAUSSIAN_C . +// thresh_type : Thresholding type that must be either THRESH_BINARY or THRESH_BINARY_INV . +// blockSize : Size of a pixel neighborhood that is used to calculate a threshold value for the pixel: 3, 5, 7, and so on. +// C : Constant subtracted from the mean or weighted mean.Normally, it is positive but may be zero or negative as well. +// // Description -// This function can be used for adaptively threshold given image +// This function can be used for adaptively threshold given image +// +// This is curretly dummy function. It provides no functionality but is required +// for providing support for generating C code for OpenCV +// // Examples // img = CV_LoadImage('~/test.jpg',0) // dst = CV_AdaptiveThreshold(img,255,"ADAPTIVE_THRESH_MEAN_C", ... @@ -41,8 +39,7 @@ function cvtimg = CV_AdaptiveThreshold(srcimg,max_value,adaptive_method, ... // Authors // Siddhesh Wani // + cvtimg = 0 -// This is curretly dummy function. It provides no functionality but is required -// for providing support for generating C code for OpenCV endfunction diff --git a/macros/ImageProcessing/imgproc/CV_Blur.sci b/macros/ImageProcessing/imgproc/CV_Blur.sci index b81df491..784e4c96 100644 --- a/macros/ImageProcessing/imgproc/CV_Blur.sci +++ b/macros/ImageProcessing/imgproc/CV_Blur.sci @@ -8,28 +8,34 @@ // Organization: FOSSEE, IIT Bombay // Email: toolbox@scilab.in -function cvtimg = CV_Blur(srcimg,ksize_width,ksize_height,anchor_x,anchor_y, ... - border_type) +function cvtimg = CV_Blur(srcimg,ksize_width,ksize_height,anchor_x,anchor_y,border_type) // function to blur image using normalised box filter // // Calling Sequence -// dst = CV_Blur(srcimg,ksize_width,ksize_height,anchor_x,anchor_y, ... -// border_type) +// dst = CV_Blur(srcimg,ksize_width,ksize_height,anchor_x,anchor_y,border_type) // // Parameters -// srcimg -> Source image. -// ksize_width, ksize_height -> blurring kernel size. -// anchor_x, anchor_y -> x,y coordinates of anchor point -// borderType -> border mode used to extrapolate pixels outside of the -// image. Can be : -// BORDER_REPLICATE: aaaaaa|abcdefgh|hhhhhhh -// BORDER_REFLECT: fedcba|abcdefgh|hgfedcb -// BORDER_REFLECT_101: gfedcb|abcdefgh|gfedcba -// BORDER_WRAP: cdefgh|abcdefgh|abcdefg -// BORDER_CONSTANT: iiiiii|abcdefgh|iiiiiii +// srcimg : Source image. +// ksize_width, ksize_height : blurring kernel size. +// anchor_x, anchor_y : x,y coordinates of anchor point +// border_type : border mode used to extrapolate pixels outside of the image. +// // Description -// This function can be used for blurring image using normalised box -// filter. Image can be of any depth and have any no of channels. +// This function can be used for blurring image using normalised box +// filter. Image can be of any depth and have any no of channels. +// +// border_type can be : +// +// BORDER_REPLICATE: aaaaaa|abcdefgh|hhhhhhh +// BORDER_REFLECT: fedcba|abcdefgh|hgfedcb +// BORDER_REFLECT_101: gfedcb|abcdefgh|gfedcba +// BORDER_WRAP: cdefgh|abcdefgh|abcdefg +// BORDER_CONSTANT: iiiiii|abcdefgh|iiiiiii +// +// +// This is curretly dummy function. It provides no functionality but is required +// for providing support for generating C code for OpenCV +// // Examples // img = CV_LoadImage('~/test.jpg',0) // dst = CV_Blur(img,3,3,-1,-1,"BORDER_CONSTANT") @@ -40,8 +46,7 @@ function cvtimg = CV_Blur(srcimg,ksize_width,ksize_height,anchor_x,anchor_y, ... // Authors // Siddhesh Wani // + cvtimg = 0 -// This is curretly dummy function. It provides no functionality but is required -// for providing support for generating C code for OpenCV endfunction diff --git a/macros/ImageProcessing/imgproc/CV_Canny.sci b/macros/ImageProcessing/imgproc/CV_Canny.sci index b21028a0..be1c2ccb 100644 --- a/macros/ImageProcessing/imgproc/CV_Canny.sci +++ b/macros/ImageProcessing/imgproc/CV_Canny.sci @@ -15,33 +15,33 @@ function edges = CV_Canny(srcimg,threhold1,threshold2,aperture_size,L2gradient) // edges = CV_Canny(srcimg,threhold1,threshold2,aperture_size,L2gradient) // // Parameters -// srcimg -> single-channel 8-bit input image. -// threshold1 -> first threshold for the hysteresis procedure. -// threshold2 -> second threshold for the hysteresis procedure. -// aperture_size -> aperture size for the Sobel() operator. -// L2gradient -> a flag, indicating whether a more accurate -// L_2 norm =sqrt{(dI/dx)^2 + (dI/dy)^2} should be used to -// calculate the image gradient magnitude ( L2gradient=1 ), -// or whether the default L_1 norm =|dI/dx|+|dI/dy| is enough -// ( L2gradient=0). +// srcimg : single-channel 8-bit input image. +// threshold1 : first threshold for the hysteresis procedure. +// threshold2 : second threshold for the hysteresis procedure. +// aperture_size : aperture size for the Sobel() operator. +// L2gradient : a flag, indicating whether a more accurate +// // Description -// This function can be used for finding edes in single channel 8 bit -// image. 'aperture_size' and 'L2gradient' are optionals. By default, -// aperture_size is 3 and L2gradient is false. +// This function can be used for finding edes in single channel 8 bit +// image. 'aperture_size' and 'L2gradient' are optionals. By default, +// aperture_size is 3 and L2gradient is false. +// +// For L2gradient: L_2 norm =sqrt{(dI/dx)^2 + (dI/dy)^2} should be used to calculate the image gradient magnitude (L2gradient=1 ), or whether the default L_1 norm =|dI/dx|+|dI/dy| is enough (L2gradient=0). +// +// This is curretly dummy function. It provides no functionality but is required +// for providing support for generating C code for OpenCV // // Examples -// img = CV_LoadImage('~/test.jpg',0) -// dst = CV_CvtColor(img,"CV_RGB2GRAY"); -// edge = CV_Canny(dst,50,100,3,0); -// +// img = CV_LoadImage('~/test.jpg',0) +// dst = CV_CvtColor(img,"CV_RGB2GRAY"); +// edge = CV_Canny(dst,50,100,3,0); // See also // CV_LoadImage CV_CvtColor // // Authors // Siddhesh Wani // + edges = 0 -// This is curretly dummy function. It provides no functionality but is required -// for providing support for generating C code for OpenCV endfunction diff --git a/macros/ImageProcessing/imgproc/CV_CornerHarris.sci b/macros/ImageProcessing/imgproc/CV_CornerHarris.sci index fb25612b..ccb83cb7 100644 --- a/macros/ImageProcessing/imgproc/CV_CornerHarris.sci +++ b/macros/ImageProcessing/imgproc/CV_CornerHarris.sci @@ -12,42 +12,41 @@ function edges = CV_CornerHarris(srcimg,blocksize,ksize,k,border_type) //Finds edges in image using Harris algorithm // // Calling Sequence -// edges = CV_CornerHarris(srcimg,blocksize,ksize,k,border_type) +// edges = CV_CornerHarris(srcimg,blocksize,ksize,k,border_type) // // Parameters -// srcimg -> Input single-channel 8-bit or floating-point image. -// blockSize -> Neighborhood size -// ksize -> Aperture parameter for the Sobel() operator. -// k -> Harris detector free parameter. -// borderType -> border mode used to extrapolate pixels outside of the -// image. It can be : -// BORDER_REPLICATE: aaaaaa|abcdefgh|hhhhhhh -// BORDER_REFLECT: fedcba|abcdefgh|hgfedcb -// BORDER_REFLECT_101: gfedcb|abcdefgh|gfedcba -// BORDER_WRAP: cdefgh|abcdefgh|abcdefg -// BORDER_CONSTANT: iiiiii|abcdefgh|iiiiiii +// srcimg: Input single-channel 8-bit or floating-point image. +// blockSize: Neighborhood size +// ksize: Aperture parameter for the Sobel() operator. +// k: Harris detector free parameter. +// border_type: border mode used to extrapolate pixels outside of the image. +// // Description -// The function runs the Harris edge detector on the image. For each -// pixel (x, y) it calculates a 2 * 2 gradient covariance matrix M(x,y) -// over a blockSize * blockSize neighborhood. Then, it computes the -// following characteristic: -// dst(x,y) = det(M(x,y)) - k .tr(M(x,y))^2 -// Corners in the image can be found as the local maxima of this -// response map +// The function runs the Harris edge detector on the image. For each pixel (x, y) it calculates a 2 * 2 gradient covariance matrix M(x,y) over a blockSize * blockSize neighborhood. Then, it computes the following characteristic: dst(x,y) = det(M(x,y)) - k .tr(M(x,y))^2. Corners in the image can be found as the local maxima of this response map. // -// Examples -// img = CV_LoadImage('~/test.jpg',0) -// dst = CV_CvtColor(img,"CV_RGB2GRAY"); -// edge = CV_CornerHarris(dst,5,3,1,"BORDER_REPLICATE"); +// border_type can be : +// +// BORDER_REPLICATE: aaaaaa|abcdefgh|hhhhhhh +// BORDER_REFLECT: fedcba|abcdefgh|hgfedcb +// BORDER_REFLECT_101: gfedcb|abcdefgh|gfedcba +// BORDER_WRAP: cdefgh|abcdefgh|abcdefg +// BORDER_CONSTANT: iiiiii|abcdefgh|iiiiiii +// +// +// This is curretly dummy function. It provides no functionality but is required +// for providing support for generating C code for OpenCV // +// Examples +// img = CV_LoadImage('~/test.jpg',0) +// dst = CV_CvtColor(img,"CV_RGB2GRAY"); +// edge = CV_CornerHarris(dst,5,3,1,"BORDER_REPLICATE"); // See also // CV_LoadImage CV_CvtColor // // Authors // Siddhesh Wani // + edges = 0 -// This is curretly dummy function. It provides no functionality but is required -// for providing support for generating C code for OpenCV endfunction diff --git a/macros/ImageProcessing/imgproc/CV_CvtColor.sci b/macros/ImageProcessing/imgproc/CV_CvtColor.sci index 766844bf..dcf756c0 100644 --- a/macros/ImageProcessing/imgproc/CV_CvtColor.sci +++ b/macros/ImageProcessing/imgproc/CV_CvtColor.sci @@ -15,27 +15,28 @@ function cvtimg = CV_CvtColor(srcimg,code) // CV_CvtColor(srcimg,code) // // Parameters -// srcimg: source image to be converted -// dstimg: destination image in which to store converted image -// code: String specifying conversion type. Same as defined in OpenCV -// for eg. 'CV_RGB2GRAY' for conversion from RGB image to grayscale image -// dstCn: no of channels in destination image (0 by default) +// srcimg: source image to be converted +// dstimg: destination image in which to store converted image +// code: String specifying conversion type. Same as defined in OpenCV. for eg. 'CV_RGB2GRAY' for conversion from RGB image to grayscale image +// dstCn: no of channels in destination image (0 by default) // // Description -// This function can be used for converting an image to other colorspace. -// Refer OpenCV documentation for list of available conversions -// Examples -// img = CV_LoadImage('~/test.jpg',0) -// dst = CV_CvtColor(img,'CV_RGB2GRAY') +// This function can be used for converting an image to other colorspace. +// Refer OpenCV documentation for list of available conversions +// +// This is curretly dummy function. It provides no functionality but is required +// for providing support for generating C code for OpenCV // +// Examples +// img = CV_LoadImage('~/test.jpg',0) +// dst = CV_CvtColor(img,'CV_RGB2GRAY') // See also // CV_LoadImage CV_CreateImage // // Authors // Siddhesh Wani // + cvtimg = 0 -// This is curretly dummy function. It provides no functionality but is required -// for providing support for generating C code for OpenCV endfunction diff --git a/macros/ImageProcessing/imgproc/CV_Dilate.sci b/macros/ImageProcessing/imgproc/CV_Dilate.sci index 196cab85..25e2c844 100644 --- a/macros/ImageProcessing/imgproc/CV_Dilate.sci +++ b/macros/ImageProcessing/imgproc/CV_Dilate.sci @@ -8,45 +8,44 @@ // Organization: FOSSEE, IIT Bombay // Email: toolbox@scilab.in -function cvtimg = CV_Dilate(srcimg,dilation_type,dilation_size,iterations, ... - border_type,border_value) +function cvtimg = CV_Dilate(srcimg,dilation_type,dilation_size,iterations,border_type,border_value) // dilates an image by using a specific structuring element. // // Calling Sequence -// cvtimg = CV_Dilate(srcimg,dilation_type,dilation_size,[iterations, ... -// border_type,border_value]) +// cvtimg = CV_Dilate(srcimg,dilation_type,dilation_size,[iterations,border_type,border_value]) // Parameters -// src -> input image; the number of channels can be arbitrary, but the -// depth should be one of CV_8U, CV_16U, CV_16S, CV_32F or CV_64F. -// dilation_type -> can be one of : MORPH_RECT, MORPH_CROSS, -// MORPH_ELLIPSE -// dilation_size -> size of kernel to be used for erosion. Must be odd -// iterations -> number of times erosion is applied. -// border_type -> pixel extrapolation method. It can be: -// BORDER_REPLICATE: aaaaaa|abcdefgh|hhhhhhh -// BORDER_REFLECT: fedcba|abcdefgh|hgfedcb -// BORDER_REFLECT_101: gfedcb|abcdefgh|gfedcba -// BORDER_WRAP: cdefgh|abcdefgh|abcdefg -// BORDER_CONSTANT: iiiiii|abcdefgh|iiiiiii -// border_value -> border value in case of a constant border +// src : input image; the number of channels can be arbitrary, but the depth should be one of CV_8U, CV_16U, CV_16S, CV_32F or CV_64F. +// dilation_type : can be one of MORPH_RECT, MORPH_CROSS,MORPH_ELLIPSE +// dilation_size : size of kernel to be used for erosion. Must be odd +// iterations : number of times erosion is applied. +// border_type : pixel extrapolation method. +// border_value : border value in case of a constant border +// // Description -// This function can be used for eroding an image. Kernel used for erosion -// is decided by type and size. Size must always be odd. Anchor pint of -// kernel is always center of kernel. Input arguements 'iterations(1), -// border_type(BORDER_CONSTANT) and border_value' are optionals. Whwn not -// specified, default values as as mentioned in brackets. -// Examples -// img = CV_LoadImage('~/test.jpg',0) -// dst = CV_Erode(img,"MORPH_RECT",3,1,"BORDER_CONSTANT",0); +// This function can be used for eroding an image. Kernel used for erosion is decided by type and size. Size must always be odd. Anchor pint of kernel is always center of kernel. Input arguements 'iterations(1), border_type(BORDER_CONSTANT) and border_value' are optionals. Whwn not specified, default values as as mentioned in brackets. +// +// border_type can be : +// +// BORDER_REPLICATE: aaaaaa|abcdefgh|hhhhhhh +// BORDER_REFLECT: fedcba|abcdefgh|hgfedcb +// BORDER_REFLECT_101: gfedcb|abcdefgh|gfedcba +// BORDER_WRAP: cdefgh|abcdefgh|abcdefg +// BORDER_CONSTANT: iiiiii|abcdefgh|iiiiiii +// +// +// This is curretly dummy function. It provides no functionality but is required +// for providing support for generating C code for OpenCV // +// Examples +// img = CV_LoadImage('~/test.jpg',0) +// dst = CV_Erode(img,"MORPH_RECT",3,1,"BORDER_CONSTANT",0); // See also // CV_LoadImage CV_Erode // // Authors // Siddhesh Wani // + cvtimg = 0 -// This is curretly dummy function. It provides no functionality but is required -// for providing support for generating C code for OpenCV endfunction diff --git a/macros/ImageProcessing/imgproc/CV_DistanceTransform.sci b/macros/ImageProcessing/imgproc/CV_DistanceTransform.sci index e8772958..1f304a68 100644 --- a/macros/ImageProcessing/imgproc/CV_DistanceTransform.sci +++ b/macros/ImageProcessing/imgproc/CV_DistanceTransform.sci @@ -15,26 +15,26 @@ function dstimg = CV_DistanceTransform(srcimg,distance_type,mask_size) // dst = CV_DistanceTransform(srcimg,distance_type,mask_size) // // Parameters -// srcimg -> Source 8-bit single-channel image. -// distance_type -> Type of distance. It can be -// CV_DIST_L1, CV_DIST_L2 , or CV_DIST_C -// mask_size -> Size of the distance transform mask +// srcimg : Source 8-bit single-channel image. +// distance_type : Type of distance. It can be CV_DIST_L1, CV_DIST_L2 , or CV_DIST_C +// mask_size : Size of the distance transform mask +// // Description -// This function can be used to calculate distance to closest zero -// pixel for each pixel of the source image. Output is 32 bit floating -// point, single channel image of the same size as that of source image. -// Examples -// img = CV_LoadImage('~/test.jpg',0) -// dst = CV_DistanceTransform(img,"CV_DIST_L1",3) +// This function can be used to calculate distance to closest zero pixel for each pixel of the source image. Output is 32 bit floatingpoint, single channel image of the same size as that of source image. +// +// This is curretly dummy function. It provides no functionality but is required +// for providing support for generating C code for OpenCV // +// Examples +// img = CV_LoadImage('~/test.jpg',0) +// dst = CV_DistanceTransform(img,"CV_DIST_L1",3) // See also // CV_LoadImage CV_CreateImage CV_CvtColor // // Authors // Siddhesh Wani // + dstimg = 0 -// This is curretly dummy function. It provides no functionality but is required -// for providing support for generating C code for OpenCV endfunction diff --git a/macros/ImageProcessing/imgproc/CV_Erode.sci b/macros/ImageProcessing/imgproc/CV_Erode.sci index d77e9e69..73f3ee59 100644 --- a/macros/ImageProcessing/imgproc/CV_Erode.sci +++ b/macros/ImageProcessing/imgproc/CV_Erode.sci @@ -8,44 +8,44 @@ // Organization: FOSSEE, IIT Bombay // Email: toolbox@scilab.in -function cvtimg = CV_Erode(srcimg,erosion_type,erosion_size,iterations, ... - border_type,border_value) +function cvtimg = CV_Erode(srcimg,erosion_type,erosion_size,iterations,border_type,border_value) // Erodes an image by using a specific structuring element. // // Calling Sequence -// cvtimg = CV_Erode(srcimg,erosion_type,erosion_size,[iterations, ... -// border_type,border_value]) +// cvtimg = CV_Erode(srcimg,erosion_type,erosion_size,[iterations,border_type,border_value]) // Parameters -// src -> input image; the number of channels can be arbitrary, but the -// depth should be one of CV_8U, CV_16U, CV_16S, CV_32F or CV_64F. -// erosion_type -> can be one of : MORPH_RECT, MORPH_CROSS, MORPH_ELLIPSE -// erosion_size -> size of kernel to be used for erosion. Must be odd -// iterations -> number of times erosion is applied. -// border_type -> pixel extrapolation method. It can be: -// BORDER_REPLICATE: aaaaaa|abcdefgh|hhhhhhh -// BORDER_REFLECT: fedcba|abcdefgh|hgfedcb -// BORDER_REFLECT_101: gfedcb|abcdefgh|gfedcba -// BORDER_WRAP: cdefgh|abcdefgh|abcdefg -// BORDER_CONSTANT: iiiiii|abcdefgh|iiiiiii -// border_value -> border value in case of a constant border +// src : input image; the number of channels can be arbitrary, but the depth should be one of CV_8U, CV_16U, CV_16S, CV_32F or CV_64F. +// erosion_type : can be one of : MORPH_RECT, MORPH_CROSS, MORPH_ELLIPSE +// erosion_size : size of kernel to be used for erosion. Must be odd +// iterations : number of times erosion is applied. +// border_type : pixel extrapolation method. +// border_value : border value in case of a constant border +// // Description -// This function can be used for eroding an image. Kernel used for erosion -// is decided by type and size. Size must always be odd. Anchor pint of -// kernel is always center of kernel. Input arguements 'iterations(1), -// border_type(BORDER_CONSTANT) and border_value' are optionals. Whwn not -// specified, default values as as mentioned in brackets. -// Examples -// img = CV_LoadImage('~/test.jpg',0) -// dst = CV_Erode(img,"MORPH_RECT",3,1,"BORDER_CONSTANT",0); +// This function can be used for eroding an image. Kernel used for erosion is decided by type and size. Size must always be odd. Anchor pint of kernel is always center of kernel. Input arguements 'iterations(1), border_type(BORDER_CONSTANT) and border_value' are optionals. Whwn not specified, default values as as mentioned in brackets. +// +// border_type can be : +// +// BORDER_REPLICATE: aaaaaa|abcdefgh|hhhhhhh +// BORDER_REFLECT: fedcba|abcdefgh|hgfedcb +// BORDER_REFLECT_101: gfedcb|abcdefgh|gfedcba +// BORDER_WRAP: cdefgh|abcdefgh|abcdefg +// BORDER_CONSTANT: iiiiii|abcdefgh|iiiiiii +// +// +// This is curretly dummy function. It provides no functionality but is required +// for providing support for generating C code for OpenCV // +// Examples +// img = CV_LoadImage('~/test.jpg',0) +// dst = CV_Erode(img,"MORPH_RECT",3,1,"BORDER_CONSTANT",0); // See also // CV_LoadImage CV_Dilate // // Authors // Siddhesh Wani // + cvtimg = 0 -// This is curretly dummy function. It provides no functionality but is required -// for providing support for generating C code for OpenCV endfunction diff --git a/macros/ImageProcessing/imgproc/CV_GaussianBlur.sci b/macros/ImageProcessing/imgproc/CV_GaussianBlur.sci index 0799c4dd..814355e0 100644 --- a/macros/ImageProcessing/imgproc/CV_GaussianBlur.sci +++ b/macros/ImageProcessing/imgproc/CV_GaussianBlur.sci @@ -8,44 +8,46 @@ // Organization: FOSSEE, IIT Bombay // Email: toolbox@scilab.in -function cvtimg = CV_GaussianBlur(srcimg,ksize_width,ksize_height,sigma_x,sigma_y, ... - border_type) +function cvtimg = CV_GaussianBlur(srcimg,ksize_width,ksize_height,sigma_x,sigma_y,border_type) // function to blur image using gaussian filter // // Calling Sequence -// dst = CV_Blur(srcimg,ksize_width,ksize_height,anchor_x,anchor_y, ... -// border_type) +// cvtimg = CV_GaussianBlur(srcimg,ksize_width,ksize_height,sigma_x,sigma_y,border_type) // // Parameters -// srcimg -> Source image. -// ksize_width, ksize_height -> blurring kernel size. must be odd. -// sigmaX -> Gaussian kernel standard deviation in X direction. -// sigmaY -> Gaussian kernel standard deviation in Y direction; -// if sigmaY is zero, it is set to be equal to sigmaX, -// if both sigmas are zeros, they are computed from -// ksize.width and ksize.height , respectively -// borderType -> border mode used to extrapolate pixels outside of the -// image. Can be : -// BORDER_REPLICATE: aaaaaa|abcdefgh|hhhhhhh -// BORDER_REFLECT: fedcba|abcdefgh|hgfedcb -// BORDER_REFLECT_101: gfedcb|abcdefgh|gfedcba -// BORDER_WRAP: cdefgh|abcdefgh|abcdefg -// BORDER_CONSTANT: iiiiii|abcdefgh|iiiiiii +// srcimg : Source image. +// ksize_width, ksize_height : blurring kernel size. must be odd. +// sigmaX : Gaussian kernel standard deviation in X direction. +// sigmaY : Gaussian kernel standard deviation in Y direction; +// border_type : border mode used to extrapolate pixels outside of the image. +// // Description -// This function can be used for blurring image using gaussian -// filter. Image can be of any depth and have any no of channels. -// Examples -// img = CV_LoadImage('~/test.jpg',0) -// dst = CV_GaussianBlur(img,3,3,0,0,"BORDER_CONSTANT") +// This function can be used for blurring image using gaussian filter. Image can be of any depth and have any no of channels. +// +// For sigmaX and sigmaY : if sigmaY is zero, it is set to be equal to sigmaX, if both sigmas are zeros, they are computed from ksize.width and ksize.height , respectively. // +// border_type can be : +// +// BORDER_REPLICATE: aaaaaa|abcdefgh|hhhhhhh +// BORDER_REFLECT: fedcba|abcdefgh|hgfedcb +// BORDER_REFLECT_101: gfedcb|abcdefgh|gfedcba +// BORDER_WRAP: cdefgh|abcdefgh|abcdefg +// BORDER_CONSTANT: iiiiii|abcdefgh|iiiiiii +// +// +// This is curretly dummy function. It provides no functionality but is required +// for providing support for generating C code for OpenCV +// +// Examples +// img = CV_LoadImage('~/test.jpg',0) +// dst = CV_GaussianBlur(img,3,3,0,0,"BORDER_CONSTANT") // See also // CV_LoadImage CV_Blur, CV_CvtColor // // Authors // Siddhesh Wani // + cvtimg = 0 -// This is curretly dummy function. It provides no functionality but is required -// for providing support for generating C code for OpenCV endfunction diff --git a/macros/ImageProcessing/imgproc/CV_MedianBlur.sci b/macros/ImageProcessing/imgproc/CV_MedianBlur.sci index d8f9a900..5f6069a7 100644 --- a/macros/ImageProcessing/imgproc/CV_MedianBlur.sci +++ b/macros/ImageProcessing/imgproc/CV_MedianBlur.sci @@ -12,30 +12,29 @@ function cvtimg = CV_MedianBlur(srcimg,ksize) // function to blur image using median filter // // Calling Sequence -// dst = CV_Blur(srcimg,ksize_width,ksize_height,anchor_x,anchor_y, ... -// border_type) +// cvtimg = CV_MedianBlur(srcimg,ksize) // // Parameters -// srcimg -> input 1-, 3-, or 4-channel image; when ksize is 3 or 5, -// the image depth should be CV_8U, CV_16U, or CV_32F, for -// larger aperture sizes, it can only be CV_8U. -// ksize_width -> aperture linear size; it must be odd and greater than 1, -// for example: 3, 5, 7 ... +// srcimg : input 1-, 3-, or 4-channel image; when ksize is 3 or 5, the image depth should be CV_8U, CV_16U, or CV_32F, for larger aperture sizes, it can only be CV_8U. +// ksize_width : aperture linear size; it must be odd and greater than 1, for example: 3, 5, 7 ... +// // Description // This function can be used for blurring image using median // filter. Image can be of any depth and have any no of channels. -// Examples -// img = CV_LoadImage('~/test.jpg',0) -// dst = CV_MedianBlur(img,3) // +// This is curretly dummy function. It provides no functionality but is required +// for providing support for generating C code for OpenCV +// +// Examples +// img = CV_LoadImage('~/test.jpg',0) +// dst = CV_MedianBlur(img,3) // See also -// CV_GaussianBlur CV_Blur, CV_CvtColor +// CV_GaussianBlur, CV_Blur, CV_CvtColor // // Authors // Siddhesh Wani // + cvtimg = 0 -// This is curretly dummy function. It provides no functionality but is required -// for providing support for generating C code for OpenCV endfunction diff --git a/macros/ImageProcessing/imgproc/CV_Threshold.sci b/macros/ImageProcessing/imgproc/CV_Threshold.sci index 823a5768..0563c360 100644 --- a/macros/ImageProcessing/imgproc/CV_Threshold.sci +++ b/macros/ImageProcessing/imgproc/CV_Threshold.sci @@ -16,26 +16,27 @@ function cvtimg = CV_Threshold(srcimg,threshold,max_value,thresh_type) // // Parameters // srcimg: source image to be converted -// threshold: threshold value -// max_value: maximum value to be used with THRESH_BINARY and THRESH_BINARY_INV -// thresh_type: Type for threshold. It can one of the following: -// THRESH_BINARY, THRESH_BINARY_INV, THRESH_TRUNC, -// THRESH_TOZERO, THRESH_TOZERO_INV +// threshold: threshold value +// max_value: maximum value to be used with THRESH_BINARY and THRESH_BINARY_INV +// thresh_type: Type for threshold. It can one of the following: THRESH_BINARY, THRESH_BINARY_INV, THRESH_TRUNC, THRESH_TOZERO, THRESH_TOZERO_INV +// // Description -// This function can be used for converting an image to other colorspace. -// Refer OpenCV documentation for list of available conversions -// Examples -// img = CV_LoadImage('~/test.jpg',0) -// dst = CV_Threshold(img,100,255,'THRESH_BINARY') +// This function can be used for converting an image to other colorspace. +// Refer OpenCV documentation for list of available conversions +// +// This is curretly dummy function. It provides no functionality but is required +// for providing support for generating C code for OpenCV // +// Examples +// img = CV_LoadImage('~/test.jpg',0) +// dst = CV_Threshold(img,100,255,'THRESH_BINARY') // See also // CV_LoadImage CV_CreateImage // // Authors // Siddhesh Wani // + cvtimg = 0 -// This is curretly dummy function. It provides no functionality but is required -// for providing support for generating C code for OpenCV endfunction diff --git a/macros/ImageProcessing/imgproc/lib b/macros/ImageProcessing/imgproc/lib index 4863059b..cef8f9b8 100644 Binary files a/macros/ImageProcessing/imgproc/lib and b/macros/ImageProcessing/imgproc/lib differ diff --git a/macros/Scilab-Arduino/lib b/macros/Scilab-Arduino/lib index 0304cade..75e5b330 100644 Binary files a/macros/Scilab-Arduino/lib and b/macros/Scilab-Arduino/lib differ diff --git a/macros/SymbolTable/ST_AnalyzeScope.sci b/macros/SymbolTable/ST_AnalyzeScope.sci index 6ce94820..8389c09a 100644 --- a/macros/SymbolTable/ST_AnalyzeScope.sci +++ b/macros/SymbolTable/ST_AnalyzeScope.sci @@ -84,7 +84,6 @@ for cntout = 1:NOutArg // #RNU_RES_E OutArg(cntout).Scope = 'Local'; end - // #RNU_RES_B // --- Check in global symbol table. --- // #RNU_RES_E diff --git a/macros/SymbolTable/lib b/macros/SymbolTable/lib index dbc603e2..3b60d2d4 100644 Binary files a/macros/SymbolTable/lib and b/macros/SymbolTable/lib differ diff --git a/macros/ToolInitialization/INIT_FillSCI2LibCDirs.sci b/macros/ToolInitialization/INIT_FillSCI2LibCDirs.sci index f0a83604..ffc7d482 100644 --- a/macros/ToolInitialization/INIT_FillSCI2LibCDirs.sci +++ b/macros/ToolInitialization/INIT_FillSCI2LibCDirs.sci @@ -437,6 +437,82 @@ PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file', INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); + +// --------------------- +// --- Class Uint32. --- +// --------------------- +ClassName = 'Uint32'; + +// --- Class Annotation. --- +PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y'); +ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls); +PrintStringInfo('NIN= 1',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 1 ',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).TP= ''u32''',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(1)= IN(1).SZ(1)',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(2)= IN(1).SZ(2)',ClassFileName,'file','y'); + +// --- Function List Class. --- +ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls); +PrintStringInfo('s0'+ArgSeparator+'u320',ClassFileName,'file','y'); +PrintStringInfo('d0'+ArgSeparator+'u320',ClassFileName,'file','y'); +PrintStringInfo('u80'+ArgSeparator+'u320',ClassFileName,'file','y'); +PrintStringInfo('i80'+ArgSeparator+'u320',ClassFileName,'file','y'); +PrintStringInfo('u160'+ArgSeparator+'u320',ClassFileName,'file','y'); +PrintStringInfo('i160'+ArgSeparator+'u320',ClassFileName,'file','y'); +PrintStringInfo('i320'+ArgSeparator+'u320',ClassFileName,'file','y'); +PrintStringInfo('s2'+ArgSeparator+'u322',ClassFileName,'file','y'); +PrintStringInfo('d2'+ArgSeparator+'u322',ClassFileName,'file','y'); +PrintStringInfo('u82'+ArgSeparator+'u322',ClassFileName,'file','y'); +PrintStringInfo('i82'+ArgSeparator+'u322',ClassFileName,'file','y'); +PrintStringInfo('u162'+ArgSeparator+'u322',ClassFileName,'file','y'); +PrintStringInfo('i162'+ArgSeparator+'u322',ClassFileName,'file','y'); +PrintStringInfo('i322'+ArgSeparator+'u322',ClassFileName,'file','y'); + +// --- Annotation Function And Function List Function. --- +FunctionName = 'uint32'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); + + +// --------------------- +// --- Class Int32. --- +// --------------------- +ClassName = 'Int32'; + +// --- Class Annotation. --- +PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y'); +ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls); +PrintStringInfo('NIN= 1',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 1 ',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).TP= ''i32''',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(1)= IN(1).SZ(1)',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(2)= IN(1).SZ(2)',ClassFileName,'file','y'); + +// --- Function List Class. --- +ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls); +PrintStringInfo('s0'+ArgSeparator+'i320',ClassFileName,'file','y'); +PrintStringInfo('d0'+ArgSeparator+'i320',ClassFileName,'file','y'); +PrintStringInfo('u80'+ArgSeparator+'i320',ClassFileName,'file','y'); +PrintStringInfo('i80'+ArgSeparator+'i320',ClassFileName,'file','y'); +PrintStringInfo('u160'+ArgSeparator+'i320',ClassFileName,'file','y'); +PrintStringInfo('i160'+ArgSeparator+'i320',ClassFileName,'file','y'); +PrintStringInfo('u320'+ArgSeparator+'i320',ClassFileName,'file','y'); +PrintStringInfo('s2'+ArgSeparator+'i322',ClassFileName,'file','y'); +PrintStringInfo('d2'+ArgSeparator+'i322',ClassFileName,'file','y'); +PrintStringInfo('u82'+ArgSeparator+'i322',ClassFileName,'file','y'); +PrintStringInfo('i82'+ArgSeparator+'i322',ClassFileName,'file','y'); +PrintStringInfo('u162'+ArgSeparator+'i322',ClassFileName,'file','y'); +PrintStringInfo('i162'+ArgSeparator+'i322',ClassFileName,'file','y'); +PrintStringInfo('u322'+ArgSeparator+'i322',ClassFileName,'file','y'); + +// --- Annotation Function And Function List Function. --- +FunctionName = 'int32'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); + // ------------------ // --- Class Sin. --- // ------------------ @@ -5149,9 +5225,6 @@ INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,Ex - - - //------------------------------------ //---- Class AVRUARTReceiveChar ----------- //------------------------------------ @@ -5168,8 +5241,6 @@ PrintStringInfo('OUT(1).SZ(2)= ''1''',ClassFileName,'file','y'); // --- Function List Class. --- ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls); -//PrintStringInfo('d0d0d0'+ArgSeparator+'u80',ClassFileName,'file','y'); -//PrintStringInfo('d0d0u80'+ArgSeparator+'u80',ClassFileName,'file','y'); PrintStringInfo(''+ArgSeparator+'',ClassFileName,'file','y'); // --- Annotation Function And Function List Function. --- @@ -5180,321 +5251,917 @@ INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,Ex + //------------------------------------ -//---- Class RPI_DigitalSetup -------- +//---- Class RPI_0IN_Void ---------- //------------------------------------ -ClassName = 'RPI_DigitalSetup'; +ClassName = 'RPI_0IN_Void'; // --- Class Annotation. --- PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y'); ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls); -PrintStringInfo('NIN= 2',ClassFileName,'file','y'); -PrintStringInfo('NOUT= 0 ',ClassFileName,'file','y'); +PrintStringInfo('NIN= 0',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 0',ClassFileName,'file','y'); PrintStringInfo('OUT(1).TP= ''u8''',ClassFileName,'file','y'); PrintStringInfo('OUT(1).SZ(1)= ''1''',ClassFileName,'file','y'); PrintStringInfo('OUT(1).SZ(2)= ''1''',ClassFileName,'file','y'); + // --- Function List Class. --- ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls); PrintStringInfo(''+ArgSeparator+'',ClassFileName,'file','y'); // --- Annotation Function And Function List Function. --- -FunctionName = 'RPI_DigitalSetup'; +FunctionName = 'RPI_gertBoardSPISetup'; PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); -FunctionName = 'RPI_DigitalOut'; +//------------------------------------ +//---- Class RPI_0IN_u8 ------------ +//------------------------------------ +ClassName = 'RPI_0IN_u8'; + +// --- Class Annotation. --- +PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y'); +ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls); +PrintStringInfo('NIN= 0',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 1',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).TP= ''u8''',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(1)= ''1''',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(2)= ''1''',ClassFileName,'file','y'); + +// --- Function List Class. --- +ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls); +PrintStringInfo(''+ArgSeparator+'u80',ClassFileName,'file','y'); + +// --- Annotation Function And Function List Function. --- +FunctionName = 'RPI_boardRev'; PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); - -FunctionName = 'RPI_HardPWMWrite'; +FunctionName = 'RPI_digitalReadByte'; PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); //------------------------------------ -//---- Class RPI_DigitalIn ----------- +//---- Class RPI_0IN_u32 ----------- //------------------------------------ -ClassName = 'RPI_DigitalIn'; +ClassName = 'RPI_0IN_u32'; // --- Class Annotation. --- PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y'); ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls); -PrintStringInfo('NIN= 1',ClassFileName,'file','y'); -PrintStringInfo('NOUT= 1 ',ClassFileName,'file','y'); -PrintStringInfo('OUT(1).TP= ''u8''',ClassFileName,'file','y'); +PrintStringInfo('NIN= 0',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 1',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).TP= ''u32''',ClassFileName,'file','y'); PrintStringInfo('OUT(1).SZ(1)= ''1''',ClassFileName,'file','y'); PrintStringInfo('OUT(1).SZ(2)= ''1''',ClassFileName,'file','y'); // --- Function List Class. --- ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls); - -PrintStringInfo(''+ArgSeparator+'',ClassFileName,'file','y'); +PrintStringInfo(''+ArgSeparator+'u320',ClassFileName,'file','y'); // --- Annotation Function And Function List Function. --- -FunctionName = 'RPI_DigitalIn'; +FunctionName = 'RPI_millis'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); +FunctionName = 'RPI_micros'; PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); //------------------------------------ -//---- Class RPI_DelayMilli ---------- +//---- Class RPI_1IN_u8_Void ------- //------------------------------------ -ClassName = 'RPI_DelayMilli'; +ClassName = 'RPI_1IN_u8_Void'; -//--- Class Annotation. --- +// --- Class Annotation. --- PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y'); ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls); PrintStringInfo('NIN= 1',ClassFileName,'file','y'); -PrintStringInfo('NOUT= 0 ',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 0',ClassFileName,'file','y'); PrintStringInfo('OUT(1).TP= ''u8''',ClassFileName,'file','y'); PrintStringInfo('OUT(1).SZ(1)= ''1''',ClassFileName,'file','y'); PrintStringInfo('OUT(1).SZ(2)= ''1''',ClassFileName,'file','y'); -//--- Function List Class. --- +// --- Function List Class. --- ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls); - -PrintStringInfo(''+ArgSeparator+'',ClassFileName,'file','y'); +PrintStringInfo('u80'+ArgSeparator+'',ClassFileName,'file','y'); // --- Annotation Function And Function List Function. --- -FunctionName = 'RPI_DelayMilli'; +FunctionName = 'RPI_digitalWriteByte'; PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); - -FunctionName = 'RPI_DelayMicro'; +FunctionName = 'RPI_lcdClear'; PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); - -FunctionName = 'RPI_SerialClose'; +FunctionName = 'RPI_lcdHome'; PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); - -FunctionName = 'RPI_SerialFlush'; +FunctionName = 'RPI_piGlowSetup'; PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); - -FunctionName = 'RPI_HardPWMSetRange'; +FunctionName = 'RPI_serialClose'; PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); - -FunctionName = 'RPI_HardPWMSetClock'; +FunctionName = 'RPI_serialFlush'; PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); - -FunctionName = 'RPI_HardPWMSetMode'; +FunctionName = 'RPI_softPwmStop'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); +FunctionName = 'RPI_softToneStop'; PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); //------------------------------------ -//---- Class RPI_GetMilli ---------- +//---- Class RPI_1IN_u16_Void ------ //------------------------------------ -ClassName = 'RPI_GetMilli'; +ClassName = 'RPI_1IN_u16_Void'; // --- Class Annotation. --- PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y'); ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls); -PrintStringInfo('NIN= 0',ClassFileName,'file','y'); -PrintStringInfo('NOUT= 1 ',ClassFileName,'file','y'); -PrintStringInfo('OUT(1).TP= ''u32''',ClassFileName,'file','y'); +PrintStringInfo('NIN= 1',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 0',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).TP= ''u8''',ClassFileName,'file','y'); PrintStringInfo('OUT(1).SZ(1)= ''1''',ClassFileName,'file','y'); PrintStringInfo('OUT(1).SZ(2)= ''1''',ClassFileName,'file','y'); // --- Function List Class. --- ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls); - -PrintStringInfo(''+ArgSeparator+'',ClassFileName,'file','y'); +PrintStringInfo('u160'+ArgSeparator+'',ClassFileName,'file','y'); // --- Annotation Function And Function List Function. --- -FunctionName = 'RPI_GetMillis'; +FunctionName = 'RPI_pwmClock'; PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); -FunctionName = 'RPI_GetMicros'; +//------------------------------------ +//---- Class RPI_1IN_u32_Void ------ +//------------------------------------ +ClassName = 'RPI_1IN_u32_Void'; + +// --- Class Annotation. --- +PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y'); +ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls); +PrintStringInfo('NIN= 1',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 0',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).TP= ''u8''',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(1)= ''1''',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(2)= ''1''',ClassFileName,'file','y'); + +// --- Function List Class. --- +ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls); +PrintStringInfo('u320'+ArgSeparator+'',ClassFileName,'file','y'); + +// --- Annotation Function And Function List Function. --- +FunctionName = 'RPI_pwmRange'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); +FunctionName = 'RPI_delay'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); +FunctionName = 'RPI_delayMicro'; PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); //------------------------------------ -//---- Class RPI_SetupSerial ---------- +//---- Class RPI_1IN_g_Void -------- //------------------------------------ -ClassName = 'RPI_SetupSerial'; +ClassName = 'RPI_1IN_g_Void'; // --- Class Annotation. --- PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y'); ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls); -PrintStringInfo('NIN= 2',ClassFileName,'file','y'); -PrintStringInfo('NOUT= 1 ',ClassFileName,'file','y'); -PrintStringInfo('OUT(1).TP= ''u16''',ClassFileName,'file','y'); +PrintStringInfo('NIN= 1',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 0',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).TP= ''u8''',ClassFileName,'file','y'); PrintStringInfo('OUT(1).SZ(1)= ''1''',ClassFileName,'file','y'); PrintStringInfo('OUT(1).SZ(2)= ''1''',ClassFileName,'file','y'); // --- Function List Class. --- ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls); - -PrintStringInfo(''+ArgSeparator+'',ClassFileName,'file','y'); +PrintStringInfo('g2'+ArgSeparator+'',ClassFileName,'file','y'); // --- Annotation Function And Function List Function. --- -FunctionName = 'RPI_SerialSetup'; +FunctionName = 'RPI_pwmMode'; PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); //------------------------------------ -//---- Class RPI_SetupClose ---------- +//---- Class RPI_1IN_u8_i8 --------- //------------------------------------ -//ClassName = 'RPI_SetupClose'; +ClassName = 'RPI_1IN_u8_i8'; // --- Class Annotation. --- -//PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y'); -//ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls); -//PrintStringInfo('NIN= 1',ClassFileName,'file','y'); -//PrintStringInfo('NOUT= 1 ',ClassFileName,'file','y'); -//PrintStringInfo('OUT(1).TP= ''u8''',ClassFileName,'file','y'); -//PrintStringInfo('OUT(1).SZ(1)= ''1''',ClassFileName,'file','y'); -//PrintStringInfo('OUT(1).SZ(2)= ''1''',ClassFileName,'file','y'); +PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y'); +ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls); +PrintStringInfo('NIN= 1',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 1',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).TP= ''i8''',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(1)= ''1''',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(2)= ''1''',ClassFileName,'file','y'); // --- Function List Class. --- -//ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls); - -//PrintStringInfo(''+ArgSeparator+'',ClassFileName,'file','y'); +ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls); +PrintStringInfo('u80'+ArgSeparator+'i80',ClassFileName,'file','y'); // --- Annotation Function And Function List Function. --- -//FunctionName = 'RPI_SerialClose'; -//PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); -//INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); -//INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); -//FunctionName = 'RPI_SerialFlush'; -//PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); -//INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); -//INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); +FunctionName = 'RPI_I2CSetup'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); +FunctionName = 'RPI_wpiToGpio'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); +FunctionName = 'RPI_physToGpio'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); //------------------------------------ -//---- Class RPI_SerialSendData ---------- +//---- Class RPI_1IN_u16_i8 -------- //------------------------------------ -ClassName = 'RPI_SerialSendData'; +ClassName = 'RPI_1IN_u16_i8'; // --- Class Annotation. --- PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y'); ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls); -PrintStringInfo('NIN= 2',ClassFileName,'file','y'); -PrintStringInfo('NOUT= 0 ',ClassFileName,'file','y'); -PrintStringInfo('OUT(1).TP= ''u8''',ClassFileName,'file','y'); +PrintStringInfo('NIN= 1',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 1',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).TP= ''i8''',ClassFileName,'file','y'); PrintStringInfo('OUT(1).SZ(1)= ''1''',ClassFileName,'file','y'); PrintStringInfo('OUT(1).SZ(2)= ''1''',ClassFileName,'file','y'); // --- Function List Class. --- ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls); +PrintStringInfo('u160'+ArgSeparator+'i80',ClassFileName,'file','y'); -PrintStringInfo('u80u80'+ArgSeparator+'u80',ClassFileName,'file','y'); -PrintStringInfo('u80i80'+ArgSeparator+'u80',ClassFileName,'file','y'); -PrintStringInfo('u80u160'+ArgSeparator+'u80',ClassFileName,'file','y'); -PrintStringInfo('u80i160'+ArgSeparator+'u80',ClassFileName,'file','y'); -PrintStringInfo('u80s0'+ArgSeparator+'u80',ClassFileName,'file','y'); -PrintStringInfo('u80d0'+ArgSeparator+'u80',ClassFileName,'file','y'); +// --- Annotation Function And Function List Function. --- +FunctionName = 'RPI_I2CRead'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); +FunctionName = 'RPI_gertboardAnalogSetup'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); +FunctionName = 'RPI_sn3218Setup'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); -PrintStringInfo('u80u82'+ArgSeparator+'u80',ClassFileName,'file','y'); -PrintStringInfo('u80i82'+ArgSeparator+'u80',ClassFileName,'file','y'); -PrintStringInfo('u80u162'+ArgSeparator+'u80',ClassFileName,'file','y'); -PrintStringInfo('u80i162'+ArgSeparator+'u80',ClassFileName,'file','y'); -PrintStringInfo('u80s2'+ArgSeparator+'u80',ClassFileName,'file','y'); -PrintStringInfo('u80d2'+ArgSeparator+'u80',ClassFileName,'file','y'); -PrintStringInfo('u80g2'+ArgSeparator+'u80',ClassFileName,'file','y'); +//------------------------------------ +//---- Class RPI_1IN_g_i8 ---------- +//------------------------------------ +ClassName = 'RPI_1IN_g_i8'; + +// --- Class Annotation. --- +PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y'); +ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls); +PrintStringInfo('NIN= 1',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 1',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).TP= ''i8''',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(1)= ''1''',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(2)= ''1''',ClassFileName,'file','y'); + +// --- Function List Class. --- +ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls); +PrintStringInfo('g2'+ArgSeparator+'i80',ClassFileName,'file','y'); // --- Annotation Function And Function List Function. --- -FunctionName = 'RPI_SerialSendData'; +FunctionName = 'RPI_pinNumbering'; PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); //------------------------------------ -//---- Class RPI_SerialDataAvail ---------- +//---- Class RPI_1IN_u8_u8 --------- //------------------------------------ -ClassName = 'RPI_SerialDataAvail'; +ClassName = 'RPI_1IN_u8_u8'; // --- Class Annotation. --- PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y'); ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls); PrintStringInfo('NIN= 1',ClassFileName,'file','y'); -PrintStringInfo('NOUT= 1 ',ClassFileName,'file','y'); -PrintStringInfo('OUT(1).TP= ''i16''',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 1',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).TP= ''u8''',ClassFileName,'file','y'); PrintStringInfo('OUT(1).SZ(1)= ''1''',ClassFileName,'file','y'); PrintStringInfo('OUT(1).SZ(2)= ''1''',ClassFileName,'file','y'); // --- Function List Class. --- ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls); - -PrintStringInfo(''+ArgSeparator+'',ClassFileName,'file','y'); +PrintStringInfo('u80'+ArgSeparator+'u80',ClassFileName,'file','y'); // --- Annotation Function And Function List Function. --- -FunctionName = 'RPI_SerialDataAvail'; +FunctionName = 'RPI_getAlt'; PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); -FunctionName = 'RPI_SerialGetChar'; +FunctionName = 'RPI_digitalRead'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); +FunctionName = 'RPI_serialDataAvail'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); +FunctionName = 'RPI_softToneCreate'; PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); - //------------------------------------ -//---- Class RPI_ThreadCreate ---------- +//---- Class RPI_1IN_u16_u16 ------- //------------------------------------ -ClassName = 'RPI_ThreadCreate'; +ClassName = 'RPI_1IN_u16_u16'; // --- Class Annotation. --- PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y'); ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls); PrintStringInfo('NIN= 1',ClassFileName,'file','y'); -PrintStringInfo('NOUT= 1 ',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 1',ClassFileName,'file','y'); PrintStringInfo('OUT(1).TP= ''u16''',ClassFileName,'file','y'); PrintStringInfo('OUT(1).SZ(1)= ''1''',ClassFileName,'file','y'); PrintStringInfo('OUT(1).SZ(2)= ''1''',ClassFileName,'file','y'); // --- Function List Class. --- ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls); - -PrintStringInfo(''+ArgSeparator+'',ClassFileName,'file','y'); +PrintStringInfo('u160'+ArgSeparator+'u160',ClassFileName,'file','y'); // --- Annotation Function And Function List Function. --- -FunctionName = 'RPI_ThreadCreate'; +FunctionName = 'RPI_gertboardAnalogRead'; PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); //------------------------------------ -//---- Class RPI_PinISR -------------- +//---- Class RPI_1IN_u8_g ------ //------------------------------------ -ClassName = 'RPI_PinISR'; +ClassName = 'RPI_1IN_u8_g'; // --- Class Annotation. --- PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y'); ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls); -PrintStringInfo('NIN= 3',ClassFileName,'file','y'); -PrintStringInfo('NOUT= 1 ',ClassFileName,'file','y'); -PrintStringInfo('OUT(1).TP= ''i16''',ClassFileName,'file','y'); +PrintStringInfo('NIN= 1',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 1',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).TP= ''g''',ClassFileName,'file','y'); PrintStringInfo('OUT(1).SZ(1)= ''1''',ClassFileName,'file','y'); PrintStringInfo('OUT(1).SZ(2)= ''1''',ClassFileName,'file','y'); // --- Function List Class. --- ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls); +PrintStringInfo('u80'+ArgSeparator+'g2',ClassFileName,'file','y'); -PrintStringInfo(''+ArgSeparator+'',ClassFileName,'file','y'); +// --- Annotation Function And Function List Function. --- +FunctionName = 'RPI_serialGetchar'; + +//------------------------------------ +//---- Class RPI_2IN_u8u8_Void ----- +//------------------------------------ +ClassName = 'RPI_2IN_u8u8_Void'; + +// --- Class Annotation. --- +PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y'); +ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls); +PrintStringInfo('NIN= 2',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 0',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).TP= ''u8''',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(1)= ''1''',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(2)= ''1''',ClassFileName,'file','y'); + +// --- Function List Class. --- +ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls); +PrintStringInfo('u80u80'+ArgSeparator+'',ClassFileName,'file','y'); // --- Annotation Function And Function List Function. --- -FunctionName = 'RPI_PinISR'; +FunctionName = 'RPI_pinModeAlt'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); +FunctionName = 'RPI_lcdCursor'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); +FunctionName = 'RPI_lcdSendCommand'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); +FunctionName = 'RPI_lcdCursorBlink'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); +FunctionName = 'RPI_lcdDisplay'; PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); +FunctionName = 'RPI_lcdPutchar'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); +FunctionName = 'RPI_padDrive'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); +FunctionName = 'RPI_piGlowLeg'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); +FunctionName = 'RPI_piGlowRing'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); +FunctionName = 'RPI_digitalWrite'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); +FunctionName = 'RPI_serialPutchar'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); + +//------------------------------------ +//---- Class RPI_2IN_u8u16_Void ---- +//------------------------------------ +ClassName = 'RPI_2IN_u8u16_Void'; + +// --- Class Annotation. --- +PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y'); +ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls); +PrintStringInfo('NIN= 2',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 0',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).TP= ''u8''',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(1)= ''1''',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(2)= ''1''',ClassFileName,'file','y'); + +// --- Function List Class. --- +ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls); +PrintStringInfo('u80u160'+ArgSeparator+'',ClassFileName,'file','y'); + +// --- Annotation Function And Function List Function. --- +FunctionName = 'RPI_pwmWrite'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); +FunctionName = 'RPI_pwmToneWrite'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); +FunctionName = 'RPI_softPwmWrite'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); + +//------------------------------------ +//---- Class RPI_2IN_u16u16_Void --- +//------------------------------------ +ClassName = 'RPI_2IN_u16u16_Void'; + +// --- Class Annotation. --- +PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y'); +ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls); +PrintStringInfo('NIN= 2',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 0',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).TP= ''u8''',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(1)= ''1''',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(2)= ''1''',ClassFileName,'file','y'); + +// --- Function List Class. --- +ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls); +PrintStringInfo('u160u160'+ArgSeparator+'',ClassFileName,'file','y'); + +// --- Annotation Function And Function List Function. --- +FunctionName = 'RPI_gertboardAnalogWrite'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); + +//------------------------------------ +//---- Class RPI_2IN_u8g_Void ------ +//------------------------------------ +ClassName = 'RPI_2IN_u8g_Void'; + +// --- Class Annotation. --- +PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y'); +ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls); +PrintStringInfo('NIN= 2',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 0',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).TP= ''u8''',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(1)= ''1''',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(2)= ''1''',ClassFileName,'file','y'); + +// --- Function List Class. --- +ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls); +PrintStringInfo('u80g2'+ArgSeparator+'',ClassFileName,'file','y'); + +// --- Annotation Function And Function List Function. --- +FunctionName = 'RPI_pinMode'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); +FunctionName = 'RPI_lcdPuts'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); +FunctionName = 'RPI_lcdPrintf'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); +FunctionName = 'RPI_pullControl'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); +FunctionName = 'RPI_serialPrintf'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); +FunctionName = 'RPI_serialPuts'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); + +//------------------------------------ +//---- Class RPI_2IN_u8u32_Void ---- +//------------------------------------ +ClassName = 'RPI_2IN_u8u32_Void'; + +// --- Class Annotation. --- +PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y'); +ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls); +PrintStringInfo('NIN= 2',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 0',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).TP= ''u8''',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(1)= ''1''',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(2)= ''1''',ClassFileName,'file','y'); + +// --- Function List Class. --- +ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls); +PrintStringInfo('u80u320'+ArgSeparator+'',ClassFileName,'file','y'); + +// --- Annotation Function And Function List Function. --- +FunctionName = 'RPI_softToneWrite'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); + +//------------------------------------ +//---- Class RPI_2IN_u8i16_i8 ------ +//------------------------------------ +ClassName = 'RPI_2IN_u8i16_i8'; + +// --- Class Annotation. --- +PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y'); +ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls); +PrintStringInfo('NIN= 2',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 1',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).TP= ''i8''',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(1)= ''1''',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(2)= ''1''',ClassFileName,'file','y'); + +// --- Function List Class. --- +ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls); +PrintStringInfo('u80i160'+ArgSeparator+'i80',ClassFileName,'file','y'); + +// --- Annotation Function And Function List Function. --- +FunctionName = 'RPI_waitForInterrupt'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); + +//------------------------------------ +//---- Class RPI_2IN_u16u16_i8 ----- +//------------------------------------ +ClassName = 'RPI_2IN_u16u16_i8'; + +// --- Class Annotation. --- +PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y'); +ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls); +PrintStringInfo('NIN= 2',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 1',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).TP= ''i8''',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(1)= ''1''',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(2)= ''1''',ClassFileName,'file','y'); + +// --- Function List Class. --- +ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls); +PrintStringInfo('u160u160'+ArgSeparator+'i80',ClassFileName,'file','y'); + +// --- Annotation Function And Function List Function. --- +FunctionName = 'RPI_I2CWrite'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); +FunctionName = 'RPI_I2CReadReg8'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); +FunctionName = 'RPI_I2CReadReg16'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); + +//------------------------------------ +//---- Class RPI_2IN_gu32_i8 ----- +//------------------------------------ +ClassName = 'RPI_2IN_gu32_i8'; + +// --- Class Annotation. --- +PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y'); +ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls); +PrintStringInfo('NIN= 2',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 1',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).TP= ''i8''',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(1)= ''1''',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(2)= ''1''',ClassFileName,'file','y'); + +// --- Function List Class. --- +ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls); +PrintStringInfo('g2u320'+ArgSeparator+'i80',ClassFileName,'file','y'); + +// --- Annotation Function And Function List Function. --- +FunctionName = 'RPI_serialOpen'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); + +//------------------------------------ +//---- Class RPI_2IN_u16u8_u8 ----- +//------------------------------------ +ClassName = 'RPI_2IN_u16u8_u8'; + +// --- Class Annotation. --- +PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y'); +ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls); +PrintStringInfo('NIN= 2',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 1',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).TP= ''i8''',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(1)= ''1''',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(2)= ''1''',ClassFileName,'file','y'); + +// --- Function List Class. --- +ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls); +PrintStringInfo('u160u80'+ArgSeparator+'u80',ClassFileName,'file','y'); + +// --- Annotation Function And Function List Function. --- +FunctionName = 'RPI_pcf8574Setup'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); +FunctionName = 'RPI_pcf8591Setup'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); +FunctionName = 'RPI_mcp23008Setup'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); +FunctionName = 'RPI_mcp23016Setup'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); +FunctionName = 'RPI_mcp23017Setup'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); + +//------------------------------------ +//---- Class RPI_3IN_u8u8u8_Void --- +//------------------------------------ +ClassName = 'RPI_3IN_u8u8u8_Void'; + +// --- Class Annotation. --- +PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y'); +ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls); +PrintStringInfo('NIN= 3',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 1',ClassFileName,'file','y'); + +// --- Function List Class. --- +ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls); +PrintStringInfo('u80u80u80'+ArgSeparator+'',ClassFileName,'file','y'); + +// --- Annotation Function And Function List Function. --- +FunctionName = 'RPI_lcdPosition'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); +FunctionName = 'RPI_piGlow1'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); + +//------------------------------------ +//---- Class RPI_3IN_u16u16u16_i8 -- +//------------------------------------ +ClassName = 'RPI_3IN_u16u16u16_i8'; + +// --- Class Annotation. --- +PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y'); +ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls); +PrintStringInfo('NIN= 3',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 1',ClassFileName,'file','y'); + +// --- Function List Class. --- +ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls); +PrintStringInfo('u160u160u160'+ArgSeparator+'i80',ClassFileName,'file','y'); + +// --- Annotation Function And Function List Function. --- +FunctionName = 'RPI_I2CWriteReg8'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); +FunctionName = 'RPI_I2CWriteReg16'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); + +//------------------------------------ +//---- Class RPI_3IN_u8u8u8_u8 ----- +//------------------------------------ +ClassName = 'RPI_3IN_u8u8u8_u8'; + +// --- Class Annotation. --- +PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y'); +ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls); +PrintStringInfo('NIN= 3',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 1',ClassFileName,'file','y'); + +// --- Function List Class. --- +ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls); +PrintStringInfo('u80u80u80'+ArgSeparator+'u80',ClassFileName,'file','y'); + +// --- Annotation Function And Function List Function. --- +FunctionName = 'RPI_shiftIn'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); + +//------------------------------------ +//---- Class RPI_3IN_u8u16u16_u8 --- +//------------------------------------ +ClassName = 'RPI_3IN_u8u16u16_u8'; + +// --- Class Annotation. --- +PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y'); +ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls); +PrintStringInfo('NIN= 3',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 1',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).TP= ''u8''',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(1)= ''1''',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(2)= ''1''',ClassFileName,'file','y'); + +// --- Function List Class. --- +ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls); +PrintStringInfo('u80u160u160'+ArgSeparator+'u80',ClassFileName,'file','y'); + +// --- Annotation Function And Function List Function. --- +FunctionName = 'RPI_softPwmCreate'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); + +//------------------------------------ +//---- Class RPI_3IN_u16u8u16_u8 --- +//------------------------------------ +ClassName = 'RPI_3IN_u16u8u16_u8'; + +// --- Class Annotation. --- +PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y'); +ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls); +PrintStringInfo('NIN= 3',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 1',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).TP= ''u8''',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(1)= ''1''',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(2)= ''1''',ClassFileName,'file','y'); + +// --- Function List Class. --- +ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls); +PrintStringInfo('u160u160u160'+ArgSeparator+'u80',ClassFileName,'file','y'); + +// --- Annotation Function And Function List Function. --- +FunctionName = 'RPI_mcp23s08Setup'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); +FunctionName = 'RPI_mcp23s17Setup'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); + +//------------------------------------ +//---- Class RPI_4IN_u8u8u8u8_Void - +//------------------------------------ +ClassName = 'RPI_4IN_u8u8u8u8_Void'; + +// --- Class Annotation. --- +PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y'); +ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls); +PrintStringInfo('NIN= 4',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 0',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).TP= ''u8''',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(1)= ''1''',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(2)= ''1''',ClassFileName,'file','y'); + +// --- Function List Class. --- +ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls); +PrintStringInfo('u80u80u80u80'+ArgSeparator+'',ClassFileName,'file','y'); + +// --- Annotation Function And Function List Function. --- +FunctionName = 'RPI_shiftOut'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); + +//-------------------------------------- +//---- Class RPI_5IN_u16u8u8u8u8_i8 -- +//-------------------------------------- +ClassName = 'RPI_5IN_u16u8u8u8u8_i8'; + +// --- Class Annotation. --- +PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y'); +ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls); +PrintStringInfo('NIN= 5',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 1',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).TP= ''i8''',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(1)= ''1''',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(2)= ''1''',ClassFileName,'file','y'); + +// --- Function List Class. --- +ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls); +PrintStringInfo('u160u80u80u80u80'+ArgSeparator+'i80',ClassFileName,'file','y'); + +// --- Annotation Function And Function List Function. --- +FunctionName = 'RPI_sr595Setup'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); + +//------------------------------------ +//---- Class RPI_10IN_u8x10_Void --- +//------------------------------------ +ClassName = 'RPI_10IN_u8x10_Void'; + +// --- Class Annotation. --- +PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y'); +ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls); +PrintStringInfo('NIN= 10',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 0',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).TP= ''u8''',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(1)= ''1''',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(2)= ''1''',ClassFileName,'file','y'); + +// --- Function List Class. --- +ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls); +PrintStringInfo('u80u80u80u80u80u80u80u80u80u80'+ArgSeparator+'',ClassFileName,'file','y'); + +// --- Annotation Function And Function List Function. --- +FunctionName = 'RPI_lcdCharDef'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); + +//------------------------------------ +//---- Class RPI_13IN_u8x13_u8 ----- +//------------------------------------ +ClassName = 'RPI_13IN_u8x13_u8'; + +// --- Class Annotation. --- +PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y'); +ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls); +PrintStringInfo('NIN= 10',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 1',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).TP= ''u8''',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(1)= ''1''',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(2)= ''1''',ClassFileName,'file','y'); + +// --- Function List Class. --- +ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls); +PrintStringInfo('u80u80u80u80u80u80u80u80u80u80u80u80u80'+ArgSeparator+'u80',ClassFileName,'file','y'); + +// --- Annotation Function And Function List Function. --- +FunctionName = 'RPI_lcdInit'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); + + //------------------------------------ //---- Class ODE --------------------- diff --git a/macros/ToolInitialization/lib b/macros/ToolInitialization/lib index 4d03bdc5..b4603969 100644 Binary files a/macros/ToolInitialization/lib and b/macros/ToolInitialization/lib differ diff --git a/macros/buildmacros.sce b/macros/buildmacros.sce index f02096d9..e78b15bb 100644 --- a/macros/buildmacros.sce +++ b/macros/buildmacros.sce @@ -9,9 +9,9 @@ Directories = [ "ASTManagement", ... "GeneralFunctions", ... "SymbolTable", ... "ToolInitialization", ... - "Hardware/AVR", ... - "Hardware/RasberryPi", ... - "ImageProcessing", ... + "Hardware/AVR", ... + "Hardware/RasberryPi", ... + "ImageProcessing", ... "Scilab-Arduino"]; diff --git a/macros/cb_sci2c_gui.sci b/macros/cb_sci2c_gui.sci index 8f3f92ad..62424b3d 100644 --- a/macros/cb_sci2c_gui.sci +++ b/macros/cb_sci2c_gui.sci @@ -98,7 +98,7 @@ elseif get(gcbo, "tag")=="cancelbtn" | get(gcbo, "tag")=="close_menu" then elseif get(gcbo, "tag")=="convertbtn" then UserScilabMainFile = get(findobj("tag", "fileedit"), "string"); - UserSciFilesPaths = get(findobj("tag", "subfunsedit"), "string"); + UserSciFilesPaths = get(findobj("tag", "subfunsedit"), "string"); // Sci2CLibMainHeaderFName = get(findobj("tag", "headeredit"), "string"); @@ -133,13 +133,14 @@ elseif get(gcbo, "tag")=="convertbtn" then end // -*- DEBUG ONLY -*- - -// mprintf("UserScilabMainFile = {%s}\n", UserScilabMainFile); -// mprintf("UserSciFilesPaths = {%s}\n", UserSciFilesPaths); -// mprintf("UserSciCodeMainDir = {%s}\n", UserSciCodeMainDir); -// mprintf("RunMode = {%s}\n", RunMode); -// mprintf("CopySciCodeIntoCCode = {%d}\n", bool2s(CopySciCodeIntoCCode)); -// mprintf("NativeBuild = {%s}\n", NativeBuild); + + //mprintf("UserScilabMainFile = {%s}\n", UserScilabMainFile); + //mprintf("UserSciFilesPaths = {%s}\n", UserSciFilesPaths); + //mprintf("UserSciCodeMainDir = {%s}\n", UserSciCodeMainDir); + //mprintf("RunMode = {%s}\n", RunMode); + //mprintf("CopySciCodeIntoCCode = {%d}\n", bool2s(CopySciCodeIntoCCode)); + //mprintf("NativeBuild = {%s}\n", NativeBuild); + scilab2c(UserScilabMainFile, UserSciCodeMainDir, UserSciFilesPaths, RunMode, NativeBuild,Target); // // --- sci2c help --- diff --git a/macros/findDeps/getAllHeaders.sci b/macros/findDeps/getAllHeaders.sci index b7f26b33..2c9d3196 100644 --- a/macros/findDeps/getAllHeaders.sci +++ b/macros/findDeps/getAllHeaders.sci @@ -111,6 +111,8 @@ function allHeaders = getAllHeaders(SharedInfo) "src/c/elementaryFunctions/includes/int8.h" "src/c/elementaryFunctions/includes/uint16.h" "src/c/elementaryFunctions/includes/int16.h" + "src/c/elementaryFunctions/includes/uint32.h" + "src/c/elementaryFunctions/includes/int32.h" "src/c/elementaryFunctions/includes/acosd.h" "src/c/elementaryFunctions/includes/acot.h" "src/c/elementaryFunctions/includes/acotd.h" @@ -219,13 +221,39 @@ function allHeaders = getAllHeaders(SharedInfo) RPi_headers = [ "thirdparty/includes/WiringPi/wiringPi.h" "thirdparty/includes/WiringPi/wiringSerial.h" + "thirdparty/includes/WiringPi/gertboard.h" + "thirdparty/includes/WiringPi/lcd.h" + "thirdparty/includes/WiringPi/mcp23s08.h" + "thirdparty/includes/WiringPi/mcp23s17.h" + "thirdparty/includes/WiringPi/mcp23008.h" + "thirdparty/includes/WiringPi/mcp23016.h" + "thirdparty/includes/WiringPi/mcp23017.h" + "thirdparty/includes/WiringPi/pcf8574.h" + "thirdparty/includes/WiringPi/pcf8591.h" + "thirdparty/includes/WiringPi/piGlow.h" + "thirdparty/includes/WiringPi/sn3218.h" + "thirdparty/includes/WiringPi/sr595.h" + "thirdparty/includes/WiringPi/softPwm.h" + "thirdparty/includes/WiringPi/softTone.h" + "thirdparty/includes/WiringPi/wiringPiI2C.h" + "thirdparty/includes/WiringPi/wiringShift.h" "src/c/hardware/rasberrypi/includes/RPIPeripheralDigital.h" - "src/c/hardware/rasberrypi/includes/RPIPeripheralTiming.h" - "src/c/hardware/rasberrypi/includes/RPIPeripheralSerial.h" - "src/c/hardware/rasberrypi/includes/RPIPeripheralThreading.h" - "src/c/hardware/rasberrypi/includes/RPIPeripheralPinISR.h" + "src/c/hardware/rasberrypi/includes/RPIPeripheralGertboard.h" + "src/c/hardware/rasberrypi/includes/RPIPeripheralI2C.h" + "src/c/hardware/rasberrypi/includes/RPIPeripheralInterrupt.h" + "src/c/hardware/rasberrypi/includes/RPIPeripheralLCD.h" + "src/c/hardware/rasberrypi/includes/RPIPeripheralMcp.h" + "src/c/hardware/rasberrypi/includes/RPIPeripheralMisc.h" + "src/c/hardware/rasberrypi/includes/RPIPeripheralPcf.h" + "src/c/hardware/rasberrypi/includes/RPIPeripheralPiGlow.h" + "src/c/hardware/rasberrypi/includes/RPIPeripheralPinMap.h" "src/c/hardware/rasberrypi/includes/RPIPeripheralPWM.h" - ]; + "src/c/hardware/rasberrypi/includes/RPIPeripheralSerial.h" + "src/c/hardware/rasberrypi/includes/RPIPeripheralSetup.h" + "src/c/hardware/rasberrypi/includes/RPIPeripheralShift.h" + "src/c/hardware/rasberrypi/includes/RPIPeripheralSoft.h" + "src/c/hardware/rasberrypi/includes/RPIPeripheralTiming.h" + ]; OpenCV_headers = [ "src/c/imageProcessing/includes/cvcore.hpp" diff --git a/macros/findDeps/getAllInterfaces.sci b/macros/findDeps/getAllInterfaces.sci index c5c31165..885fa8aa 100644 --- a/macros/findDeps/getAllInterfaces.sci +++ b/macros/findDeps/getAllInterfaces.sci @@ -100,6 +100,8 @@ function allInterfaces = getAllInterfaces(SharedInfo) "src/c/elementaryFunctions/interfaces/int_int8.h" "src/c/elementaryFunctions/interfaces/int_uint16.h" "src/c/elementaryFunctions/interfaces/int_int16.h" + "src/c/elementaryFunctions/interfaces/int_uint32.h" + "src/c/elementaryFunctions/interfaces/int_int32.h" "src/c/elementaryFunctions/interfaces/int_acosd.h" "src/c/elementaryFunctions/interfaces/int_acot.h" "src/c/elementaryFunctions/interfaces/int_acotd.h" @@ -211,12 +213,22 @@ function allInterfaces = getAllInterfaces(SharedInfo) RPI_interfaces = [ "src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralDigital.h" - "src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralTiming.h" - "src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralSerial.h" - "src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralThreading.h" - "src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralPinISR.h" + "src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralGertboard.h" + "src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralI2C.h" + "src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralInterrupt.h" + "src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralLCD.h" + "src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralMcp.h" + "src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralMisc.h" + "src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralPcf.h" + "src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralPiGlow.h" + "src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralPinMap.h" "src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralPWM.h" - ]; + "src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralSerial.h" + "src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralSetup.h" + "src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralShift.h" + "src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralSoft.h" + "src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralTiming.h" + ]; OpenCV_interfaces = [ "src/c/imageProcessing/interfaces/int_cvcore.hpp" diff --git a/macros/findDeps/getAllLibraries.sci b/macros/findDeps/getAllLibraries.sci index 14fc020a..c0f07d53 100644 --- a/macros/findDeps/getAllLibraries.sci +++ b/macros/findDeps/getAllLibraries.sci @@ -24,7 +24,8 @@ function allLibraries = getAllLibraries(SharedInfo) Target = SharedInfo.Target; //Library files required for "RasberryPi" target RPi_libs = [ - "thirdparty/lib/raspberrypi/libwiringPi.so" + "thirdparty/lib/raspberrypi/libwiringPi.a" + "thirdparty/lib/raspberrypi/libwiringPiDev.a" "thirdparty/lib/raspberrypi/libcblas.a" "thirdparty/lib/raspberrypi/librefblas.a" "thirdparty/lib/raspberrypi/liblapack.a" diff --git a/macros/findDeps/getAllSources.sci b/macros/findDeps/getAllSources.sci index fd8b664c..6daef0b9 100644 --- a/macros/findDeps/getAllSources.sci +++ b/macros/findDeps/getAllSources.sci @@ -620,16 +620,6 @@ function allSources = getAllSources(SharedInfo) "src/c/elementaryFunctions/round/i16rounds.c" "src/c/elementaryFunctions/lnp1m1/slnp1m1s.c" "src/c/elementaryFunctions/lnp1m1/dlnp1m1s.c" - "src/c/elementaryFunctions/uint8/duint8s.c" - "src/c/elementaryFunctions/uint8/duint8a.c" - "src/c/elementaryFunctions/uint8/suint8s.c" - "src/c/elementaryFunctions/uint8/suint8a.c" - "src/c/elementaryFunctions/uint8/i8uint8s.c" - "src/c/elementaryFunctions/uint8/i8uint8a.c" - "src/c/elementaryFunctions/uint8/u16uint8s.c" - "src/c/elementaryFunctions/uint8/u16uint8a.c" - "src/c/elementaryFunctions/uint8/i16uint8s.c" - "src/c/elementaryFunctions/uint8/i16uint8a.c" "src/c/elementaryFunctions/float/dfloats.c" "src/c/elementaryFunctions/float/dfloata.c" @@ -644,7 +634,16 @@ function allSources = getAllSources(SharedInfo) "src/c/elementaryFunctions/float/i16floats.c" "src/c/elementaryFunctions/float/i16floata.c" - + "src/c/elementaryFunctions/uint8/duint8s.c" + "src/c/elementaryFunctions/uint8/duint8a.c" + "src/c/elementaryFunctions/uint8/suint8s.c" + "src/c/elementaryFunctions/uint8/suint8a.c" + "src/c/elementaryFunctions/uint8/i8uint8s.c" + "src/c/elementaryFunctions/uint8/i8uint8a.c" + "src/c/elementaryFunctions/uint8/u16uint8s.c" + "src/c/elementaryFunctions/uint8/u16uint8a.c" + "src/c/elementaryFunctions/uint8/i16uint8s.c" + "src/c/elementaryFunctions/uint8/i16uint8a.c" "src/c/elementaryFunctions/int8/dint8s.c" "src/c/elementaryFunctions/int8/dint8a.c" "src/c/elementaryFunctions/int8/sint8s.c" @@ -675,6 +674,35 @@ function allSources = getAllSources(SharedInfo) "src/c/elementaryFunctions/int16/i8int16a.c" "src/c/elementaryFunctions/int16/u16int16s.c" "src/c/elementaryFunctions/int16/u16int16a.c" + "src/c/elementaryFunctions/uint32/duint32s.c" + "src/c/elementaryFunctions/uint32/duint32a.c" + "src/c/elementaryFunctions/uint32/suint32s.c" + "src/c/elementaryFunctions/uint32/suint32a.c" + "src/c/elementaryFunctions/uint32/u8uint32s.c" + "src/c/elementaryFunctions/uint32/u8uint32a.c" + "src/c/elementaryFunctions/uint32/i8uint32s.c" + "src/c/elementaryFunctions/uint32/i8uint32a.c" + "src/c/elementaryFunctions/uint32/i16uint32s.c" + "src/c/elementaryFunctions/uint32/i16uint32a.c" + "src/c/elementaryFunctions/uint32/u16uint32s.c" + "src/c/elementaryFunctions/uint32/u16uint32a.c" + "src/c/elementaryFunctions/uint32/i32uint32s.c" + "src/c/elementaryFunctions/uint32/i32uint32a.c" + "src/c/elementaryFunctions/int32/dint32s.c" + "src/c/elementaryFunctions/int32/dint32a.c" + "src/c/elementaryFunctions/int32/sint32s.c" + "src/c/elementaryFunctions/int32/sint32a.c" + "src/c/elementaryFunctions/int32/u8int32s.c" + "src/c/elementaryFunctions/int32/u8int32a.c" + "src/c/elementaryFunctions/int32/i8int32s.c" + "src/c/elementaryFunctions/int32/i8int32a.c" + "src/c/elementaryFunctions/int32/u16int32s.c" + "src/c/elementaryFunctions/int32/u16int32a.c" + "src/c/elementaryFunctions/int32/i16int32s.c" + "src/c/elementaryFunctions/int32/i16int32a.c" + "src/c/elementaryFunctions/int32/u32int32s.c" + "src/c/elementaryFunctions/int32/u32int32a.c" + "src/c/elementaryFunctions/bitand/u8bitands.c" "src/c/elementaryFunctions/bitand/u8bitanda.c" "src/c/elementaryFunctions/bitand/u16bitands.c" @@ -1240,38 +1268,81 @@ function allSources = getAllSources(SharedInfo) ]; RPI_files = [ - "src/c/hardware/rasberrypi/gpio/u8RPIDigitalSetups.c" - "src/c/hardware/rasberrypi/gpio/u8RPIDigitalOuts.c" - "src/c/hardware/rasberrypi/gpio/u8RPIDigitalIns.c" - "src/c/hardware/rasberrypi/timing/u16RPIDelayMillis.c" - "src/c/hardware/rasberrypi/timing/u16RPIDelayMicros.c" - "src/c/hardware/rasberrypi/timing/u32RPIGetMillis.c" - "src/c/hardware/rasberrypi/timing/u32RPIGetMicros.c" - "src/c/hardware/rasberrypi/serial/u16RPISerialSetups.c" - "src/c/hardware/rasberrypi/serial/u8RPISerialCloses.c" - "src/c/hardware/rasberrypi/serial/u8RPISerialSendChars.c" - "src/c/hardware/rasberrypi/serial/u8RPISerialSendDatas.c" - "src/c/hardware/rasberrypi/serial/i8RPISerialSendDatas.c" - "src/c/hardware/rasberrypi/serial/u16RPISerialSendDatas.c" - "src/c/hardware/rasberrypi/serial/i16RPISerialSendDatas.c" - "src/c/hardware/rasberrypi/serial/u8RPISerialSendDataa.c" - "src/c/hardware/rasberrypi/serial/i8RPISerialSendDataa.c" - "src/c/hardware/rasberrypi/serial/u16RPISerialSendDataa.c" - "src/c/hardware/rasberrypi/serial/i16RPISerialSendDataa.c" - "src/c/hardware/rasberrypi/serial/sRPISerialSendDatas.c" - "src/c/hardware/rasberrypi/serial/dRPISerialSendDatas.c" - "src/c/hardware/rasberrypi/serial/sRPISerialSendDataa.c" - "src/c/hardware/rasberrypi/serial/dRPISerialSendDataa.c" - "src/c/hardware/rasberrypi/serial/gRPISerialSendDatas.c" - "src/c/hardware/rasberrypi/serial/i16RPISerialDataAvails.c" - "src/c/hardware/rasberrypi/serial/i16RPISerialGetChars.c" - "src/c/hardware/rasberrypi/serial/u8RPISerialFlushs.c" - "src/c/hardware/rasberrypi/threading/u16RPIThreadCreates.c" - "src/c/hardware/rasberrypi/pwm/u8RPIHardPWMWrites.c" - "src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetRanges.c" - "src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetModes.c" - "src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetClocks.c" - "src/c/hardware/rasberrypi/ISR/i16RPIPinISRs.c" + "/src/c/hardware/rasberrypi/Digital/RPI_digitalReadByte.c" + "/src/c/hardware/rasberrypi/Digital/u8RPI_digitalReads.c" + "/src/c/hardware/rasberrypi/Digital/u8RPI_digitalWriteBytes.c" + "/src/c/hardware/rasberrypi/Digital/u8RPI_digitalWrites.c" + "/src/c/hardware/rasberrypi/gertBoard/RPI_gertboardSPISetup.c" + "/src/c/hardware/rasberrypi/gertBoard/u16RPI_gertboardAnalogReads.c" + "/src/c/hardware/rasberrypi/gertBoard/u16RPI_gertboardAnalogSetups.c" + "/src/c/hardware/rasberrypi/gertBoard/u16RPI_gertboardAnalogWrites.c" + "/src/c/hardware/rasberrypi/I2C/u16RPI_I2CReadReg8s.c" + "/src/c/hardware/rasberrypi/I2C/u16RPI_I2CReadReg16s.c" + "/src/c/hardware/rasberrypi/I2C/u16RPI_I2CReads.c" + "/src/c/hardware/rasberrypi/I2C/u16RPI_I2CSetups.c" + "/src/c/hardware/rasberrypi/I2C/u16RPI_I2CWriteReg8s.c" + "/src/c/hardware/rasberrypi/I2C/u16RPI_I2CWriteReg16s.c" + "/src/c/hardware/rasberrypi/I2C/u16RPI_I2CWrites.c" + "/src/c/hardware/rasberrypi/Interrupt/u8RPI_waitForInterrupts.c" + "/src/c/hardware/rasberrypi/lcd/u8RPI_lcdCharDefs.c" + "/src/c/hardware/rasberrypi/lcd/u8RPI_lcdClears.c" + "/src/c/hardware/rasberrypi/lcd/u8RPI_lcdCursorBlinks.c" + "/src/c/hardware/rasberrypi/lcd/u8RPI_lcdCursors.c" + "/src/c/hardware/rasberrypi/lcd/u8RPI_lcdDisplays.c" + "/src/c/hardware/rasberrypi/lcd/u8RPI_lcdHomes.c" + "/src/c/hardware/rasberrypi/lcd/u8RPI_lcdInits.c" + "/src/c/hardware/rasberrypi/lcd/u8RPI_lcdPositions.c" + "/src/c/hardware/rasberrypi/lcd/u8RPI_lcdPrintfs.c" + "/src/c/hardware/rasberrypi/lcd/u8RPI_lcdPutchars.c" + "/src/c/hardware/rasberrypi/lcd/u8RPI_lcdPutss.c" + "/src/c/hardware/rasberrypi/lcd/u8RPI_lcdSendCommands.c" + "/src/c/hardware/rasberrypi/mcp/u16RPI_mcp23s08Setups.c" + "/src/c/hardware/rasberrypi/mcp/u16RPI_mcp23s17Setups.c" + "/src/c/hardware/rasberrypi/mcp/u16RPI_mcp23008Setups.c" + "/src/c/hardware/rasberrypi/mcp/u16RPI_mcp23016Setups.c" + "/src/c/hardware/rasberrypi/mcp/u16RPI_mcp23017Setups.c" + "/src/c/hardware/rasberrypi/Misc/RPI_boardRev.c" + "/src/c/hardware/rasberrypi/Misc/u8RPI_padDrives.c" + "/src/c/hardware/rasberrypi/Misc/u16RPI_sn3218Setups.c" + "/src/c/hardware/rasberrypi/pcf/u16RPI_pcf8574Setups.c" + "/src/c/hardware/rasberrypi/pcf/u16RPI_pcf8591Setups.c" + "/src/c/hardware/rasberrypi/piGlow/u8RPI_piGlow1s.c" + "/src/c/hardware/rasberrypi/piGlow/u8RPI_piGlowLegs.c" + "/src/c/hardware/rasberrypi/piGlow/u8RPI_piGlowRings.c" + "/src/c/hardware/rasberrypi/piGlow/u8RPI_piGlowSetups.c" + "/src/c/hardware/rasberrypi/pinMap/u8RPI_physToGpios.c" + "/src/c/hardware/rasberrypi/pinMap/u8RPI_wpiToGpios.c" + "/src/c/hardware/rasberrypi/pwm/gRPI_pwmModea.c" + "/src/c/hardware/rasberrypi/pwm/u8RPI_pwmToneWrites.c" + "/src/c/hardware/rasberrypi/pwm/u8RPI_pwmWrites.c" + "/src/c/hardware/rasberrypi/pwm/u16RPI_pwmClocks.c" + "/src/c/hardware/rasberrypi/pwm/u32RPI_pwmRanges.c" + "/src/c/hardware/rasberrypi/Serial/gRPI_serialOpena.c" + "/src/c/hardware/rasberrypi/Serial/u8RPI_serialCloses.c" + "/src/c/hardware/rasberrypi/Serial/u8RPI_serialDataAvails.c" + "/src/c/hardware/rasberrypi/Serial/u8RPI_serialFlushs.c" + "/src/c/hardware/rasberrypi/Serial/u8RPI_serialGetchars.c" + "/src/c/hardware/rasberrypi/Serial/u8RPI_serialPrintfs.c" + "/src/c/hardware/rasberrypi/Serial/u8RPI_serialPutchars.c" + "/src/c/hardware/rasberrypi/Serial/u8RPI_serialPutss.c" + "/src/c/hardware/rasberrypi/Setup/gRPI_pinNumberinga.c" + "/src/c/hardware/rasberrypi/Setup/u8RPI_getAlts.c" + "/src/c/hardware/rasberrypi/Setup/u8RPI_pinModeAlts.c" + "/src/c/hardware/rasberrypi/Setup/u8RPI_pinModes.c" + "/src/c/hardware/rasberrypi/Setup/u8RPI_pullControls.c" + "/src/c/hardware/rasberrypi/Shift/u8RPI_shiftIns.c" + "/src/c/hardware/rasberrypi/Shift/u8RPI_shiftOuts.c" + "/src/c/hardware/rasberrypi/Shift/u16RPI_sr595Setups.c" + "/src/c/hardware/rasberrypi/soft/u8RPI_softPwmCreates.c" + "/src/c/hardware/rasberrypi/soft/u8RPI_softPwmStops.c" + "/src/c/hardware/rasberrypi/soft/u8RPI_softPwmWrites.c" + "/src/c/hardware/rasberrypi/soft/u8RPI_softToneCreates.c" + "/src/c/hardware/rasberrypi/soft/u8RPI_softToneStops.c" + "/src/c/hardware/rasberrypi/soft/u8RPI_softToneWrites.c" + "/src/c/hardware/rasberrypi/Timing/RPI_micros.c" + "/src/c/hardware/rasberrypi/Timing/RPI_millis.c" + "/src/c/hardware/rasberrypi/Timing/u32RPI_delayMicros.c" + "/src/c/hardware/rasberrypi/Timing/u32RPI_delays.c" ]; OpenCV_files = [ diff --git a/macros/findDeps/lib b/macros/findDeps/lib index a49dc793..89bb5b29 100644 Binary files a/macros/findDeps/lib and b/macros/findDeps/lib differ diff --git a/macros/lib b/macros/lib index d818e184..3b1ed213 100644 Binary files a/macros/lib and b/macros/lib differ diff --git a/macros/runsci2c.sci b/macros/runsci2c.sci index eb32a4b5..cefc0acd 100644 --- a/macros/runsci2c.sci +++ b/macros/runsci2c.sci @@ -53,10 +53,10 @@ disp(RunSci2CMainDir); [FileInfoDatFile,SharedInfoDatFile] = INIT_SCI2C(UserScilabMainFile, ... UserSciFilesPaths, SCI2COutputPath, RunMode, Target); + // -- Load FileInfo and SharedInfo load(SharedInfoDatFile,'SharedInfo'); load(FileInfoDatFile,'FileInfo'); - RunMode = SharedInfo.RunMode; // --- Generation of the library structure. --- @@ -91,7 +91,6 @@ load(SharedInfoDatFile,'SharedInfo'); // --------------------------- global SCI2CHOME - allSources = SCI2CHOME + "/" + getAllSources(SharedInfo); allHeaders = SCI2CHOME + "/" +getAllHeaders(SharedInfo); allInterfaces = SCI2CHOME + "/" + getAllInterfaces(SharedInfo); diff --git a/macros/scilab2c.sci b/macros/scilab2c.sci index 41494eac..89dcd730 100644 --- a/macros/scilab2c.sci +++ b/macros/scilab2c.sci @@ -158,6 +158,7 @@ error(msprintf(gettext("%s: Wrong number of input argument(s): %d expected.\n"), userchoice = 1; end if (userchoice == 1) + // --- LAUNCH SCI2C --- runsci2c(UserScilabMainFile, UserSciFilesPaths, CCodeOutputDir, RunMode, BuildTool,Target); end diff --git a/src/c/elementaryFunctions/includes/int32.h b/src/c/elementaryFunctions/includes/int32.h new file mode 100644 index 00000000..26b7bcbf --- /dev/null +++ b/src/c/elementaryFunctions/includes/int32.h @@ -0,0 +1,62 @@ +/* Copyright (C) 2017 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani, Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#ifndef __INT32_H__ +#define __INT32_H__ + +#include "dynlib_elementaryfunctions.h" +#include "floatComplex.h" +#include "doubleComplex.h" +#include "types.h" + +#ifdef __cplusplus +extern "C" { +#endif +/* + int32(X) returns the signed int part of the double value +*/ + +EXTERN_ELEMFUNCT int32 sint32s(float in); + +EXTERN_ELEMFUNCT int32 dint32s(double in); + +EXTERN_ELEMFUNCT int32 u8int32s(uint8 in); + +EXTERN_ELEMFUNCT int32 i8int32s(int8 in); + +EXTERN_ELEMFUNCT int32 u16int32s(uint16 in); + +EXTERN_ELEMFUNCT int32 i16int32s(int16 in); + +EXTERN_ELEMFUNCT int32 u32int32s(uint32 in); + +EXTERN_ELEMFUNCT void sint32a(float* in, int size, int32* out); + +EXTERN_ELEMFUNCT void dint32a(double* in, int size, int32* out); + +EXTERN_ELEMFUNCT void u8int32a(uint8* in, int size, int32* out); + +EXTERN_ELEMFUNCT void i8int32a(int8* in, int size, int32* out); + +EXTERN_ELEMFUNCT void u16int32a(uint16* in, int size, int32* out); + +EXTERN_ELEMFUNCT void i16int32a(int16* in, int size, int32* out); + +EXTERN_ELEMFUNCT void u32int32a(uint32* in, int size, int32* out); + +#ifdef __cplusplus +} /* extern "C" */ +#endif + + +#endif /* !__INT32_H__ */ + diff --git a/src/c/elementaryFunctions/includes/uint32.h b/src/c/elementaryFunctions/includes/uint32.h new file mode 100644 index 00000000..b90247bc --- /dev/null +++ b/src/c/elementaryFunctions/includes/uint32.h @@ -0,0 +1,62 @@ +/* Copyright (C) 2017 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani, Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#ifndef __UINT32_H__ +#define __UINT32_H__ + +#include "dynlib_elementaryfunctions.h" +#include "floatComplex.h" +#include "doubleComplex.h" +#include "types.h" + +#ifdef __cplusplus +extern "C" { +#endif +/* + uint32(X) returns the unsigned int part of the double value +*/ + +EXTERN_ELEMFUNCT uint32 suint32s(float in); + +EXTERN_ELEMFUNCT uint32 duint32s(double in); + +EXTERN_ELEMFUNCT uint32 u8uint32s(uint8 in); + +EXTERN_ELEMFUNCT uint32 i8uint32s(int8 in); + +EXTERN_ELEMFUNCT uint32 u16uint32s(uint16 in); + +EXTERN_ELEMFUNCT uint32 i16uint32s(int16 in); + +EXTERN_ELEMFUNCT uint32 i32uint32s(int32 in); + +EXTERN_ELEMFUNCT void suint32a(float* in, int size, uint32* out); + +EXTERN_ELEMFUNCT void duint32a(double* in, int size, uint32* out); + +EXTERN_ELEMFUNCT void u8uint32a(uint8* in, int size, uint32* out); + +EXTERN_ELEMFUNCT void i8uint32a(int8* in, int size, uint32* out); + +EXTERN_ELEMFUNCT void u16uint32a(uint16* in, int size, uint32* out); + +EXTERN_ELEMFUNCT void i16uint32a(int16* in, int size, uint32* out); + +EXTERN_ELEMFUNCT void i32uint32a(int32* in, int size, uint32* out); + +#ifdef __cplusplus +} /* extern "C" */ +#endif + + +#endif /* !__UINT32_H__ */ + diff --git a/src/c/elementaryFunctions/int32/dint32a.c b/src/c/elementaryFunctions/int32/dint32a.c new file mode 100644 index 00000000..f8b4b662 --- /dev/null +++ b/src/c/elementaryFunctions/int32/dint32a.c @@ -0,0 +1,18 @@ +/* Copyright (C) 2017 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani, Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "int32.h" + +void dint32a(double* x, int size, int32* out) { + int i = 0; + for (i=0;i PWM_output (BCM pin 18 only) + direction = 1 -> output + direction = 0 -> input +*/ + +#include "types.h" +#include "RPIPeripheralDigital.h" + + +/*This array maps pin numbers on RPi board, with pin numbers corrsponding +to WiringPi library*/ +int phy_pin[] = {17, 17, 8, 17, 9, 17, 7, 15, 17, 16, /*Pin 1 to 10*/ + 0, 1, 2, 17, 3, 4, 17, 5, 12, 17, /*Pin 11 to 20*/ + 13, 6, 14, 10, 17, 11, 30, 31, 21, 17, /*Pin 21 to 30*/ + 22, 26, 23, 17, 24, 27, 25, 28, 17, 29 }; /*Pin 31 to 40*/ + +/*pin is reduced by one as arrayiindex starts from 0 and pin no starts from 1*/ +void u8RPIDigitalSetups(uint8 pin, uint8 direction) +{ + if(direction == 1) /*Pin to be used as output*/ + pinMode(phy_pin[pin-1], OUTPUT); + else if(direction == 2) + pinMode(phy_pin[pin-1], PWM_OUTPUT); + else + pinMode(phy_pin[pin-1], INPUT); + +} diff --git a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/pwm/RPI_pwmClock.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/pwm/RPI_pwmClock.c new file mode 100644 index 00000000..0ad575b7 --- /dev/null +++ b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/pwm/RPI_pwmClock.c @@ -0,0 +1,27 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani, Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +/*Function to set clock for pwm channel. Default clock is 19.2 MHz. 'clk_divisor' + along with range decides frequency for PWM + PWM frequency = 19.2 MHz / clk_divisor/ range + Range for clk_divisor = 1-2048 + */ + +#include "types.h" +#include "RPIPeripheralPWM.h" + +void u8RPIHardPWMSetClocks(uint16 clk_divisor) +{ + pwmSetClock(clk_divisor); + + +} diff --git a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/pwm/RPI_pwmMode.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/pwm/RPI_pwmMode.c new file mode 100644 index 00000000..7679a1ab --- /dev/null +++ b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/pwm/RPI_pwmMode.c @@ -0,0 +1,28 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani, Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +/*Function to set mode for PWM channel. Two modes are available + 0 --> balanced mode + 1 --> mark/space mode + */ + +#include "types.h" +#include "RPIPeripheralPWM.h" + +void u8RPIHardPWMSetModes(uint8 mode) +{ + if (mode == 1) /*mark/space mode*/ + pwmSetMode(PWM_MODE_MS); + else + pwmSetMode(PWM_MODE_BAL); + +} diff --git a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/pwm/RPI_pwmRange.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/pwm/RPI_pwmRange.c new file mode 100644 index 00000000..07936b38 --- /dev/null +++ b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/pwm/RPI_pwmRange.c @@ -0,0 +1,25 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani, Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +/*Function to assigne pwm duty to specified pin. PWM duty is decided by 'value' + and 'range' specified using corresponding function. + PWM duty = value/range + */ + +#include "types.h" +#include "RPIPeripheralPWM.h" + +void u8RPIHardPWMSetRanges(uint16 value) +{ + pwmSetRange(value); + +} diff --git a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/pwm/RPI_pwmWrite.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/pwm/RPI_pwmWrite.c new file mode 100644 index 00000000..a16a1d86 --- /dev/null +++ b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/pwm/RPI_pwmWrite.c @@ -0,0 +1,26 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani, Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +/*Function to set range for pwm channel. PWM duty is decided by 'range' + and 'value' specified using corresponding function. + PWM duty = value/range + */ + +#include "types.h" +#include "RPIPeripheralPWM.h" +#include "RPIPeripheralDigital.h" + +void u8RPIHardPWMWrites(uint8 pin, uint16 value) +{ + pwmWrite((int)phy_pin[pin-1], value); + +} diff --git a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/dRPISerialSendDataa.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/dRPISerialSendDataa.c new file mode 100644 index 00000000..f9902550 --- /dev/null +++ b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/dRPISerialSendDataa.c @@ -0,0 +1,27 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +/* Function to send double data array/matrix on specified serial port. */ + +#include "types.h" +#include "RPIPeripheralSerial.h" + +void dRPISerialSendDataa(int fd, double* data, int size) +{ + int count = 0; + + for (count = 0; count < size; count++) + { + dRPISerialSendDatas(fd, data[count]); + } + +} diff --git a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/dRPISerialSendDatas.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/dRPISerialSendDatas.c new file mode 100644 index 00000000..39112fc2 --- /dev/null +++ b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/dRPISerialSendDatas.c @@ -0,0 +1,35 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +/* Function to send double data on specified serial port. */ + +#include "types.h" +#include "RPIPeripheralSerial.h" + +void dRPISerialSendDatas(int fd, double data) +{ + uint8 count; + + union double_bytes{ + double double_data; + unsigned char bytes[sizeof(double)]; + } in_data; + + in_data.double_data = data; + + for(count=0; count>8)); + +} diff --git a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/i8RPISerialSendDataa.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/i8RPISerialSendDataa.c new file mode 100644 index 00000000..c4dd199c --- /dev/null +++ b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/i8RPISerialSendDataa.c @@ -0,0 +1,26 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +/* Function to send signed 8-bit byte array/matrix on specified serial port. */ + +#include "types.h" +#include "RPIPeripheralSerial.h" + +void i8RPISerialSendDataa(int fd, int8* data, int size) +{ + int count = 0; + + for (count = 0; count < size; ++count) + { + i8RPISerialSendDatas(fd, data[count]); + } +} diff --git a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/i8RPISerialSendDatas.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/i8RPISerialSendDatas.c new file mode 100644 index 00000000..e637871f --- /dev/null +++ b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/i8RPISerialSendDatas.c @@ -0,0 +1,22 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +/* Function to send signed 8-bit byte on specified serial port. */ + +#include "types.h" +#include "RPIPeripheralSerial.h" + +void i8RPISerialSendDatas(int fd, int8 data) +{ + serialPutchar(fd, (uint8) data); + +} diff --git a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/sRPISerialSendDataa.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/sRPISerialSendDataa.c new file mode 100644 index 00000000..14c0bc70 --- /dev/null +++ b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/sRPISerialSendDataa.c @@ -0,0 +1,27 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +/* Function to send float data array/matrix on specified serial port. */ + +#include "types.h" +#include "RPIPeripheralSerial.h" + +void sRPISerialSendDataa(int fd, float* data, int size) +{ + int count = 0; + + for (count = 0; count < size; ++count) + { + sRPISerialSendDatas(fd, data[count]); + } + +} diff --git a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/sRPISerialSendDatas.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/sRPISerialSendDatas.c new file mode 100644 index 00000000..ff78dd1f --- /dev/null +++ b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/sRPISerialSendDatas.c @@ -0,0 +1,34 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +/* Function to send float data on specified serial port. */ + +#include "types.h" +#include "RPIPeripheralSerial.h" + +void sRPISerialSendDatas(int fd, float data) +{ + uint8 count; + + union float_bytes{ + float float_data; + unsigned char bytes[sizeof(float)]; + } in_data; + in_data.float_data = data; + + for(count=0; count>8)); +} diff --git a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u16RPISerialSetups.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u16RPISerialSetups.c new file mode 100644 index 00000000..cde4cba2 --- /dev/null +++ b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u16RPISerialSetups.c @@ -0,0 +1,25 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +/* Function to setup port with desired baud rate. */ + +#include "types.h" +#include "RPIPeripheralSerial.h" + +int u16RPISerialSetups(char* port, int baudrate) +{ + int fd; + + fd = serialOpen (port, baudrate); + + return fd; +} diff --git a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u8RPISerialCloses.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u8RPISerialCloses.c new file mode 100644 index 00000000..5162d15e --- /dev/null +++ b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u8RPISerialCloses.c @@ -0,0 +1,21 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +/* Function to close serial port opened. */ + +#include "types.h" +#include "RPIPeripheralSerial.h" + +void u8RPISerialCloses(int fd) +{ + serialClose (fd); +} diff --git a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u8RPISerialFlushs.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u8RPISerialFlushs.c new file mode 100644 index 00000000..c80a92c5 --- /dev/null +++ b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u8RPISerialFlushs.c @@ -0,0 +1,21 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +/* Function to discards data serial buffer (received as well as waiting to be sent */ + +#include "types.h" +#include "RPIPeripheralSerial.h" + +void u8RPISerialFlushs(int fd) +{ + serialFlush(fd); +} diff --git a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u8RPISerialSendChars.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u8RPISerialSendChars.c new file mode 100644 index 00000000..e3813514 --- /dev/null +++ b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u8RPISerialSendChars.c @@ -0,0 +1,21 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +/* Function to send 8-bit char on specified serial port. */ + +#include "types.h" +#include "RPIPeripheralSerial.h" + +void u8RPISerialSendChars(int fd, uint8 data) +{ + serialPutchar(fd, data); +} diff --git a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u8RPISerialSendDataa.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u8RPISerialSendDataa.c new file mode 100644 index 00000000..9d097141 --- /dev/null +++ b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u8RPISerialSendDataa.c @@ -0,0 +1,27 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +/* Function to send unsigned 8-bit byte array/matrix on specified serial port. */ + +#include "types.h" +#include "RPIPeripheralSerial.h" + +void u8RPISerialSendDataa(int fd, uint8* data, int size) +{ + int count = 0; + + for (count = 0; count < size; ++count) + { + u8RPISerialSendDatas(fd, data[count]); + } + +} diff --git a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u8RPISerialSendDatas.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u8RPISerialSendDatas.c new file mode 100644 index 00000000..9edb439f --- /dev/null +++ b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u8RPISerialSendDatas.c @@ -0,0 +1,22 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +/* Function to send unsigned 8-bit byte on specified serial port. */ + +#include "types.h" +#include "RPIPeripheralSerial.h" + +void u8RPISerialSendDatas(int fd, uint8 data) +{ + serialPutchar(fd, data); + +} diff --git a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/threading/u16RPIThreadCreates.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/threading/u16RPIThreadCreates.c new file mode 100644 index 00000000..c05c959c --- /dev/null +++ b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/threading/u16RPIThreadCreates.c @@ -0,0 +1,24 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +/* Function to create thread for given function */ + +#include "types.h" +#include "RPIPeripheralThreading.h" + +uint16 RPIThreadCreate(void *(*threadFunction)(void*)) +{ + int status; + status = piThreadCreate (threadFunction); + return status; +} + diff --git a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/timing/RPI_delay.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/timing/RPI_delay.c new file mode 100644 index 00000000..8374c2b2 --- /dev/null +++ b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/timing/RPI_delay.c @@ -0,0 +1,25 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani, Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +/* Function to insert some delay in code execution. */ + + + +#include "types.h" +#include "RPIPeripheralTiming.h" + +void u16RPI_delay(uint16 time) +{ + delay(time); + +} + diff --git a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/timing/RPI_delayMicro.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/timing/RPI_delayMicro.c new file mode 100644 index 00000000..df2a7a79 --- /dev/null +++ b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/timing/RPI_delayMicro.c @@ -0,0 +1,22 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani, Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +/* Function to insert some delay in code execution. */ + +#include "types.h" +#include "RPIPeripheralTiming.h" + +void u16RPI_delayMicro(uint16 time) +{ + delayMicroseconds(time); +} + diff --git a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/timing/RPI_micros.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/timing/RPI_micros.c new file mode 100644 index 00000000..8d06742d --- /dev/null +++ b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/timing/RPI_micros.c @@ -0,0 +1,21 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani, Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +/* Function to get time in microsecond since first setup function called */ + +#include "types.h" +#include "RPIPeripheralTiming.h" + +uint32 u32RPI_micros() +{ + return(micros()); +} diff --git a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/timing/RPI_millis.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/timing/RPI_millis.c new file mode 100644 index 00000000..92b6e1b8 --- /dev/null +++ b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/timing/RPI_millis.c @@ -0,0 +1,21 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani, Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +/* Function to get time in millisecond since first setup function called */ + +#include "types.h" +#include "RPIPeripheralTiming.h" + +uint32 u32RPI_millis() +{ + return(millis()); +} diff --git a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/raspi.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/raspi.c new file mode 100644 index 00000000..3e94b925 --- /dev/null +++ b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/raspi.c @@ -0,0 +1,13 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "types.h" \ No newline at end of file diff --git a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/raspi_close.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/raspi_close.c new file mode 100644 index 00000000..3e94b925 --- /dev/null +++ b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/raspi_close.c @@ -0,0 +1,13 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "types.h" \ No newline at end of file diff --git a/src/c/hardware/rasberrypi/NotYetDone/SPI/RPI_SPIDataRW.c b/src/c/hardware/rasberrypi/NotYetDone/SPI/RPI_SPIDataRW.c new file mode 100644 index 00000000..3e94b925 --- /dev/null +++ b/src/c/hardware/rasberrypi/NotYetDone/SPI/RPI_SPIDataRW.c @@ -0,0 +1,13 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "types.h" \ No newline at end of file diff --git a/src/c/hardware/rasberrypi/NotYetDone/SPI/RPI_SPISetup.c b/src/c/hardware/rasberrypi/NotYetDone/SPI/RPI_SPISetup.c new file mode 100644 index 00000000..3e94b925 --- /dev/null +++ b/src/c/hardware/rasberrypi/NotYetDone/SPI/RPI_SPISetup.c @@ -0,0 +1,13 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "types.h" \ No newline at end of file diff --git a/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64Orientation.c b/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64Orientation.c new file mode 100644 index 00000000..3e94b925 --- /dev/null +++ b/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64Orientation.c @@ -0,0 +1,13 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "types.h" \ No newline at end of file diff --git a/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64circle.c b/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64circle.c new file mode 100644 index 00000000..3e94b925 --- /dev/null +++ b/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64circle.c @@ -0,0 +1,13 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "types.h" \ No newline at end of file diff --git a/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64clear.c b/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64clear.c new file mode 100644 index 00000000..3e94b925 --- /dev/null +++ b/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64clear.c @@ -0,0 +1,13 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "types.h" \ No newline at end of file diff --git a/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64ellipse.c b/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64ellipse.c new file mode 100644 index 00000000..3e94b925 --- /dev/null +++ b/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64ellipse.c @@ -0,0 +1,13 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "types.h" \ No newline at end of file diff --git a/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64line.c b/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64line.c new file mode 100644 index 00000000..3e94b925 --- /dev/null +++ b/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64line.c @@ -0,0 +1,13 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "types.h" \ No newline at end of file diff --git a/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64lineTo.c b/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64lineTo.c new file mode 100644 index 00000000..3e94b925 --- /dev/null +++ b/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64lineTo.c @@ -0,0 +1,13 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "types.h" \ No newline at end of file diff --git a/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64point.c b/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64point.c new file mode 100644 index 00000000..3e94b925 --- /dev/null +++ b/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64point.c @@ -0,0 +1,13 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "types.h" \ No newline at end of file diff --git a/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64putchar.c b/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64putchar.c new file mode 100644 index 00000000..3e94b925 --- /dev/null +++ b/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64putchar.c @@ -0,0 +1,13 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "types.h" \ No newline at end of file diff --git a/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64puts.c b/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64puts.c new file mode 100644 index 00000000..3e94b925 --- /dev/null +++ b/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64puts.c @@ -0,0 +1,13 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "types.h" \ No newline at end of file diff --git a/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64rectangle.c b/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64rectangle.c new file mode 100644 index 00000000..3e94b925 --- /dev/null +++ b/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64rectangle.c @@ -0,0 +1,13 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "types.h" \ No newline at end of file diff --git a/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64setOrigin.c b/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64setOrigin.c new file mode 100644 index 00000000..3e94b925 --- /dev/null +++ b/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64setOrigin.c @@ -0,0 +1,13 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "types.h" \ No newline at end of file diff --git a/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64setup.c b/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64setup.c new file mode 100644 index 00000000..3e94b925 --- /dev/null +++ b/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64setup.c @@ -0,0 +1,13 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "types.h" \ No newline at end of file diff --git a/src/c/hardware/rasberrypi/NotYetDone/multiThreading/u8RPI_locks.c b/src/c/hardware/rasberrypi/NotYetDone/multiThreading/u8RPI_locks.c new file mode 100644 index 00000000..3e94b925 --- /dev/null +++ b/src/c/hardware/rasberrypi/NotYetDone/multiThreading/u8RPI_locks.c @@ -0,0 +1,13 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "types.h" \ No newline at end of file diff --git a/src/c/hardware/rasberrypi/NotYetDone/multiThreading/u8RPI_prioritys.c b/src/c/hardware/rasberrypi/NotYetDone/multiThreading/u8RPI_prioritys.c new file mode 100644 index 00000000..3e94b925 --- /dev/null +++ b/src/c/hardware/rasberrypi/NotYetDone/multiThreading/u8RPI_prioritys.c @@ -0,0 +1,13 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "types.h" \ No newline at end of file diff --git a/src/c/hardware/rasberrypi/NotYetDone/multiThreading/u8RPI_unlocks.c b/src/c/hardware/rasberrypi/NotYetDone/multiThreading/u8RPI_unlocks.c new file mode 100644 index 00000000..3e94b925 --- /dev/null +++ b/src/c/hardware/rasberrypi/NotYetDone/multiThreading/u8RPI_unlocks.c @@ -0,0 +1,13 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "types.h" \ No newline at end of file diff --git a/src/c/hardware/rasberrypi/Serial/gRPI_serialOpena.c b/src/c/hardware/rasberrypi/Serial/gRPI_serialOpena.c new file mode 100644 index 00000000..31543afe --- /dev/null +++ b/src/c/hardware/rasberrypi/Serial/gRPI_serialOpena.c @@ -0,0 +1,19 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralSerial.h" + +int8 gRPI_serialOpena(char* device,int size,uint32 baud){ + int8 fd; + fd = serialOpen(device,baud); + return fd; +} diff --git a/src/c/hardware/rasberrypi/Serial/u8RPI_serialCloses.c b/src/c/hardware/rasberrypi/Serial/u8RPI_serialCloses.c new file mode 100644 index 00000000..d20aa541 --- /dev/null +++ b/src/c/hardware/rasberrypi/Serial/u8RPI_serialCloses.c @@ -0,0 +1,17 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralSerial.h" + +void u8RPI_serialCloses(uint8 fd){ + serialClose(fd); +} diff --git a/src/c/hardware/rasberrypi/Serial/u8RPI_serialDataAvails.c b/src/c/hardware/rasberrypi/Serial/u8RPI_serialDataAvails.c new file mode 100644 index 00000000..cf256070 --- /dev/null +++ b/src/c/hardware/rasberrypi/Serial/u8RPI_serialDataAvails.c @@ -0,0 +1,19 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralSerial.h" + +uint8 u8RPI_serialDataAvails(uint8 fd){ + uint8 out; + out=serialDataAvail(fd); + return(out); +} diff --git a/src/c/hardware/rasberrypi/Serial/u8RPI_serialFlushs.c b/src/c/hardware/rasberrypi/Serial/u8RPI_serialFlushs.c new file mode 100644 index 00000000..4d150637 --- /dev/null +++ b/src/c/hardware/rasberrypi/Serial/u8RPI_serialFlushs.c @@ -0,0 +1,17 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralSerial.h" + +void u8RPI_serialFlushs(uint8 fd){ + serialFlush(fd); +} diff --git a/src/c/hardware/rasberrypi/Serial/u8RPI_serialGetchars.c b/src/c/hardware/rasberrypi/Serial/u8RPI_serialGetchars.c new file mode 100644 index 00000000..c1dabfd1 --- /dev/null +++ b/src/c/hardware/rasberrypi/Serial/u8RPI_serialGetchars.c @@ -0,0 +1,17 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralSerial.h" + +void u8RPI_serialGetchars(uint8 fd,char* out){ + out=serialGetchar(fd); +} diff --git a/src/c/hardware/rasberrypi/Serial/u8RPI_serialPrintfs.c b/src/c/hardware/rasberrypi/Serial/u8RPI_serialPrintfs.c new file mode 100644 index 00000000..d1672003 --- /dev/null +++ b/src/c/hardware/rasberrypi/Serial/u8RPI_serialPrintfs.c @@ -0,0 +1,17 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralSerial.h" + +void u8RPI_serialPrintfs(uint8 fd,char* msg,int size){ + serialPrintf(fd,msg); +} diff --git a/src/c/hardware/rasberrypi/Serial/u8RPI_serialPutchars.c b/src/c/hardware/rasberrypi/Serial/u8RPI_serialPutchars.c new file mode 100644 index 00000000..3309317e --- /dev/null +++ b/src/c/hardware/rasberrypi/Serial/u8RPI_serialPutchars.c @@ -0,0 +1,17 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralSerial.h" + +void u8RPI_serialPutchars(uint8 fd,uint8 character){ + serialPutchar(fd,character); +} diff --git a/src/c/hardware/rasberrypi/Serial/u8RPI_serialPutss.c b/src/c/hardware/rasberrypi/Serial/u8RPI_serialPutss.c new file mode 100644 index 00000000..581e15ac --- /dev/null +++ b/src/c/hardware/rasberrypi/Serial/u8RPI_serialPutss.c @@ -0,0 +1,17 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralSerial.h" + +void u8RPI_serialPutss(uint8 fd,char* character,int size){ + serialPuts(fd,character); +} diff --git a/src/c/hardware/rasberrypi/Setup/gRPI_pinNumberinga.c b/src/c/hardware/rasberrypi/Setup/gRPI_pinNumberinga.c new file mode 100644 index 00000000..4170f4c1 --- /dev/null +++ b/src/c/hardware/rasberrypi/Setup/gRPI_pinNumberinga.c @@ -0,0 +1,28 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralSetup.h" +#include "stdio.h" + +int8 gRPI_pinNumberinga(char* seq,int size){ + uint8 out; + if (seq[0]=='w'){ + out=wiringPiSetup(); + } + else if (seq[0]=='G'){ + out=wiringPiSetupGpio(); + } + else if (seq[0]=='P'){ + out=wiringPiSetupPhys(); + } + return (out); +} diff --git a/src/c/hardware/rasberrypi/Setup/u8RPI_getAlts.c b/src/c/hardware/rasberrypi/Setup/u8RPI_getAlts.c new file mode 100644 index 00000000..0a5c4764 --- /dev/null +++ b/src/c/hardware/rasberrypi/Setup/u8RPI_getAlts.c @@ -0,0 +1,19 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralSetup.h" + +uint8 u8RPI_getAlts(uint8 pin){ + uint8 out; + out=getAlt(pin); + return (out); +} diff --git a/src/c/hardware/rasberrypi/Setup/u8RPI_pinModeAlts.c b/src/c/hardware/rasberrypi/Setup/u8RPI_pinModeAlts.c new file mode 100644 index 00000000..153b88ee --- /dev/null +++ b/src/c/hardware/rasberrypi/Setup/u8RPI_pinModeAlts.c @@ -0,0 +1,17 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralSetup.h" + +void u8RPI_pinModeAlts(uint8 pin,uint8 mode){ + pinModeAlt(pin,mode); +} diff --git a/src/c/hardware/rasberrypi/Setup/u8RPI_pinModes.c b/src/c/hardware/rasberrypi/Setup/u8RPI_pinModes.c new file mode 100644 index 00000000..76601f8d --- /dev/null +++ b/src/c/hardware/rasberrypi/Setup/u8RPI_pinModes.c @@ -0,0 +1,31 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include +#include "types.h" +#include "RPIPeripheralSetup.h" + +void u8RPI_pinModes(uint8 pin,char* mode,int size){ + if (mode[0]=='i'){ + pinMode(pin,INPUT); + } + else if (mode[0]=='o'){ + pinMode(pin,OUTPUT); + } + else if (mode[0]=='p'){ + pinMode(pin,PWM_OUTPUT); + } + else if (mode[0]=='c'){ + pinMode(pin,GPIO_CLOCK); + } + +} diff --git a/src/c/hardware/rasberrypi/Setup/u8RPI_pullControls.c b/src/c/hardware/rasberrypi/Setup/u8RPI_pullControls.c new file mode 100644 index 00000000..4e95aac5 --- /dev/null +++ b/src/c/hardware/rasberrypi/Setup/u8RPI_pullControls.c @@ -0,0 +1,25 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralSetup.h" + +void u8RPI_pullControls(uint8 pin,char* mode,int size){ + if (mode[0]=='d'){ + pullUpDnControl(pin,1); + } + else if (mode[0]=='u'){ + pullUpDnControl(pin,2); + } + else if (mode[0]=='o'){ + pullUpDnControl(pin,0); + } +} diff --git a/src/c/hardware/rasberrypi/Shift/u16RPI_sr595Setups.c b/src/c/hardware/rasberrypi/Shift/u16RPI_sr595Setups.c new file mode 100644 index 00000000..3f0a6493 --- /dev/null +++ b/src/c/hardware/rasberrypi/Shift/u16RPI_sr595Setups.c @@ -0,0 +1,20 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralShift.h" + +int8 u16RPI_sr595Setups(uint16 pinBase,uint8 nPins,uint8 dP,uint8 cP,uint8 lP) +{ + int8 out; + out=sr595Setup(pinBase,nPins,dP,cP,lP); + return (out); +} diff --git a/src/c/hardware/rasberrypi/Shift/u8RPI_shiftIns.c b/src/c/hardware/rasberrypi/Shift/u8RPI_shiftIns.c new file mode 100644 index 00000000..6a264b6a --- /dev/null +++ b/src/c/hardware/rasberrypi/Shift/u8RPI_shiftIns.c @@ -0,0 +1,19 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralShift.h" + +uint8 u8RPI_shiftIns(uint8 dpin,uint8 cpin,uint8 order){ + uint8 out; + out=shiftIn(dpin,cpin,order); + return out; +} diff --git a/src/c/hardware/rasberrypi/Shift/u8RPI_shiftOuts.c b/src/c/hardware/rasberrypi/Shift/u8RPI_shiftOuts.c new file mode 100644 index 00000000..5d24c2b9 --- /dev/null +++ b/src/c/hardware/rasberrypi/Shift/u8RPI_shiftOuts.c @@ -0,0 +1,17 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralShift.h" + +void u8RPI_shiftOuts(uint8 dpin,uint8 cpin,uint8 order,uint8 val){ + shiftOut(dpin,cpin,order,val); +} diff --git a/src/c/hardware/rasberrypi/Timing/RPI_micros.c b/src/c/hardware/rasberrypi/Timing/RPI_micros.c new file mode 100644 index 00000000..a7a84503 --- /dev/null +++ b/src/c/hardware/rasberrypi/Timing/RPI_micros.c @@ -0,0 +1,21 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani, Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralTiming.h" + +/* Function to get time in microsecond since first setup function called */ + +uint32 RPI_micros(){ + uint32 out; + out=micros(); + return (out); +} diff --git a/src/c/hardware/rasberrypi/Timing/RPI_millis.c b/src/c/hardware/rasberrypi/Timing/RPI_millis.c new file mode 100644 index 00000000..b383f2a9 --- /dev/null +++ b/src/c/hardware/rasberrypi/Timing/RPI_millis.c @@ -0,0 +1,21 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani, Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralTiming.h" + +/* Function to get time in millisecond since first setup function called */ + +uint32 RPI_millis(){ + uint32 out; + out=millis(); + return (out); +} diff --git a/src/c/hardware/rasberrypi/Timing/u32RPI_delayMicros.c b/src/c/hardware/rasberrypi/Timing/u32RPI_delayMicros.c new file mode 100644 index 00000000..1ffdda7e --- /dev/null +++ b/src/c/hardware/rasberrypi/Timing/u32RPI_delayMicros.c @@ -0,0 +1,19 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani, Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralTiming.h" + +/* Function to insert some delay in code execution. */ + +void u32RPI_delayMicros(uint32 time){ + delayMicroseconds(time); +} diff --git a/src/c/hardware/rasberrypi/Timing/u32RPI_delays.c b/src/c/hardware/rasberrypi/Timing/u32RPI_delays.c new file mode 100644 index 00000000..7802d6bf --- /dev/null +++ b/src/c/hardware/rasberrypi/Timing/u32RPI_delays.c @@ -0,0 +1,19 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani, Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralTiming.h" + +/* Function to insert some delay in code execution. */ + +void u32RPI_delays(uint32 time){ + delay(time); +} diff --git a/src/c/hardware/rasberrypi/gertBoard/RPI_gertboardSPISetup.c b/src/c/hardware/rasberrypi/gertBoard/RPI_gertboardSPISetup.c new file mode 100644 index 00000000..5724ebb4 --- /dev/null +++ b/src/c/hardware/rasberrypi/gertBoard/RPI_gertboardSPISetup.c @@ -0,0 +1,19 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralGertboard.h" + +int8 RPI_gertboardSPISetup(){ + int8 out; + out=gertboardSPISetup(); + return (out); +} diff --git a/src/c/hardware/rasberrypi/gertBoard/u16RPI_gertboardAnalogReads.c b/src/c/hardware/rasberrypi/gertBoard/u16RPI_gertboardAnalogReads.c new file mode 100644 index 00000000..433bed29 --- /dev/null +++ b/src/c/hardware/rasberrypi/gertBoard/u16RPI_gertboardAnalogReads.c @@ -0,0 +1,19 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralGertboard.h" + +uint16 u16RPI_gertboardAnalogReads(uint16 pin){ + uint16 out; + out=gertboardAnalogRead(pin); + return (out); +} diff --git a/src/c/hardware/rasberrypi/gertBoard/u16RPI_gertboardAnalogSetups.c b/src/c/hardware/rasberrypi/gertBoard/u16RPI_gertboardAnalogSetups.c new file mode 100644 index 00000000..a19aa6d0 --- /dev/null +++ b/src/c/hardware/rasberrypi/gertBoard/u16RPI_gertboardAnalogSetups.c @@ -0,0 +1,19 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralGertboard.h" + +int8 u16RPI_gertboardAnalogSetups(uint16 pinBase){ + int8 out; + out=gertboardAnalogSetup(pinBase); + return (out); +} diff --git a/src/c/hardware/rasberrypi/gertBoard/u16RPI_gertboardAnalogWrites.c b/src/c/hardware/rasberrypi/gertBoard/u16RPI_gertboardAnalogWrites.c new file mode 100644 index 00000000..2c8aa338 --- /dev/null +++ b/src/c/hardware/rasberrypi/gertBoard/u16RPI_gertboardAnalogWrites.c @@ -0,0 +1,17 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralGertboard.h" + +void u16RPI_gertboardAnalogWrites(uint16 pin,uint16 value){ + gertboardAnalogWrite(pin,value); +} diff --git a/src/c/hardware/rasberrypi/gpio/u8RPIDigitalIns.c b/src/c/hardware/rasberrypi/gpio/u8RPIDigitalIns.c deleted file mode 100644 index 7b84350f..00000000 --- a/src/c/hardware/rasberrypi/gpio/u8RPIDigitalIns.c +++ /dev/null @@ -1,24 +0,0 @@ -/* Copyright (C) 2016 - IIT Bombay - FOSSEE - - This file must be used under the terms of the CeCILL. - This source file is licensed as described in the file COPYING, which - you should have received as part of this distribution. The terms - are also available at - http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - Author: Siddhesh Wani - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -/* Function to read the state of the gpio pin */ - -#include "types.h" -#include "RPIPeripheralDigital.h" - -/*pin is reduced by one as array index starts from 0 and pin no starts from 1*/ -uint8 u8RPIDigitalIns(uint8 pin) -{ - uint8 state = 0; - state = digitalRead(phy_pin[pin-1]); - return (state); -} diff --git a/src/c/hardware/rasberrypi/gpio/u8RPIDigitalOuts.c b/src/c/hardware/rasberrypi/gpio/u8RPIDigitalOuts.c deleted file mode 100644 index f828f77e..00000000 --- a/src/c/hardware/rasberrypi/gpio/u8RPIDigitalOuts.c +++ /dev/null @@ -1,26 +0,0 @@ -/* Copyright (C) 2016 - IIT Bombay - FOSSEE - - This file must be used under the terms of the CeCILL. - This source file is licensed as described in the file COPYING, which - you should have received as part of this distribution. The terms - are also available at - http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - Author: Siddhesh Wani - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -/* Function to change the output state of the gpio pin */ - - -#include "types.h" -#include "RPIPeripheralDigital.h" - -/*pin is reduced by one as array index starts from 0 and pin no starts from 1*/ -void u8RPIDigitalOuts(uint8 pin, uint8 state) -{ - if (state == 0) /*low output*/ - digitalWrite(phy_pin[pin-1], LOW); - if (state == 1) /*high output*/ - digitalWrite(phy_pin[pin-1], HIGH); -} diff --git a/src/c/hardware/rasberrypi/gpio/u8RPIDigitalSetups.c b/src/c/hardware/rasberrypi/gpio/u8RPIDigitalSetups.c deleted file mode 100644 index f5fefe08..00000000 --- a/src/c/hardware/rasberrypi/gpio/u8RPIDigitalSetups.c +++ /dev/null @@ -1,39 +0,0 @@ -/* Copyright (C) 2016 - IIT Bombay - FOSSEE - - This file must be used under the terms of the CeCILL. - This source file is licensed as described in the file COPYING, which - you should have received as part of this distribution. The terms - are also available at - http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - Author: Siddhesh Wani - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -/* Function to setup digital pins - direction = 1 -> output - direction = 0 -> input -*/ - -#include "types.h" -#include "RPIPeripheralDigital.h" - - -/*This array maps pin numbers on RPi board, with pin numbers corrsponding -to WiringPi library*/ -int phy_pin[] = {17, 17, 8, 17, 9, 17, 7, 15, 17, 16, /*Pin 1 to 10*/ - 0, 1, 2, 17, 3, 4, 17, 5, 12, 17, /*Pin 11 to 20*/ - 13, 6, 14, 10, 17, 11, 30, 31, 21, 17, /*Pin 21 to 30*/ - 22, 26, 23, 17, 24, 27, 25, 28, 17, 29 }; /*Pin 31 to 40*/ - -/*pin is reduced by one as arrayiindex starts from 0 and pin no starts from 1*/ -void u8RPIDigitalSetups(uint8 pin, uint8 direction) -{ - if(direction == 1) /*Pin to be used as output*/ - pinMode(phy_pin[pin-1], OUTPUT); - else if(direction == 2) - pinMode(phy_pin[pin-1], PWM_OUTPUT); - else - pinMode(phy_pin[pin-1], INPUT); - -} diff --git a/src/c/hardware/rasberrypi/includes/RPIPeripheralDigital.h b/src/c/hardware/rasberrypi/includes/RPIPeripheralDigital.h index 2f40ffb2..842fd73b 100644 --- a/src/c/hardware/rasberrypi/includes/RPIPeripheralDigital.h +++ b/src/c/hardware/rasberrypi/includes/RPIPeripheralDigital.h @@ -19,15 +19,14 @@ extern "C" { #endif - #include "types.h" -#include "wiringPi.h" -extern int phy_pin[]; +extern int phy_pin[]; //Not needed??? -void u8RPIDigitalSetups(uint8 pin, uint8 direction); -void u8RPIDigitalOuts(uint8 pin, uint8 state); -uint8 u8RPIDigitalIns(uint8 pin); +uint8 u8RPI_digitalReads(uint8 pin); +uint8 RPI_digitalReadByte(); +void u8RPI_digitalWrites(uint8 pin, uint8 state); +void u8RPI_digitalWriteBytes(uint8 value); #ifdef __cplusplus } /* extern "C" */ diff --git a/src/c/hardware/rasberrypi/includes/RPIPeripheralGertboard.h b/src/c/hardware/rasberrypi/includes/RPIPeripheralGertboard.h new file mode 100644 index 00000000..3594d0a1 --- /dev/null +++ b/src/c/hardware/rasberrypi/includes/RPIPeripheralGertboard.h @@ -0,0 +1,32 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani, Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#ifndef __RPIPERIPHERALGERTBOARD_H__ +#define __RPIPERIPHERALGERTBOARD_H__ + +#ifdef __cplusplus +extern "C" { +#endif + +#include "types.h" +#include "gertboard.h" + +int8 RPI_gertboardSPISetup(); +uint16 u16RPI_gertboardAnalogReads(uint16 pin); +int8 u16RPI_gertboardAnalogSetups(uint16 pinBase); +void u16RPI_gertboardAnalogWrites(uint16 pin,uint16 value); + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /*__RPIPERIPHERALGERTBOARD_H__*/ diff --git a/src/c/hardware/rasberrypi/includes/RPIPeripheralI2C.h b/src/c/hardware/rasberrypi/includes/RPIPeripheralI2C.h new file mode 100644 index 00000000..6c8dfe14 --- /dev/null +++ b/src/c/hardware/rasberrypi/includes/RPIPeripheralI2C.h @@ -0,0 +1,37 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani, Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +/* This file declares functions and constants related to rasberrypi*/ + +#ifndef __RPIPERIPHERALI2C_H__ +#define __RPIPERIPHERALI2C_H__ + +#ifdef __cplusplus +extern "C" { +#endif + +#include "types.h" +#include "wiringPiI2C.h" + +int8 u16RPI_I2CSetups(uint8 arrd); +int8 u16RPI_I2CReads(uint16 fd); +int8 u16RPI_I2CReadReg8s(uint16 fd,uint16 reg); +int8 u16RPI_I2CReadReg16s(uint16 fd,uint16 reg); +int8 u16RPI_I2CWrites(uint16 fd,uint16 data); +int8 u16RPI_I2CWriteReg8s(uint16 fd,uint16 reg,uint16 data); +int8 u16RPI_I2CWriteReg16s(uint16 fd,uint16 reg,uint16 data); + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /*__RPIPERIPHERALI2C_H__*/ diff --git a/src/c/hardware/rasberrypi/includes/RPIPeripheralInterrupt.h b/src/c/hardware/rasberrypi/includes/RPIPeripheralInterrupt.h new file mode 100644 index 00000000..d9fc30f3 --- /dev/null +++ b/src/c/hardware/rasberrypi/includes/RPIPeripheralInterrupt.h @@ -0,0 +1,27 @@ + /* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani, Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in + */ +#ifndef __RPIPERIPHERALINTERRUPT_H__ +#define __RPIPERIPHERALINTERRUPT_H__ + +#ifdef __cplusplus +extern "C" { +#endif + +#include "types.h" + +int8 u8RPI_waitForInterrupts(uint8 pin,int16 time); + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /*__RPIPERIPHERALINTERRUPT_H__*/ diff --git a/src/c/hardware/rasberrypi/includes/RPIPeripheralLCD.h b/src/c/hardware/rasberrypi/includes/RPIPeripheralLCD.h new file mode 100644 index 00000000..654a31a3 --- /dev/null +++ b/src/c/hardware/rasberrypi/includes/RPIPeripheralLCD.h @@ -0,0 +1,39 @@ + /* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in + */ +#ifndef __RPIPERIPHERALLCD_H__ +#define __RPIPERIPHERALLCD_H__ + +#ifdef __cplusplus +extern "C" { +#endif + +#include "types.h" +#include "lcd.h" + +void u8RPI_lcdCharDefs(uint8 fd,uint8 index,uint8 d0,uint8 d1,uint8 d2,uint8 d3, uint8 d4,uint8 d5,uint8 d6,uint8 d7); +void u8RPI_lcdClears(uint8 fd); +void u8RPI_lcdCursorBlinks(uint8 fd,uint8 state); +void u8RPI_lcdCursors(uint8 fd,uint8 state); +void u8RPI_lcdDisplays(uint8 fd,uint8 state); +void u8RPI_lcdHomes(uint8 fd); +int8 u8RPI_lcdInits(uint8 rows,uint8 cols,uint8 bits,uint8 rs,uint8 strb,uint8 d0,uint8 d1,uint8 d2,uint8 d3,uint8 d4,uint8 d5,uint8 d6,uint8 d7); +void u8RPI_lcdPositions(uint8 fd,uint8 row,uint8 col); +void u8RPI_lcdPutchars(uint8 fd,uint8 character); +void u8RPI_lcdSendCommands(uint8 fd,uint8 cmd); +void u8RPI_lcdPutss(uint8 fd,char* msg,int size); +void u8RPI_lcdPrintfs(uint8 fd,char* data,int size); + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /*__RPIPERIPHERALLCD_H__*/ diff --git a/src/c/hardware/rasberrypi/includes/RPIPeripheralMcp.h b/src/c/hardware/rasberrypi/includes/RPIPeripheralMcp.h new file mode 100644 index 00000000..5304f14b --- /dev/null +++ b/src/c/hardware/rasberrypi/includes/RPIPeripheralMcp.h @@ -0,0 +1,36 @@ + /* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani, Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in + */ +#ifndef __RPIPERIPHERALMCP_H__ +#define __RPIPERIPHERALMCP_H__ + +#ifdef __cplusplus +extern "C" { +#endif + +#include "types.h" +#include "mcp23016.h" +#include "mcp23017.h" +#include "mcp23008.h" +#include "mcp23s17.h" +#include "mcp23s08.h" + +uint8 u16RPI_mcp23008Setups(uint16 pinBase,uint8 addr); +uint8 u16RPI_mcp23016Setups(uint16 pinBase,uint8 addr); +uint8 u16RPI_mcp23017Setups(uint16 pinBase,uint8 addr); +uint8 u16RPI_mcp23s08Setups(uint16 pinBase,uint8 spiport,uint8 devId); +uint8 u16RPI_mcp23s17Setups(uint16 pinBase,uint8 spiport,uint8 devId); + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /*__RPIPERIPHERALMCP_H__*/ diff --git a/src/c/hardware/rasberrypi/includes/RPIPeripheralMisc.h b/src/c/hardware/rasberrypi/includes/RPIPeripheralMisc.h new file mode 100644 index 00000000..0ef5acc1 --- /dev/null +++ b/src/c/hardware/rasberrypi/includes/RPIPeripheralMisc.h @@ -0,0 +1,31 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani, Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#ifndef __RPIPERIPHERALMISC_H__ +#define __RPIPERIPHERALMISC_H__ + +#ifdef __cplusplus +extern "C" { +#endif + +#include "types.h" +#include "sn3218.h" + +uint8 RPI_boardRev(); +void u8RPI_padDrives(uint8 group,uint8 strength); +int8 u16RPI_sn3218Setups(uint16 pinBase); + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /*__RPIPERIPHERALMISC_H__*/ diff --git a/src/c/hardware/rasberrypi/includes/RPIPeripheralPWM.h b/src/c/hardware/rasberrypi/includes/RPIPeripheralPWM.h index d463d9c9..f1d3024e 100644 --- a/src/c/hardware/rasberrypi/includes/RPIPeripheralPWM.h +++ b/src/c/hardware/rasberrypi/includes/RPIPeripheralPWM.h @@ -5,24 +5,24 @@ you should have received as part of this distribution. The terms are also available at http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - Author: Siddhesh Wani + Author: Siddhesh Wani, Jorawar Singh Organization: FOSSEE, IIT Bombay Email: toolbox@scilab.in */ #ifndef __RPIPERIPHERALPWM_H__ #define __RPIPERIPHERALPWM_H__ -#include "types.h" -#include "wiringPi.h" - #ifdef __cplusplus extern "C" { #endif -void u8RPIHardPWMWrites(uint8 pin, uint16 value); -void u8RPIHardPWMSetRanges(uint16 value); -void u8RPIHardPWMSetModes(uint8 mode); -void u8RPIHardPWMSetClocks(uint16 clk_divisor); +#include "types.h" + +void u8RPI_pwmWrites(uint8 pin,uint16 value); +void u32RPI_pwmRanges(uint32 value); +void gRPI_pwmModea(char* mode,int size); +void u16RPI_pwmClocks(uint16 divisor); +void u8RPI_pwmToneWrites(uint8 pin,uint16 value); #ifdef __cplusplus } /* extern "C" */ diff --git a/src/c/hardware/rasberrypi/includes/RPIPeripheralPcf.h b/src/c/hardware/rasberrypi/includes/RPIPeripheralPcf.h new file mode 100644 index 00000000..55459332 --- /dev/null +++ b/src/c/hardware/rasberrypi/includes/RPIPeripheralPcf.h @@ -0,0 +1,30 @@ + /* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani, Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in + */ +#ifndef __RPIPERIPHERALPCF_H__ +#define __RPIPERIPHERALPCF_H__ + +#ifdef __cplusplus +extern "C" { +#endif + +#include "types.h" +#include "pcf8574.h" +#include "pcf8591.h" + +uint8 u16RPI_pcf8574Setups(uint16 pinBase,uint8 addr); +uint8 u16RPI_pcf8591Setups(uint16 pinBase,uint8 addr); + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /*__RPIPERIPHERALPCF_H__*/ diff --git a/src/c/hardware/rasberrypi/includes/RPIPeripheralPiGlow.h b/src/c/hardware/rasberrypi/includes/RPIPeripheralPiGlow.h new file mode 100644 index 00000000..d2dcd13c --- /dev/null +++ b/src/c/hardware/rasberrypi/includes/RPIPeripheralPiGlow.h @@ -0,0 +1,31 @@ + /* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani, Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in + */ +#ifndef __RPIPERIPHERALPIGLOW_H__ +#define __RPIPERIPHERALPIGLOW_H__ + +#ifdef __cplusplus +extern "C" { +#endif + +#include "types.h" +#include "piGlow.h" + +void u8RPI_piGlowSetups(uint8 clear); +void u8RPI_piGlow1s(uint8 leg,uint8 ring,uint8 intensity); +void u8RPI_piGlowLegs(uint8 leg,uint8 intensity); +void u8RPI_piGlowRings(uint8 ring,uint8 intensity); + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /*__RPIPERIPHERALPIGLOW_H__*/ diff --git a/src/c/hardware/rasberrypi/includes/RPIPeripheralPinISR.h b/src/c/hardware/rasberrypi/includes/RPIPeripheralPinISR.h deleted file mode 100644 index fc5a8d04..00000000 --- a/src/c/hardware/rasberrypi/includes/RPIPeripheralPinISR.h +++ /dev/null @@ -1,26 +0,0 @@ - /* Copyright (C) 2016 - IIT Bombay - FOSSEE - - This file must be used under the terms of the CeCILL. - This source file is licensed as described in the file COPYING, which - you should have received as part of this distribution. The terms - are also available at - http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - Author: Siddhesh Wani - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in - */ -#ifndef __RPIPERIPHERALPINISR_H__ -#define __RPIPERIPHERALPINISR_H__ - - -#ifdef __cplusplus -extern "C" { -#endif - -int16 i16RPIPinISRs(uint8 pin, uint8 edgetype, void (*ISRFunction)(void)); - -#ifdef __cplusplus -} /* extern "C" */ -#endif - -#endif /*__RPIPERIPHERALPINISR_H__*/ diff --git a/src/c/hardware/rasberrypi/includes/RPIPeripheralPinMap.h b/src/c/hardware/rasberrypi/includes/RPIPeripheralPinMap.h new file mode 100644 index 00000000..39c2379d --- /dev/null +++ b/src/c/hardware/rasberrypi/includes/RPIPeripheralPinMap.h @@ -0,0 +1,28 @@ + /* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani, Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in + */ +#ifndef __RPIPERIPHERALPINMAP_H__ +#define __RPIPERIPHERALPINMAP_H__ + +#ifdef __cplusplus +extern "C" { +#endif + +#include "types.h" + +int8 u8RPI_physToGpios(uint8 pin); +int8 u8RPI_wpiToGpios(uint8 pin); + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /*__RPIPERIPHERALPINMAP_H__*/ diff --git a/src/c/hardware/rasberrypi/includes/RPIPeripheralSerial.h b/src/c/hardware/rasberrypi/includes/RPIPeripheralSerial.h index 14df95b4..67284bd0 100644 --- a/src/c/hardware/rasberrypi/includes/RPIPeripheralSerial.h +++ b/src/c/hardware/rasberrypi/includes/RPIPeripheralSerial.h @@ -5,42 +5,28 @@ you should have received as part of this distribution. The terms are also available at http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - Author: Siddhesh Wani + Author: Siddhesh Wani, Jorawar Singh Organization: FOSSEE, IIT Bombay Email: toolbox@scilab.in */ #ifndef __RPIPERIPHERALSERIAL_H__ #define __RPIPERIPHERALSERIAL_H__ -#include "types.h" -#include "wiringSerial.h" - #ifdef __cplusplus extern "C" { #endif -int u8RPISerialSetups(char* port, int baudrate); -void u8RPISerialCloses(int fd); - -void u8RPISerialSendChars(int fd, uint8 data); -void u8RPISerialSendDatas(int fd, uint8 data); -void i8RPISerialSendDatas(int fd, int8 data); -void u16RPISerialSendDatas(int fd, uint16 data); -void i16RPISerialSendDatas(int fd, int16 data); -void sRPISerialSendDatas(int fd, float data); -void dRPISerialSendDatas(int fd, double data); -void u8RPISerialSendDataa(int fd, uint8* data, int size); -void i8RPISerialSendDataa(int fd, int8* data, int size); -void u16RPISerialSendDataa(int fd, uint16* data, int size); -void i16RPISerialSendDataa(int fd, int16* data, int size); -void sRPISerialSendDataa(int fd, float* data, int size); -void dRPISerialSendDataa(int fd, double* data, int size); -void gRPISerialSendDatas(int fd, uint8* data, int size); - -int16 i16RPISerialDataAvails(int fd); -int16 i16RPISerialGetChars(int fd); +#include "types.h" +#include "wiringSerial.h" -void u8RPISerialFlushs(int fd); +int8 gRPI_serialOpena(char* device,int size,uint32 baud); +void u8RPI_serialCloses(uint8 fd); +uint8 u8RPI_serialDataAvails(uint8 fd); +void u8RPI_serialFlushs(uint8 fd); +void u8RPI_serialGetchars(uint8 fd,char* out); +void u8RPI_serialPrintfs(uint8 fd,char* msg,int size); +void u8RPI_serialPutchars(uint8 fd,uint8 character); +void u8RPI_serialPutss(uint8 fd,char* character,int size); #ifdef __cplusplus } /* extern "C" */ diff --git a/src/c/hardware/rasberrypi/includes/RPIPeripheralSetup.h b/src/c/hardware/rasberrypi/includes/RPIPeripheralSetup.h new file mode 100644 index 00000000..373f0648 --- /dev/null +++ b/src/c/hardware/rasberrypi/includes/RPIPeripheralSetup.h @@ -0,0 +1,35 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani, Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +/* This file declares functions and constants related to Setup*/ + +#ifndef __RPIPERIPHERALSETUP_H__ +#define __RPIPERIPHERALSETUP_H__ + +#ifdef __cplusplus +extern "C" { +#endif + +#include "types.h" +#include "wiringPi.h" + +int8 gRPI_pinNumberinga(char* seq,int size); +uint8 u8RPI_getAlts(uint8 pin); +void u8RPI_pinModeAlts(uint8 pin,uint8 mode); +void u8RPI_pinModes(uint8 pin,char* mode,int size); +void u8RPI_pullControls(uint8 pin,char* mode,int size); + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /*__RPIPERIPHERALSETUP_H__*/ diff --git a/src/c/hardware/rasberrypi/includes/RPIPeripheralShift.h b/src/c/hardware/rasberrypi/includes/RPIPeripheralShift.h new file mode 100644 index 00000000..4c58bb77 --- /dev/null +++ b/src/c/hardware/rasberrypi/includes/RPIPeripheralShift.h @@ -0,0 +1,31 @@ + /* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani, Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in + */ +#ifndef __RPIPERIPHERALSHIFT_H__ +#define __RPIPERIPHERALSHIFT_H__ + +#ifdef __cplusplus +extern "C" { +#endif + +#include "types.h" +#include "wiringShift.h" +#include "sr595.h" + +uint8 u8RPI_shiftIns(uint8 dpin,uint8 cpin,uint8 order); +void u8RPI_shiftOuts(uint8 dpin,uint8 cpin,uint8 order,uint8 val); +int8 u16RPI_sr595Setups(uint16 pinBase,uint8 nPins,uint8 dP,uint8 cP,uint8 lP); + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /*__RPIPERIPHERALSHIFT_H__*/ diff --git a/src/c/hardware/rasberrypi/includes/RPIPeripheralSoft.h b/src/c/hardware/rasberrypi/includes/RPIPeripheralSoft.h new file mode 100644 index 00000000..9494506e --- /dev/null +++ b/src/c/hardware/rasberrypi/includes/RPIPeripheralSoft.h @@ -0,0 +1,37 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani, Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +/* This file declares functions and constants related to Setup*/ + +#ifndef __RPIPERIPHERALSOFT_H__ +#define __RPIPERIPHERALSOFT_H__ + +#ifdef __cplusplus +extern "C" { +#endif + +#include "types.h" +#include "softPwm.h" +#include "softTone.h" + +uint8 u8RPI_softPwmCreates(uint8 pin,uint16 ival,uint16 range); +void u8RPI_softPwmStops(uint8 pin); +void u8RPI_softPwmWrites(uint8 pin,uint16 value); +uint8 u8RPI_softToneCreates(uint8 pin); +void u8RPI_softToneStops(uint8 pin); +void u8RPI_softToneWrites(uint8 pin,uint32 value); + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /*__RPIPERIPHERALSOFT_H__*/ diff --git a/src/c/hardware/rasberrypi/includes/RPIPeripheralThreading.h b/src/c/hardware/rasberrypi/includes/RPIPeripheralThreading.h deleted file mode 100644 index a7b2adb4..00000000 --- a/src/c/hardware/rasberrypi/includes/RPIPeripheralThreading.h +++ /dev/null @@ -1,28 +0,0 @@ - /* Copyright (C) 2016 - IIT Bombay - FOSSEE - - This file must be used under the terms of the CeCILL. - This source file is licensed as described in the file COPYING, which - you should have received as part of this distribution. The terms - are also available at - http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - Author: Siddhesh Wani - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in - */ -#ifndef __RPIPERIPHERALTHREADING_H__ -#define __RPIPERIPHERALTHREADING_H__ - -#include "types.h" -#include "wiringPi.h" - -#ifdef __cplusplus -extern "C" { -#endif - -uint16 RPIThreadCreate(void *(*threadFunction)(void*)); - -#ifdef __cplusplus -} /* extern "C" */ -#endif - -#endif /*__RPIPERIPHERALTHREADING_H__*/ diff --git a/src/c/hardware/rasberrypi/includes/RPIPeripheralTiming.h b/src/c/hardware/rasberrypi/includes/RPIPeripheralTiming.h index 854073f3..e75a5394 100644 --- a/src/c/hardware/rasberrypi/includes/RPIPeripheralTiming.h +++ b/src/c/hardware/rasberrypi/includes/RPIPeripheralTiming.h @@ -5,7 +5,7 @@ you should have received as part of this distribution. The terms are also available at http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - Author: Siddhesh Wani + Author: Siddhesh Wani, Jorawar Singh Organization: FOSSEE, IIT Bombay Email: toolbox@scilab.in */ @@ -22,10 +22,10 @@ extern "C" { #include "types.h" #include "wiringPi.h" -void u16RPIDelayMillis(uint16 time); -void u16RPIDelayMicros(uint16 time); -uint32 u32RPIGetMillis(); -uint32 u32RPIGetMicros(); +void u32RPI_delays(uint32 time); +void u32RPI_delayMicros(uint32 time); +uint32 RPI_millis(); +uint32 RPI_micros(); #ifdef __cplusplus } /* extern "C" */ diff --git a/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralDigital.h b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralDigital.h index 40a8e1a4..7de051fc 100644 --- a/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralDigital.h +++ b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralDigital.h @@ -5,7 +5,7 @@ you should have received as part of this distribution. The terms are also available at http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - Author: Siddhesh Wani + Author: Siddhesh Wani, Jorawar Singh Organization: FOSSEE, IIT Bombay Email: toolbox@scilab.in */ @@ -20,14 +20,13 @@ extern "C" { #endif -#define RPI_DigitalSetup(in1,in2) u8RPIDigitalSetups((uint8) in1, (uint8) in2); - -#define RPI_DigitalIn(in1) u8RPIDigitalIns((uint8) in1); - -#define RPI_DigitalOut(in1,in2) u8RPIDigitalOuts((uint8) in1, (uint8) in2); +#define u80RPI_digitalReadu80(pin) u8RPI_digitalReads(pin); +#define RPI_digitalReadByteu80() RPI_digitalReadByte(); +#define u80u80RPI_digitalWrite(pin,state) u8RPI_digitalWrites(pin,state); +#define u80RPI_digitalWriteByte(value) u8RPI_digitalWriteBytes(value); #ifdef __cplusplus } /* extern "C" */ #endif -#endif /* !__RPIPERIPHERALGPIO_H__ */ +#endif /* !__INT_RPIPERIPHERALGPIO_H__ */ diff --git a/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralGertboard.h b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralGertboard.h new file mode 100644 index 00000000..cea8bb6e --- /dev/null +++ b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralGertboard.h @@ -0,0 +1,32 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani, Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#ifndef __INT_RPIPERIPHERALGERTBOARD_H__ +#define __INT_RPIPERIPHERALGERTBOARD_H__ + +#include "types.h" +#include "RPIPeripheralGertboard.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#define RPI_gertboardSPISetupi80() RPI_gertboardSPISetup(); +#define u160RPI_gertboardAnalogSetupi80(pinBase) u16RPI_gertboardAnalogSetups(pinBase); +#define u160RPI_gertboardAnalogReadu160(pin) u160RPI_gertboardAnalogReads(pin); +#define u160u160RPI_gertboardAnalogWrite(pin,value) u160RPI_gertboardAnalogWrites(pin,value); + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /* !__INT_RPIPERIPHERALGERTBOARD_H__ */ diff --git a/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralI2C.h b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralI2C.h new file mode 100644 index 00000000..f18fd57c --- /dev/null +++ b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralI2C.h @@ -0,0 +1,35 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#ifndef __INT_RPIPERIPHERALI2C_H__ +#define __INT_RPIPERIPHERALI2C_H__ + +#include "types.h" +#include "RPIPeripheralI2C.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#define u160RPI_I2CSetupi80(arrd) u16RPI_I2CSetups(arrd); +#define u160RPI_I2CReadi80(fd) u16RPI_I2CReads(fd); +#define u160u160RPI_I2CReadReg8i80(fd,reg) u16RPI_I2CReadReg8s(fd,reg); +#define u160u160RPI_I2CReadReg16i80(fd,reg) u16RPI_I2CReadReg16s(fd,reg); +#define u160u160RPI_I2CWritei80(fd,data) u16RPI_I2CWrites(fd,data); +#define u160u160u160RPI_I2CWriteReg8i80(fd,reg,data) u16RPI_I2CWriteReg8s(fd,reg,data); +#define u160u160u160RPI_I2CWriteReg16i80(fd,reg,data) u16RPI_I2CWriteReg16s(fd,reg,data); + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /* !__INT_RPIPERIPHERALI2C_H__ */ diff --git a/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralInterrupt.h b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralInterrupt.h new file mode 100644 index 00000000..cb55572a --- /dev/null +++ b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralInterrupt.h @@ -0,0 +1,29 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#ifndef __INT_RPIPERIPHERALINTERRUPT_H__ +#define __INT_RPIPERIPHERALINTERRUPT_H__ + +#include "types.h" +#include "RPIPeripheralInterrupt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#define u80i160RPI_waitForInterrupti80(pin,time) u8RPI_waitForInterrupts(pin,time); + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /* !__INT_RPIPERIPHERALINTERRUPT_H__ */ diff --git a/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralLCD.h b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralLCD.h new file mode 100644 index 00000000..da23beec --- /dev/null +++ b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralLCD.h @@ -0,0 +1,40 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#ifndef __INT_RPIPERIPHERALLCD_H__ +#define __INT_RPIPERIPHERALLCD_H__ + +#include "types.h" +#include "RPIPeripheralLCD.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#define u80u80u80u80u80u80u80u80u80u80RPI_lcdCharDef(fd,index,d0,d1,d2,d3,d4,d5,d6,d7) u8RPI_lcdCharDefs(fd,index,d0,d1,d2,d3,d4,d5,d6,d7); +#define u80RPI_lcdClear(fd) u8RPI_lcdClears(fd); +#define u80u80RPI_lcdCursorBlink(fd,state) u8RPI_lcdCursorBlinks(fd,state); +#define u80u80RPI_lcdCursor(fd,state) u8RPI_lcdCursors(fd,state); +#define u80u80RPI_lcdDisplay(fd,state) u8RPI_lcdDisplays(fd,state); +#define u80RPI_lcdHome(fd) u8RPI_lcdHomes(fd); +#define u80u80u80u80u80u80u80u80u80u80u80u80u80RPI_lcdIniti80(rows,cols,bits,rs,strb,d0,d1,d2,d3,d4,d5,d6,d7) u8RPI_lcdInits(rows,cols,bits,rs,strb,d0,d1,d2,d3,d4,d5,d6,d7); +#define u80u80u80RPI_lcdPosition(fd,row,col) u8RPI_lcdPositions(fd,row,col); +#define u80u80RPI_lcdPutchar(fd,char) u8RPI_lcdPutchars(fd,char); +#define u80u80RPI_lcdSendCommand(fd,cmd) u8RPI_lcdSendCommands(fd,cmd); +#define u80g2RPI_lcdPutss(fd,msg,size) u8RPI_lcdPutss(fd,msg,size[1]);; +#define u80g2RPI_lcdPrintfs(fd,data,size) u8RPI_lcdPrintfs(fd,data,size[1]); + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /* !__INT_RPIPERIPHERALLCD_H__ */ diff --git a/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralMcp.h b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralMcp.h new file mode 100644 index 00000000..c044cf7f --- /dev/null +++ b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralMcp.h @@ -0,0 +1,33 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#ifndef __INT_RPIPERIPHERALMCP_H__ +#define __INT_RPIPERIPHERALMCP_H__ + +#include "types.h" +#include "RPIPeripheralMcp.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#define u160u80RPI_mcp23008Setupu80(pinBase,addr) u16RPI_mcp23008Setups(pinBase,addr); +#define u160u80RPI_mcp23016Setupu80(pinBase,addr) u16RPI_mcp23016Setups(pinBase,addr); +#define u160u80RPI_mcp23017Setupu80(pinBase,addr) u16RPI_mcp23017Setups(pinBase,addr); +#define u160u80u80RPI_mcp23s08Setupu80(pinBase,spiport,devId) u16RPI_mcp23s08Setups(pinBase,spiport,devId); +#define u160u80u80RPI_mcp23s17Setupu80(pinBase,spiport,devId) u16RPI_mcp23s17Setups(pinBase,spiport,devId); + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /* !__INT_RPIPERIPHERALMCP_H__ */ diff --git a/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralMisc.h b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralMisc.h new file mode 100644 index 00000000..b836d683 --- /dev/null +++ b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralMisc.h @@ -0,0 +1,31 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#ifndef __INT_RPIPERIPHERALMISC_H__ +#define __INT_RPIPERIPHERALMISC_H__ + +#include "types.h" +#include "RPIPeripheralMisc.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#define RPI_boardRevu80() RPI_boardRev(); +#define u80u80RPI_padDrive(group,strength) u8RPI_padDrives(group,strength); +#define u160RPI_sn3218Setupi80(pinBase) u16RPI_sn3218Setups(pinBase); + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /* !__INT_RPIPERIPHERALMISC_H__ */ diff --git a/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralPWM.h b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralPWM.h index 8c8f4c62..49c58c04 100644 --- a/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralPWM.h +++ b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralPWM.h @@ -1,30 +1,33 @@ - /* Copyright (C) 2016 - IIT Bombay - FOSSEE +/* Copyright (C) 2016 - IIT Bombay - FOSSEE This file must be used under the terms of the CeCILL. This source file is licensed as described in the file COPYING, which you should have received as part of this distribution. The terms are also available at http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - Author: Siddhesh Wani + Author: Jorawar Singh, Siddhesh Wani Organization: FOSSEE, IIT Bombay Email: toolbox@scilab.in - */ +*/ + #ifndef __INT_RPIPERIPHERALPWM_H__ #define __INT_RPIPERIPHERALPWM_H__ #include "types.h" +#include "RPIPeripheralPWM.h" #ifdef __cplusplus extern "C" { #endif -#define RPI_HardPWMWrite(pin,value) u8RPIHardPWMWrites((uint8)pin,(uint16)value) -#define RPI_HardPWMSetRange(value) u8RPIHardPWMSetRanges((uint16)value) -#define RPI_HardPWMSetMode(mode) u8RPIHardPWMSetModes((uint8)mode) -#define RPI_HardPWMSetClock(clk_divisor) u8RPIHardPWMSetClocks((uint16)clk_divisor) +#define u80u160RPI_pwmWrite(pin,value) u8RPI_pwmWrites(pin,value); +#define u320RPI_pwmRange(value) u32RPI_pwmRanges(value); +#define g2RPI_pwmMode(mode) gRPI_pwmModea(mode); +#define u160RPI_pwmClock(divisor) u16RPI_pwmClocks(divisor); +#define u80u160RPI_pwmToneWrite(pin,value) u8RPI_pwmToneWrites(pin,value); #ifdef __cplusplus } /* extern "C" */ #endif -#endif /*__INT_RPIPERIPHERALPWM_H__*/ +#endif /* !__INT_RPIPERIPHERALPWM_H__ */ diff --git a/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralPcf.h b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralPcf.h new file mode 100644 index 00000000..e3d2009d --- /dev/null +++ b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralPcf.h @@ -0,0 +1,30 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#ifndef __INT_RPIPERIPHERALPCF_H__ +#define __INT_RPIPERIPHERALPCF_H__ + +#include "types.h" +#include "RPIPeripheralPcf.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#define u160u80RPI_pcf8574Setupu80(pinBase,addr) u16RPI_pcf8574Setups(pinBase,addr); +#define u160u80RPI_pcf8591Setupu80(pinBase,addr) u16RPI_pcf8591Setups(pinBase,addr); + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /* !__INT_RPIPERIPHERALPCF_H__ */ diff --git a/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralPiGlow.h b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralPiGlow.h new file mode 100644 index 00000000..08056f94 --- /dev/null +++ b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralPiGlow.h @@ -0,0 +1,32 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#ifndef __INT_RPIPERIPHERALPIGLOW_H__ +#define __INT_RPIPERIPHERALPIGLOW_H__ + +#include "types.h" +#include "RPIPeripheralPiGlow.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#define u80RPI_piGlowSetup(clear) u8RPI_piGlowSetups(clear); +#define u80u80u80RPI_piGlow1(leg,ring,intensity) u8RPI_piGlow1s(leg,ring,intensity); +#define u80u80RPI_piGlowLeg(leg,intensity) u8RPI_piGlowLegs(leg,intensity); +#define u80u80RPI_piGlowRing(ring,intensity) u8RPI_piGlowRings(ring,intensity); + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /* !__INT_RPIPERIPHERALPIGLOW_H__ */ diff --git a/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralPinISR.h b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralPinISR.h deleted file mode 100644 index b2c1ed16..00000000 --- a/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralPinISR.h +++ /dev/null @@ -1,25 +0,0 @@ - /* Copyright (C) 2016 - IIT Bombay - FOSSEE - - This file must be used under the terms of the CeCILL. - This source file is licensed as described in the file COPYING, which - you should have received as part of this distribution. The terms - are also available at - http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - Author: Siddhesh Wani - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in - */ -#ifndef __INT_RPIPERIPHERALPINISR_H__ -#define __INT_RPIPERIPHERALPINISR_H__ - -#ifdef __cplusplus -extern "C" { -#endif - -#define RPI_PinISR(pin,edge,funname) i16RPIPinISRs((uint8)pin,(uint8)edge,funname) - -#ifdef __cplusplus -} /* extern "C" */ -#endif - -#endif /*__INT_RPIPERIPHERALPINISR_H__*/ diff --git a/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralPinMap.h b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralPinMap.h new file mode 100644 index 00000000..39c5c011 --- /dev/null +++ b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralPinMap.h @@ -0,0 +1,30 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#ifndef __INT_RPIPERIPHERALPINMAP_H__ +#define __INT_RPIPERIPHERALPINMAP_H__ + +#include "types.h" +#include "RPIPeripheralPinMap.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#define u80RPI_physToGpioi80(pin) u8RPI_physToGpios(pin); +#define u80RPI_wpiToGpioi80(pin) u8RPI_wpiToGpios(pin); + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /* !__INT_RPIPERIPHERALPINMAP_H__ */ diff --git a/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralSerial.h b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralSerial.h index 5d53b98b..e0832f97 100644 --- a/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralSerial.h +++ b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralSerial.h @@ -1,47 +1,36 @@ - /* Copyright (C) 2016 - IIT Bombay - FOSSEE +/* Copyright (C) 2016 - IIT Bombay - FOSSEE This file must be used under the terms of the CeCILL. This source file is licensed as described in the file COPYING, which you should have received as part of this distribution. The terms are also available at http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - Author: Siddhesh Wani + Author: Jorawar Singh, Siddhesh Wani Organization: FOSSEE, IIT Bombay Email: toolbox@scilab.in - */ +*/ + #ifndef __INT_RPIPERIPHERALSERIAL_H__ #define __INT_RPIPERIPHERALSERIAL_H__ #include "types.h" +#include "RPIPeripheralSerial.h" #ifdef __cplusplus extern "C" { #endif -#define RPI_SerialSetup(port,size,baudrate) u16RPISerialSetups(port,baudrate) -#define RPI_SerialClose(fd) u8RPISerialCloses(fd) - -#define u80u80RPI_SerialSendData(fd,data) u8RPISerialSendDatas(fd,data) -#define u80i80RPI_SerialSendData(fd,data) i8RPISerialSendDatas(fd,data) -#define u80u160RPI_SerialSendData(fd,data) u16RPISerialSendDatas(fd,data) -#define u80i160RPI_SerialSendData(fd,data) i16RPISerialSendDatas(fd,data) -#define u80s0RPI_SerialSendData(fd,data) sRPISerialSendDatas(fd,data) -#define u80d0RPI_SerialSendData(fd,data) dRPISerialSendDatas(fd,data) - -#define u80u82RPI_SerialSendData(fd,data,size) u8RPISerialSendDataa(fd,data,size[0]*size[1]); -#define u80i82RPI_SerialSendData(fd,data,size) i8RPISerialSendDataa(fd,data,size[0]*size[1]); -#define u80u162RPI_SerialSendData(fd,data,size) u16RPISerialSendDataa(fd,data,size[0]*size[1]); -#define u80i162RPI_SerialSendData(fd,data,size) i16RPISerialSendDataa(fd,data,size[0]*size[1]); -#define u80s2RPI_SerialSendData(fd,data,size) sRPISerialSendDataa(fd,data,size[0]*size[1]); -#define u80d2RPI_SerialSendData(fd,data,size) dRPISerialSendDataa(fd,data,size[0]*size[1]); -#define u80g2RPI_SerialSendData(fd,data,size) gRPISerialSendDatas(fd,data,size[0]*size[1]); - -#define RPI_SerialDataAvail(fd) i16RPISerialDataAvails(fd) -#define RPI_SerialGetChar(fd) i16RPISerialGetChars(fd) -#define RPI_SerialFlush(fd) u8RPISerialFlushs(fd) +#define g2u320RPI_serialOpeni80(device,size,baud) gRPI_serialOpena(device,size[1],baud); +#define u80RPI_serialClose(fd) u8RPI_serialCloses(fd); +#define u80RPI_serialDataAvailu80(fd) u8RPI_serialDataAvails(fd); +#define u80RPI_serialFlush(fd) u8RPI_serialFlushs(fd); +#define u80RPI_serialGetcharg2(fd,out) u8RPI_serialGetchars(fd,out); +#define u80g2RPI_serialPrintf(fd,msg,size) u8RPI_serialPrintfs(fd,msg,size[1]); +#define u80u80RPI_serialPutchar(fd,character) u8RPI_serialPutchars(fd,character); +#define u80g2RPI_serialPutsg2(fd,character,size) u8RPI_serialPutss(fd,character,size[1]); #ifdef __cplusplus } /* extern "C" */ #endif -#endif /*__INT_RPIPERIPHERALSERIAL_H__*/ +#endif /* !__INT_RPIPERIPHERALSERIAL_H__ */ diff --git a/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralSetup.h b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralSetup.h new file mode 100644 index 00000000..0e1f7b42 --- /dev/null +++ b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralSetup.h @@ -0,0 +1,32 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#ifndef __INT_RPIPERIPHERALSETUP_H__ +#define __INT_RPIPERIPHERALSETUP_H__ + +#include "RPIPeripheralSetup.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#define g2RPI_pinNumberingi80(seq,size) gRPI_pinNumberinga(seq,size[1]); +#define u80RPI_getAltu80(pin) u8RPI_getAlts(pin); +#define u80u80RPI_pinModeAlt(pin,mode) u8RPI_pinModeAlts(pin,mode); +#define u80g2RPI_pinMode(pin,mode,size) u8RPI_pinModes(pin,mode,size[1]); +#define u80g2RPI_pullControl(pin,mode,size) u8RPI_pullControls(pin,mode,size[1]); + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /* !__INT_RPIPERIPHERALSETUP_H__ */ diff --git a/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralShift.h b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralShift.h new file mode 100644 index 00000000..6b142bd5 --- /dev/null +++ b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralShift.h @@ -0,0 +1,31 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#ifndef __INT_RPIPERIPHERALSHIFT_H__ +#define __INT_RPIPERIPHERALSHIFT_H__ + +#include "types.h" +#include "RPIPeripheralShift.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#define u80u80u80RPI_shiftInu80(dpin,cpin,order) u8RPI_shiftIns(dpin,cpin,order); +#define u80u80u80u80RPI_shiftOut(dpin,cpin,order,val) u8RPI_shiftOuts(dpin,cpin,order,val); +#define u160u80u80u80u80RPI_sr595Setupi80(pinBase,nPins,dP,cP,lP) u16RPI_sr595Setups(pinBase,nPins,dP,cP,lP); + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /* !__INT_RPIPERIPHERALSHIFT_H__ */ diff --git a/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralSoft.h b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralSoft.h new file mode 100644 index 00000000..80372b26 --- /dev/null +++ b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralSoft.h @@ -0,0 +1,34 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#ifndef __INT_RPIPERIPHERALSOFT_H__ +#define __INT_RPIPERIPHERALSOFT_H__ + +#include "types.h" +#include "RPIPeripheralSoft.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#define u80u160u160RPI_softPwmCreateu80(pin,ival,range) u8RPI_softPwmCreates(pin,ival,range); +#define u80RPI_softPwmStop(pin) u8RPI_softPwmStops(pin); +#define u80u160RPI_softPwmWrite(pin,value) u8RPI_softPwmWrites(pin,value); +#define u80RPI_softToneCreateu80(pin) u8RPI_softToneCreates(pin); +#define u80RPI_softToneStop(pin) u8RPI_softToneStops(pin); +#define u80u320RPI_softToneWrite(pin,value) u8RPI_softToneWrites(pin,value); + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /* !__INT_RPIPERIPHERALSOFT_H__ */ diff --git a/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralThreading.h b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralThreading.h deleted file mode 100644 index 68ed6e0e..00000000 --- a/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralThreading.h +++ /dev/null @@ -1,25 +0,0 @@ - /* Copyright (C) 2016 - IIT Bombay - FOSSEE - - This file must be used under the terms of the CeCILL. - This source file is licensed as described in the file COPYING, which - you should have received as part of this distribution. The terms - are also available at - http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - Author: Siddhesh Wani - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in - */ -#ifndef __INT_RPIPERIPHERALTHREADING_H__ -#define __INT_RPIPERIPHERALTHREADING_H__ - -#ifdef __cplusplus -extern "C" { -#endif - -#define RPI_ThreadCreate(fn) RPIThreadCreate(fn); - -#ifdef __cplusplus -} /* extern "C" */ -#endif - -#endif /*__INT_RPIPERIPHERALTHREADING_H__*/ diff --git a/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralTiming.h b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralTiming.h index 1a704655..5c4e6184 100644 --- a/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralTiming.h +++ b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralTiming.h @@ -5,12 +5,11 @@ you should have received as part of this distribution. The terms are also available at http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - Author: Siddhesh Wani + Author: Jorawar Singh, Siddhesh Wani Organization: FOSSEE, IIT Bombay Email: toolbox@scilab.in */ - #ifndef __INT_RPIPERIPHERALTIMING_H__ #define __INT_RPIPERIPHERALTIMING_H__ @@ -21,14 +20,13 @@ extern "C" { #endif -#define RPI_DelayMicro(in1) u16RPIDelayMicros((uint16) in1) -#define RPI_DelayMilli(in1) u16RPIDelayMillis((uint16) in1) -#define RPI_GetMicro() u32RPIGetMicros() -#define RPI_GetMillis() u32RPIGetMillis() - +#define u320RPI_delay(time) u32RPI_delays(time); +#define u320RPI_delayMicro(time) u32RPI_delayMicros(time); +#define RPI_millisu320() RPI_millis(); +#define RPI_microsu320() RPI_micros(); #ifdef __cplusplus } /* extern "C" */ #endif -#endif /* !__RPIPERIPHERALTIMING_H__ */ +#endif /* !__INT_RPIPERIPHERALTIMING_H__ */ diff --git a/src/c/hardware/rasberrypi/lcd/u8RPI_lcdCharDefs.c b/src/c/hardware/rasberrypi/lcd/u8RPI_lcdCharDefs.c new file mode 100644 index 00000000..b85d82fd --- /dev/null +++ b/src/c/hardware/rasberrypi/lcd/u8RPI_lcdCharDefs.c @@ -0,0 +1,18 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralLCD.h" + +void u8RPI_lcdCharDefs(uint8 fd,uint8 index,uint8 d0,uint8 d1,uint8 d2,uint8 d3, uint8 d4,uint8 d5,uint8 d6,uint8 d7){ + uint8 data[8]={d0,d1,d2,d3,d4,d5,d6,d7}; + lcdCharDef(fd,index,data); +} diff --git a/src/c/hardware/rasberrypi/lcd/u8RPI_lcdClears.c b/src/c/hardware/rasberrypi/lcd/u8RPI_lcdClears.c new file mode 100644 index 00000000..659cdf07 --- /dev/null +++ b/src/c/hardware/rasberrypi/lcd/u8RPI_lcdClears.c @@ -0,0 +1,17 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralLCD.h" + +void u8RPI_lcdClears(uint8 fd){ + lcdClear(fd); +} diff --git a/src/c/hardware/rasberrypi/lcd/u8RPI_lcdCursorBlinks.c b/src/c/hardware/rasberrypi/lcd/u8RPI_lcdCursorBlinks.c new file mode 100644 index 00000000..bf0c48e3 --- /dev/null +++ b/src/c/hardware/rasberrypi/lcd/u8RPI_lcdCursorBlinks.c @@ -0,0 +1,17 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralLCD.h" + +void u8RPI_lcdCursorBlinks(uint8 fd,uint8 state){ + lcdCursorBlink(fd,state); +} diff --git a/src/c/hardware/rasberrypi/lcd/u8RPI_lcdCursors.c b/src/c/hardware/rasberrypi/lcd/u8RPI_lcdCursors.c new file mode 100644 index 00000000..8bb02715 --- /dev/null +++ b/src/c/hardware/rasberrypi/lcd/u8RPI_lcdCursors.c @@ -0,0 +1,17 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralLCD.h" + +void u8RPI_lcdCursors(uint8 fd,uint8 state){ + lcdCursor(fd,state); +} diff --git a/src/c/hardware/rasberrypi/lcd/u8RPI_lcdDisplays.c b/src/c/hardware/rasberrypi/lcd/u8RPI_lcdDisplays.c new file mode 100644 index 00000000..7425ebe9 --- /dev/null +++ b/src/c/hardware/rasberrypi/lcd/u8RPI_lcdDisplays.c @@ -0,0 +1,17 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralLCD.h" + +void u8RPI_lcdDisplays(uint8 fd,uint8 state){ + lcdDisplay(fd,state); +} diff --git a/src/c/hardware/rasberrypi/lcd/u8RPI_lcdHomes.c b/src/c/hardware/rasberrypi/lcd/u8RPI_lcdHomes.c new file mode 100644 index 00000000..98762de4 --- /dev/null +++ b/src/c/hardware/rasberrypi/lcd/u8RPI_lcdHomes.c @@ -0,0 +1,17 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralLCD.h" + +void u8RPI_lcdHomes(uint8 fd){ + lcdHome(fd); +} diff --git a/src/c/hardware/rasberrypi/lcd/u8RPI_lcdInits.c b/src/c/hardware/rasberrypi/lcd/u8RPI_lcdInits.c new file mode 100644 index 00000000..b69f311c --- /dev/null +++ b/src/c/hardware/rasberrypi/lcd/u8RPI_lcdInits.c @@ -0,0 +1,19 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralLCD.h" + +int8 u8RPI_lcdInits(uint8 rows,uint8 cols,uint8 bits,uint8 rs,uint8 strb,uint8 d0,uint8 d1,uint8 d2,uint8 d3,uint8 d4,uint8 d5,uint8 d6,uint8 d7){ + uint8 fd; + fd=lcdInit(rows,cols,bits,rs,strb,d0,d1,d2,d3,d4,d5,d6,d7); + return (fd); +} diff --git a/src/c/hardware/rasberrypi/lcd/u8RPI_lcdPositions.c b/src/c/hardware/rasberrypi/lcd/u8RPI_lcdPositions.c new file mode 100644 index 00000000..3188a972 --- /dev/null +++ b/src/c/hardware/rasberrypi/lcd/u8RPI_lcdPositions.c @@ -0,0 +1,17 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralLCD.h" + +void u8RPI_lcdPositions(uint8 fd,uint8 row,uint8 col){ + lcdPosition(fd,row,col); +} diff --git a/src/c/hardware/rasberrypi/lcd/u8RPI_lcdPrintfs.c b/src/c/hardware/rasberrypi/lcd/u8RPI_lcdPrintfs.c new file mode 100644 index 00000000..58d01fa8 --- /dev/null +++ b/src/c/hardware/rasberrypi/lcd/u8RPI_lcdPrintfs.c @@ -0,0 +1,17 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralLCD.h" + +void u8RPI_lcdPrintfs(uint8 fd,char* data,int size){ + lcdPrintf(fd,data); +} diff --git a/src/c/hardware/rasberrypi/lcd/u8RPI_lcdPutchars.c b/src/c/hardware/rasberrypi/lcd/u8RPI_lcdPutchars.c new file mode 100644 index 00000000..c50a177b --- /dev/null +++ b/src/c/hardware/rasberrypi/lcd/u8RPI_lcdPutchars.c @@ -0,0 +1,17 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralLCD.h" + +void u8RPI_lcdPutchars(uint8 fd,uint8 character){ + lcdPutchar(fd,character); +} diff --git a/src/c/hardware/rasberrypi/lcd/u8RPI_lcdPutss.c b/src/c/hardware/rasberrypi/lcd/u8RPI_lcdPutss.c new file mode 100644 index 00000000..a7f492ba --- /dev/null +++ b/src/c/hardware/rasberrypi/lcd/u8RPI_lcdPutss.c @@ -0,0 +1,17 @@ +/* Copyright (C) 2017 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralLCD.h" + +void u8RPI_lcdPutss(uint8 fd,char* msg,int size){ + lcdPuts(fd,msg); +} diff --git a/src/c/hardware/rasberrypi/lcd/u8RPI_lcdSendCommands.c b/src/c/hardware/rasberrypi/lcd/u8RPI_lcdSendCommands.c new file mode 100644 index 00000000..7097d696 --- /dev/null +++ b/src/c/hardware/rasberrypi/lcd/u8RPI_lcdSendCommands.c @@ -0,0 +1,17 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralLCD.h" + +void u8RPI_lcdSendCommands(uint8 fd,uint8 cmd){ + lcdSendCommand(fd,cmd); +} diff --git a/src/c/hardware/rasberrypi/mcp/u16RPI_mcp23008Setups.c b/src/c/hardware/rasberrypi/mcp/u16RPI_mcp23008Setups.c new file mode 100644 index 00000000..c7d73268 --- /dev/null +++ b/src/c/hardware/rasberrypi/mcp/u16RPI_mcp23008Setups.c @@ -0,0 +1,19 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralMcp.h" + +uint8 u16RPI_mcp23008Setups(uint16 pinBase,uint8 addr){ + uint8 out; + out=mcp23008Setup(pinBase,addr); + return (out); +} diff --git a/src/c/hardware/rasberrypi/mcp/u16RPI_mcp23016Setups.c b/src/c/hardware/rasberrypi/mcp/u16RPI_mcp23016Setups.c new file mode 100644 index 00000000..2e35e5c2 --- /dev/null +++ b/src/c/hardware/rasberrypi/mcp/u16RPI_mcp23016Setups.c @@ -0,0 +1,19 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralMcp.h" + +uint8 u16RPI_mcp23016Setups(uint16 pinBase,uint8 addr){ + uint8 out; + out=mcp23016Setup(pinBase,addr); + return (out); +} diff --git a/src/c/hardware/rasberrypi/mcp/u16RPI_mcp23017Setups.c b/src/c/hardware/rasberrypi/mcp/u16RPI_mcp23017Setups.c new file mode 100644 index 00000000..35ed5477 --- /dev/null +++ b/src/c/hardware/rasberrypi/mcp/u16RPI_mcp23017Setups.c @@ -0,0 +1,19 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralMcp.h" + +uint8 u16RPI_mcp23017Setups(uint16 pinBase,uint8 addr){ + uint8 out; + out=mcp23017Setup(pinBase,addr); + return (out); +} diff --git a/src/c/hardware/rasberrypi/mcp/u16RPI_mcp23s08Setups.c b/src/c/hardware/rasberrypi/mcp/u16RPI_mcp23s08Setups.c new file mode 100644 index 00000000..e1bdab60 --- /dev/null +++ b/src/c/hardware/rasberrypi/mcp/u16RPI_mcp23s08Setups.c @@ -0,0 +1,19 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralMcp.h" + +uint8 u16RPI_mcp23s08Setups(uint16 pinBase,uint8 spiport,uint8 devId){ + uint8 out; + out=mcp23s08Setup(pinBase,spiport,devId); + return (out); +} diff --git a/src/c/hardware/rasberrypi/mcp/u16RPI_mcp23s17Setups.c b/src/c/hardware/rasberrypi/mcp/u16RPI_mcp23s17Setups.c new file mode 100644 index 00000000..5ba30d23 --- /dev/null +++ b/src/c/hardware/rasberrypi/mcp/u16RPI_mcp23s17Setups.c @@ -0,0 +1,19 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralMcp.h" + +uint8 u16RPI_mcp23s17Setups(uint16 pinBase,uint8 spiport,uint8 devId){ + uint8 out; + out=mcp23s17Setup(pinBase,spiport,devId); + return (out); +} diff --git a/src/c/hardware/rasberrypi/pcf/u16RPI_pcf8574Setups.c b/src/c/hardware/rasberrypi/pcf/u16RPI_pcf8574Setups.c new file mode 100644 index 00000000..f7e38df0 --- /dev/null +++ b/src/c/hardware/rasberrypi/pcf/u16RPI_pcf8574Setups.c @@ -0,0 +1,19 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralPcf.h" + +uint8 u16RPI_pcf8574Setups(uint16 pinBase,uint8 addr){ + uint8 out; + out=pcf8574Setup(pinBase,addr); + return (out); +} diff --git a/src/c/hardware/rasberrypi/pcf/u16RPI_pcf8591Setups.c b/src/c/hardware/rasberrypi/pcf/u16RPI_pcf8591Setups.c new file mode 100644 index 00000000..de26a926 --- /dev/null +++ b/src/c/hardware/rasberrypi/pcf/u16RPI_pcf8591Setups.c @@ -0,0 +1,19 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralPcf.h" + +uint8 u16RPI_pcf8591Setups(uint16 pinBase,uint8 addr){ + uint8 out; + out=pcf8591Setup(pinBase,addr); + return (out); +} diff --git a/src/c/hardware/rasberrypi/piGlow/u8RPI_piGlow1s.c b/src/c/hardware/rasberrypi/piGlow/u8RPI_piGlow1s.c new file mode 100644 index 00000000..792cda1c --- /dev/null +++ b/src/c/hardware/rasberrypi/piGlow/u8RPI_piGlow1s.c @@ -0,0 +1,17 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralPiGlow.h" + +void u8RPI_piGlow1s(uint8 leg,uint8 ring,uint8 intensity){ + piGlow1(leg,ring,intensity); +} diff --git a/src/c/hardware/rasberrypi/piGlow/u8RPI_piGlowLegs.c b/src/c/hardware/rasberrypi/piGlow/u8RPI_piGlowLegs.c new file mode 100644 index 00000000..f4ef5b50 --- /dev/null +++ b/src/c/hardware/rasberrypi/piGlow/u8RPI_piGlowLegs.c @@ -0,0 +1,17 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralPiGlow.h" + +void u8RPI_piGlowLegs(uint8 leg,uint8 intensity){ + piGlowLeg(leg,intensity); +} diff --git a/src/c/hardware/rasberrypi/piGlow/u8RPI_piGlowRings.c b/src/c/hardware/rasberrypi/piGlow/u8RPI_piGlowRings.c new file mode 100644 index 00000000..985696df --- /dev/null +++ b/src/c/hardware/rasberrypi/piGlow/u8RPI_piGlowRings.c @@ -0,0 +1,17 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralPiGlow.h" + +void u8RPI_piGlowRings(uint8 ring,uint8 intensity){ + piGlowRing(ring,intensity); +} diff --git a/src/c/hardware/rasberrypi/piGlow/u8RPI_piGlowSetups.c b/src/c/hardware/rasberrypi/piGlow/u8RPI_piGlowSetups.c new file mode 100644 index 00000000..2037a9b5 --- /dev/null +++ b/src/c/hardware/rasberrypi/piGlow/u8RPI_piGlowSetups.c @@ -0,0 +1,17 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralPiGlow.h" + +void u8RPI_piGlowSetups(uint8 clear){ + piGlowSetup(clear); +} diff --git a/src/c/hardware/rasberrypi/pinMap/u8RPI_physToGpios.c b/src/c/hardware/rasberrypi/pinMap/u8RPI_physToGpios.c new file mode 100644 index 00000000..09a57132 --- /dev/null +++ b/src/c/hardware/rasberrypi/pinMap/u8RPI_physToGpios.c @@ -0,0 +1,19 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralPinMap.h" + +int8 u8RPI_physToGpios(uint8 pin){ + int8 out; + out=physPinToGpio(pin); + return (pin); +} diff --git a/src/c/hardware/rasberrypi/pinMap/u8RPI_wpiToGpios.c b/src/c/hardware/rasberrypi/pinMap/u8RPI_wpiToGpios.c new file mode 100644 index 00000000..5f65f34c --- /dev/null +++ b/src/c/hardware/rasberrypi/pinMap/u8RPI_wpiToGpios.c @@ -0,0 +1,19 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralPinMap.h" + +int8 u8RPI_wpiToGpios(uint8 pin){ + int8 out; + out=wpiPinToGpio(pin); + return (out); +} diff --git a/src/c/hardware/rasberrypi/pwm/gRPI_pwmModea.c b/src/c/hardware/rasberrypi/pwm/gRPI_pwmModea.c new file mode 100644 index 00000000..da67a15c --- /dev/null +++ b/src/c/hardware/rasberrypi/pwm/gRPI_pwmModea.c @@ -0,0 +1,25 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani, Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralPWM.h" + +/*Function to set mode for PWM channel. Two modes are available + "bal" --> balanced mode + "ms" --> mark/space mode + */ + +void gRPI_pwmModea(char* mode,int size){ + if (mode[0] == 'm') /*mark/space mode*/ + pwmSetMode(0); + else if (mode[0] == 'b') + pwmSetMode(1); +} diff --git a/src/c/hardware/rasberrypi/pwm/u16RPI_pwmClocks.c b/src/c/hardware/rasberrypi/pwm/u16RPI_pwmClocks.c new file mode 100644 index 00000000..85e1fb2b --- /dev/null +++ b/src/c/hardware/rasberrypi/pwm/u16RPI_pwmClocks.c @@ -0,0 +1,23 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani, Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralPWM.h" + +/*Function to set clock for pwm channel. Default clock is 19.2 MHz. 'clk_divisor' + along with range decides frequency for PWM + PWM frequency = 19.2 MHz / clk_divisor/ range + Range for clk_divisor = 1-2048 +*/ + +void u16RPI_pwmClocks(uint16 divisor){ + pwmSetClock(divisor); +} diff --git a/src/c/hardware/rasberrypi/pwm/u32RPI_pwmRanges.c b/src/c/hardware/rasberrypi/pwm/u32RPI_pwmRanges.c new file mode 100644 index 00000000..1fb22963 --- /dev/null +++ b/src/c/hardware/rasberrypi/pwm/u32RPI_pwmRanges.c @@ -0,0 +1,22 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani, Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralPWM.h" + +/*Function to assign pwm duty to specified pin. PWM duty is decided by 'value' + and 'range' specified using corresponding function. + PWM duty = value/range + */ + +void u32RPI_pwmRanges(uint32 value){ + pwmSetRange(value); +} diff --git a/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetClocks.c b/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetClocks.c deleted file mode 100644 index d06b135c..00000000 --- a/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetClocks.c +++ /dev/null @@ -1,27 +0,0 @@ -/* Copyright (C) 2016 - IIT Bombay - FOSSEE - - This file must be used under the terms of the CeCILL. - This source file is licensed as described in the file COPYING, which - you should have received as part of this distribution. The terms - are also available at - http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - Author: Siddhesh Wani - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -/*Function to set clock for pwm channel. Default clock is 19.2 MHz. 'clk_divisor' - along with range decides frequency for PWM - PWM frequency = 19.2 MHz / clk_divisor/ range - Range for clk_divisor = 1-2048 - */ - -#include "types.h" -#include "RPIPeripheralPWM.h" - -void u8RPIHardPWMSetClocks(uint16 clk_divisor) -{ - pwmSetClock(clk_divisor); - - -} diff --git a/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetModes.c b/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetModes.c deleted file mode 100644 index 0cca7a70..00000000 --- a/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetModes.c +++ /dev/null @@ -1,28 +0,0 @@ -/* Copyright (C) 2016 - IIT Bombay - FOSSEE - - This file must be used under the terms of the CeCILL. - This source file is licensed as described in the file COPYING, which - you should have received as part of this distribution. The terms - are also available at - http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - Author: Siddhesh Wani - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -/*Function to set mode for PWM channel. Two modes are available - 0 --> balanced mode - 1 --> mark/space mode - */ - -#include "types.h" -#include "RPIPeripheralPWM.h" - -void u8RPIHardPWMSetModes(uint8 mode) -{ - if (mode == 1) /*mark/space mode*/ - pwmSetMode(PWM_MODE_MS); - else - pwmSetMode(PWM_MODE_BAL); - -} diff --git a/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetRanges.c b/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetRanges.c deleted file mode 100644 index b2489f59..00000000 --- a/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetRanges.c +++ /dev/null @@ -1,25 +0,0 @@ -/* Copyright (C) 2016 - IIT Bombay - FOSSEE - - This file must be used under the terms of the CeCILL. - This source file is licensed as described in the file COPYING, which - you should have received as part of this distribution. The terms - are also available at - http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - Author: Siddhesh Wani - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -/*Function to assigne pwm duty to specified pin. PWM duty is decided by 'value' - and 'range' specified using corresponding function. - PWM duty = value/range - */ - -#include "types.h" -#include "RPIPeripheralPWM.h" - -void u8RPIHardPWMSetRanges(uint16 value) -{ - pwmSetRange(value); - -} diff --git a/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMWrites.c b/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMWrites.c deleted file mode 100644 index ae02bf0d..00000000 --- a/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMWrites.c +++ /dev/null @@ -1,26 +0,0 @@ -/* Copyright (C) 2016 - IIT Bombay - FOSSEE - - This file must be used under the terms of the CeCILL. - This source file is licensed as described in the file COPYING, which - you should have received as part of this distribution. The terms - are also available at - http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - Author: Siddhesh Wani - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -/*Function to set range for pwm channel. PWM duty is decided by 'range' - and 'value' specified using corresponding function. - PWM duty = value/range - */ - -#include "types.h" -#include "RPIPeripheralPWM.h" -#include "RPIPeripheralDigital.h" - -void u8RPIHardPWMWrites(uint8 pin, uint16 value) -{ - pwmWrite((int)phy_pin[pin-1], value); - -} diff --git a/src/c/hardware/rasberrypi/pwm/u8RPI_pwmToneWrites.c b/src/c/hardware/rasberrypi/pwm/u8RPI_pwmToneWrites.c new file mode 100644 index 00000000..fe1b8cd2 --- /dev/null +++ b/src/c/hardware/rasberrypi/pwm/u8RPI_pwmToneWrites.c @@ -0,0 +1,17 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani, Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralPWM.h" + +void u8RPI_pwmToneWrites(uint8 pin, uint16 value){ + pwmToneWrite(pin, value); +} diff --git a/src/c/hardware/rasberrypi/pwm/u8RPI_pwmWrites.c b/src/c/hardware/rasberrypi/pwm/u8RPI_pwmWrites.c new file mode 100644 index 00000000..be94e73e --- /dev/null +++ b/src/c/hardware/rasberrypi/pwm/u8RPI_pwmWrites.c @@ -0,0 +1,19 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani, Jorawar Singh + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralPWM.h" + +/*Function to write the given value to the pwm pin*/ + +void u8RPI_pwmWrites(uint8 pin, uint16 value){ + pwmWrite(pin, value); +} diff --git a/src/c/hardware/rasberrypi/serial/dRPISerialSendDataa.c b/src/c/hardware/rasberrypi/serial/dRPISerialSendDataa.c deleted file mode 100644 index f9902550..00000000 --- a/src/c/hardware/rasberrypi/serial/dRPISerialSendDataa.c +++ /dev/null @@ -1,27 +0,0 @@ -/* Copyright (C) 2016 - IIT Bombay - FOSSEE - - This file must be used under the terms of the CeCILL. - This source file is licensed as described in the file COPYING, which - you should have received as part of this distribution. The terms - are also available at - http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - Author: Siddhesh Wani - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -/* Function to send double data array/matrix on specified serial port. */ - -#include "types.h" -#include "RPIPeripheralSerial.h" - -void dRPISerialSendDataa(int fd, double* data, int size) -{ - int count = 0; - - for (count = 0; count < size; count++) - { - dRPISerialSendDatas(fd, data[count]); - } - -} diff --git a/src/c/hardware/rasberrypi/serial/dRPISerialSendDatas.c b/src/c/hardware/rasberrypi/serial/dRPISerialSendDatas.c deleted file mode 100644 index 39112fc2..00000000 --- a/src/c/hardware/rasberrypi/serial/dRPISerialSendDatas.c +++ /dev/null @@ -1,35 +0,0 @@ -/* Copyright (C) 2016 - IIT Bombay - FOSSEE - - This file must be used under the terms of the CeCILL. - This source file is licensed as described in the file COPYING, which - you should have received as part of this distribution. The terms - are also available at - http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - Author: Siddhesh Wani - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -/* Function to send double data on specified serial port. */ - -#include "types.h" -#include "RPIPeripheralSerial.h" - -void dRPISerialSendDatas(int fd, double data) -{ - uint8 count; - - union double_bytes{ - double double_data; - unsigned char bytes[sizeof(double)]; - } in_data; - - in_data.double_data = data; - - for(count=0; count>8)); - -} diff --git a/src/c/hardware/rasberrypi/serial/i8RPISerialSendDataa.c b/src/c/hardware/rasberrypi/serial/i8RPISerialSendDataa.c deleted file mode 100644 index c4dd199c..00000000 --- a/src/c/hardware/rasberrypi/serial/i8RPISerialSendDataa.c +++ /dev/null @@ -1,26 +0,0 @@ -/* Copyright (C) 2016 - IIT Bombay - FOSSEE - - This file must be used under the terms of the CeCILL. - This source file is licensed as described in the file COPYING, which - you should have received as part of this distribution. The terms - are also available at - http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - Author: Siddhesh Wani - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -/* Function to send signed 8-bit byte array/matrix on specified serial port. */ - -#include "types.h" -#include "RPIPeripheralSerial.h" - -void i8RPISerialSendDataa(int fd, int8* data, int size) -{ - int count = 0; - - for (count = 0; count < size; ++count) - { - i8RPISerialSendDatas(fd, data[count]); - } -} diff --git a/src/c/hardware/rasberrypi/serial/i8RPISerialSendDatas.c b/src/c/hardware/rasberrypi/serial/i8RPISerialSendDatas.c deleted file mode 100644 index e637871f..00000000 --- a/src/c/hardware/rasberrypi/serial/i8RPISerialSendDatas.c +++ /dev/null @@ -1,22 +0,0 @@ -/* Copyright (C) 2016 - IIT Bombay - FOSSEE - - This file must be used under the terms of the CeCILL. - This source file is licensed as described in the file COPYING, which - you should have received as part of this distribution. The terms - are also available at - http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - Author: Siddhesh Wani - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -/* Function to send signed 8-bit byte on specified serial port. */ - -#include "types.h" -#include "RPIPeripheralSerial.h" - -void i8RPISerialSendDatas(int fd, int8 data) -{ - serialPutchar(fd, (uint8) data); - -} diff --git a/src/c/hardware/rasberrypi/serial/sRPISerialSendDataa.c b/src/c/hardware/rasberrypi/serial/sRPISerialSendDataa.c deleted file mode 100644 index 14c0bc70..00000000 --- a/src/c/hardware/rasberrypi/serial/sRPISerialSendDataa.c +++ /dev/null @@ -1,27 +0,0 @@ -/* Copyright (C) 2016 - IIT Bombay - FOSSEE - - This file must be used under the terms of the CeCILL. - This source file is licensed as described in the file COPYING, which - you should have received as part of this distribution. The terms - are also available at - http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - Author: Siddhesh Wani - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -/* Function to send float data array/matrix on specified serial port. */ - -#include "types.h" -#include "RPIPeripheralSerial.h" - -void sRPISerialSendDataa(int fd, float* data, int size) -{ - int count = 0; - - for (count = 0; count < size; ++count) - { - sRPISerialSendDatas(fd, data[count]); - } - -} diff --git a/src/c/hardware/rasberrypi/serial/sRPISerialSendDatas.c b/src/c/hardware/rasberrypi/serial/sRPISerialSendDatas.c deleted file mode 100644 index ff78dd1f..00000000 --- a/src/c/hardware/rasberrypi/serial/sRPISerialSendDatas.c +++ /dev/null @@ -1,34 +0,0 @@ -/* Copyright (C) 2016 - IIT Bombay - FOSSEE - - This file must be used under the terms of the CeCILL. - This source file is licensed as described in the file COPYING, which - you should have received as part of this distribution. The terms - are also available at - http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - Author: Siddhesh Wani - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -/* Function to send float data on specified serial port. */ - -#include "types.h" -#include "RPIPeripheralSerial.h" - -void sRPISerialSendDatas(int fd, float data) -{ - uint8 count; - - union float_bytes{ - float float_data; - unsigned char bytes[sizeof(float)]; - } in_data; - in_data.float_data = data; - - for(count=0; count>8)); -} diff --git a/src/c/hardware/rasberrypi/serial/u16RPISerialSetups.c b/src/c/hardware/rasberrypi/serial/u16RPISerialSetups.c deleted file mode 100644 index cde4cba2..00000000 --- a/src/c/hardware/rasberrypi/serial/u16RPISerialSetups.c +++ /dev/null @@ -1,25 +0,0 @@ -/* Copyright (C) 2016 - IIT Bombay - FOSSEE - - This file must be used under the terms of the CeCILL. - This source file is licensed as described in the file COPYING, which - you should have received as part of this distribution. The terms - are also available at - http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - Author: Siddhesh Wani - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -/* Function to setup port with desired baud rate. */ - -#include "types.h" -#include "RPIPeripheralSerial.h" - -int u16RPISerialSetups(char* port, int baudrate) -{ - int fd; - - fd = serialOpen (port, baudrate); - - return fd; -} diff --git a/src/c/hardware/rasberrypi/serial/u8RPISerialCloses.c b/src/c/hardware/rasberrypi/serial/u8RPISerialCloses.c deleted file mode 100644 index 5162d15e..00000000 --- a/src/c/hardware/rasberrypi/serial/u8RPISerialCloses.c +++ /dev/null @@ -1,21 +0,0 @@ -/* Copyright (C) 2016 - IIT Bombay - FOSSEE - - This file must be used under the terms of the CeCILL. - This source file is licensed as described in the file COPYING, which - you should have received as part of this distribution. The terms - are also available at - http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - Author: Siddhesh Wani - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -/* Function to close serial port opened. */ - -#include "types.h" -#include "RPIPeripheralSerial.h" - -void u8RPISerialCloses(int fd) -{ - serialClose (fd); -} diff --git a/src/c/hardware/rasberrypi/serial/u8RPISerialFlushs.c b/src/c/hardware/rasberrypi/serial/u8RPISerialFlushs.c deleted file mode 100644 index c80a92c5..00000000 --- a/src/c/hardware/rasberrypi/serial/u8RPISerialFlushs.c +++ /dev/null @@ -1,21 +0,0 @@ -/* Copyright (C) 2016 - IIT Bombay - FOSSEE - - This file must be used under the terms of the CeCILL. - This source file is licensed as described in the file COPYING, which - you should have received as part of this distribution. The terms - are also available at - http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - Author: Siddhesh Wani - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -/* Function to discards data serial buffer (received as well as waiting to be sent */ - -#include "types.h" -#include "RPIPeripheralSerial.h" - -void u8RPISerialFlushs(int fd) -{ - serialFlush(fd); -} diff --git a/src/c/hardware/rasberrypi/serial/u8RPISerialSendChars.c b/src/c/hardware/rasberrypi/serial/u8RPISerialSendChars.c deleted file mode 100644 index e3813514..00000000 --- a/src/c/hardware/rasberrypi/serial/u8RPISerialSendChars.c +++ /dev/null @@ -1,21 +0,0 @@ -/* Copyright (C) 2016 - IIT Bombay - FOSSEE - - This file must be used under the terms of the CeCILL. - This source file is licensed as described in the file COPYING, which - you should have received as part of this distribution. The terms - are also available at - http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - Author: Siddhesh Wani - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -/* Function to send 8-bit char on specified serial port. */ - -#include "types.h" -#include "RPIPeripheralSerial.h" - -void u8RPISerialSendChars(int fd, uint8 data) -{ - serialPutchar(fd, data); -} diff --git a/src/c/hardware/rasberrypi/serial/u8RPISerialSendDataa.c b/src/c/hardware/rasberrypi/serial/u8RPISerialSendDataa.c deleted file mode 100644 index 9d097141..00000000 --- a/src/c/hardware/rasberrypi/serial/u8RPISerialSendDataa.c +++ /dev/null @@ -1,27 +0,0 @@ -/* Copyright (C) 2016 - IIT Bombay - FOSSEE - - This file must be used under the terms of the CeCILL. - This source file is licensed as described in the file COPYING, which - you should have received as part of this distribution. The terms - are also available at - http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - Author: Siddhesh Wani - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -/* Function to send unsigned 8-bit byte array/matrix on specified serial port. */ - -#include "types.h" -#include "RPIPeripheralSerial.h" - -void u8RPISerialSendDataa(int fd, uint8* data, int size) -{ - int count = 0; - - for (count = 0; count < size; ++count) - { - u8RPISerialSendDatas(fd, data[count]); - } - -} diff --git a/src/c/hardware/rasberrypi/serial/u8RPISerialSendDatas.c b/src/c/hardware/rasberrypi/serial/u8RPISerialSendDatas.c deleted file mode 100644 index 9edb439f..00000000 --- a/src/c/hardware/rasberrypi/serial/u8RPISerialSendDatas.c +++ /dev/null @@ -1,22 +0,0 @@ -/* Copyright (C) 2016 - IIT Bombay - FOSSEE - - This file must be used under the terms of the CeCILL. - This source file is licensed as described in the file COPYING, which - you should have received as part of this distribution. The terms - are also available at - http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - Author: Siddhesh Wani - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -/* Function to send unsigned 8-bit byte on specified serial port. */ - -#include "types.h" -#include "RPIPeripheralSerial.h" - -void u8RPISerialSendDatas(int fd, uint8 data) -{ - serialPutchar(fd, data); - -} diff --git a/src/c/hardware/rasberrypi/soft/u8RPI_softPwmCreates.c b/src/c/hardware/rasberrypi/soft/u8RPI_softPwmCreates.c new file mode 100644 index 00000000..d6977798 --- /dev/null +++ b/src/c/hardware/rasberrypi/soft/u8RPI_softPwmCreates.c @@ -0,0 +1,19 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralSoft.h" + +uint8 u8RPI_softPwmCreates(uint8 pin,uint16 ival,uint16 range){ + uint8 out; + out=softPwmCreate(pin,ival,range); + return (out); +} diff --git a/src/c/hardware/rasberrypi/soft/u8RPI_softPwmStops.c b/src/c/hardware/rasberrypi/soft/u8RPI_softPwmStops.c new file mode 100644 index 00000000..761fdc23 --- /dev/null +++ b/src/c/hardware/rasberrypi/soft/u8RPI_softPwmStops.c @@ -0,0 +1,17 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralSoft.h" + +void u8RPI_softPwmStops(uint8 pin){ + softPwmStop(pin); +} diff --git a/src/c/hardware/rasberrypi/soft/u8RPI_softPwmWrites.c b/src/c/hardware/rasberrypi/soft/u8RPI_softPwmWrites.c new file mode 100644 index 00000000..2b76d148 --- /dev/null +++ b/src/c/hardware/rasberrypi/soft/u8RPI_softPwmWrites.c @@ -0,0 +1,17 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralSoft.h" + +void u8RPI_softPwmWrites(uint8 pin,uint16 value){ + softPwmWrite(pin,value); +} diff --git a/src/c/hardware/rasberrypi/soft/u8RPI_softToneCreates.c b/src/c/hardware/rasberrypi/soft/u8RPI_softToneCreates.c new file mode 100644 index 00000000..dfcbb1fb --- /dev/null +++ b/src/c/hardware/rasberrypi/soft/u8RPI_softToneCreates.c @@ -0,0 +1,19 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralSoft.h" + +uint8 u8RPI_softToneCreates(uint8 pin){ + uint8 out; + out=softToneCreate(pin); + return (out); +} diff --git a/src/c/hardware/rasberrypi/soft/u8RPI_softToneStops.c b/src/c/hardware/rasberrypi/soft/u8RPI_softToneStops.c new file mode 100644 index 00000000..664fbda4 --- /dev/null +++ b/src/c/hardware/rasberrypi/soft/u8RPI_softToneStops.c @@ -0,0 +1,17 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralSoft.h" + +void u8RPI_softToneStops(uint8 pin){ + softToneStop(pin); +} diff --git a/src/c/hardware/rasberrypi/soft/u8RPI_softToneWrites.c b/src/c/hardware/rasberrypi/soft/u8RPI_softToneWrites.c new file mode 100644 index 00000000..be04b476 --- /dev/null +++ b/src/c/hardware/rasberrypi/soft/u8RPI_softToneWrites.c @@ -0,0 +1,17 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralSoft.h" + +void u8RPI_softToneWrites(uint8 pin,uint32 value){ + softToneWrite(pin,value); +} diff --git a/src/c/hardware/rasberrypi/threading/u16RPIThreadCreates.c b/src/c/hardware/rasberrypi/threading/u16RPIThreadCreates.c deleted file mode 100644 index c05c959c..00000000 --- a/src/c/hardware/rasberrypi/threading/u16RPIThreadCreates.c +++ /dev/null @@ -1,24 +0,0 @@ -/* Copyright (C) 2016 - IIT Bombay - FOSSEE - - This file must be used under the terms of the CeCILL. - This source file is licensed as described in the file COPYING, which - you should have received as part of this distribution. The terms - are also available at - http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - Author: Siddhesh Wani - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -/* Function to create thread for given function */ - -#include "types.h" -#include "RPIPeripheralThreading.h" - -uint16 RPIThreadCreate(void *(*threadFunction)(void*)) -{ - int status; - status = piThreadCreate (threadFunction); - return status; -} - diff --git a/src/c/hardware/rasberrypi/timing/u16RPIDelayMicros.c b/src/c/hardware/rasberrypi/timing/u16RPIDelayMicros.c deleted file mode 100644 index 9aeeab7d..00000000 --- a/src/c/hardware/rasberrypi/timing/u16RPIDelayMicros.c +++ /dev/null @@ -1,22 +0,0 @@ -/* Copyright (C) 2016 - IIT Bombay - FOSSEE - - This file must be used under the terms of the CeCILL. - This source file is licensed as described in the file COPYING, which - you should have received as part of this distribution. The terms - are also available at - http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - Author: Siddhesh Wani - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -/* Function to insert some delay in code execution. */ - -#include "types.h" -#include "RPIPeripheralTiming.h" - -void u16RPIDelayMicros(uint16 time) -{ - delayMicroseconds(time); -} - diff --git a/src/c/hardware/rasberrypi/timing/u16RPIDelayMillis.c b/src/c/hardware/rasberrypi/timing/u16RPIDelayMillis.c deleted file mode 100644 index 26790861..00000000 --- a/src/c/hardware/rasberrypi/timing/u16RPIDelayMillis.c +++ /dev/null @@ -1,25 +0,0 @@ -/* Copyright (C) 2016 - IIT Bombay - FOSSEE - - This file must be used under the terms of the CeCILL. - This source file is licensed as described in the file COPYING, which - you should have received as part of this distribution. The terms - are also available at - http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - Author: Siddhesh Wani - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -/* Function to insert some delay in code execution. */ - - - -#include "types.h" -#include "RPIPeripheralTiming.h" - -void u16RPIDelayMillis(uint16 time) -{ - delay(time); - -} - diff --git a/src/c/hardware/rasberrypi/timing/u32RPIGetMicros.c b/src/c/hardware/rasberrypi/timing/u32RPIGetMicros.c deleted file mode 100644 index eb086a9f..00000000 --- a/src/c/hardware/rasberrypi/timing/u32RPIGetMicros.c +++ /dev/null @@ -1,21 +0,0 @@ -/* Copyright (C) 2016 - IIT Bombay - FOSSEE - - This file must be used under the terms of the CeCILL. - This source file is licensed as described in the file COPYING, which - you should have received as part of this distribution. The terms - are also available at - http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - Author: Siddhesh Wani - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -/* Function to get time in microsecond since first setup function called */ - -#include "types.h" -#include "RPIPeripheralTiming.h" - -uint32 u32RPIGetMicros() -{ - return(micros()); -} \ No newline at end of file diff --git a/src/c/hardware/rasberrypi/timing/u32RPIGetMillis.c b/src/c/hardware/rasberrypi/timing/u32RPIGetMillis.c deleted file mode 100644 index c1189753..00000000 --- a/src/c/hardware/rasberrypi/timing/u32RPIGetMillis.c +++ /dev/null @@ -1,21 +0,0 @@ -/* Copyright (C) 2016 - IIT Bombay - FOSSEE - - This file must be used under the terms of the CeCILL. - This source file is licensed as described in the file COPYING, which - you should have received as part of this distribution. The terms - are also available at - http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - Author: Siddhesh Wani - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -/* Function to get time in millisecond since first setup function called */ - -#include "types.h" -#include "RPIPeripheralTiming.h" - -uint32 u32RPIGetMillis() -{ - return(millis()); -} \ No newline at end of file diff --git a/thirdparty/includes/WiringPi/gertboard.h b/thirdparty/includes/WiringPi/gertboard.h new file mode 100644 index 00000000..3fa19197 --- /dev/null +++ b/thirdparty/includes/WiringPi/gertboard.h @@ -0,0 +1,45 @@ +/* + * gertboard.h: + * Access routines for the SPI devices on the Gertboard + * Copyright (c) 2012 Gordon Henderson + * + * The Gertboard has an MCP4802 dual-channel D to A convertor + * connected to the SPI bus, selected via chip-select B. + * + *********************************************************************** + * This file is part of wiringPi: + * https://projects.drogon.net/raspberry-pi/wiringpi/ + * + * wiringPi is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * wiringPi is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with wiringPi. + * If not, see . + *********************************************************************** + */ + +#ifdef __cplusplus +extern "C" { +#endif + +// Old routines + +extern void gertboardAnalogWrite (const int chan, const int value) ; +extern int gertboardAnalogRead (const int chan) ; +extern int gertboardSPISetup (void) ; + +// New + +extern int gertboardAnalogSetup (const int pinBase) ; + +#ifdef __cplusplus +} +#endif diff --git a/thirdparty/includes/WiringPi/lcd.h b/thirdparty/includes/WiringPi/lcd.h new file mode 100644 index 00000000..0a0e5988 --- /dev/null +++ b/thirdparty/includes/WiringPi/lcd.h @@ -0,0 +1,52 @@ +/* + * lcd.h: + * Text-based LCD driver. + * This is designed to drive the parallel interface LCD drivers + * based in the Hitachi HD44780U controller and compatables. + * + * Copyright (c) 2012 Gordon Henderson. + *********************************************************************** + * This file is part of wiringPi: + * https://projects.drogon.net/raspberry-pi/wiringpi/ + * + * wiringPi is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * wiringPi is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with wiringPi. If not, see . + *********************************************************************** + */ + +#define MAX_LCDS 8 + +#ifdef __cplusplus +extern "C" { +#endif + +extern void lcdHome (const int fd) ; +extern void lcdClear (const int fd) ; +extern void lcdDisplay (const int fd, int state) ; +extern void lcdCursor (const int fd, int state) ; +extern void lcdCursorBlink (const int fd, int state) ; +extern void lcdSendCommand (const int fd, unsigned char command) ; +extern void lcdPosition (const int fd, int x, int y) ; +extern void lcdCharDef (const int fd, int index, unsigned char data [8]) ; +extern void lcdPutchar (const int fd, unsigned char data) ; +extern void lcdPuts (const int fd, const char *string) ; +extern void lcdPrintf (const int fd, const char *message, ...) ; + +extern int lcdInit (const int rows, const int cols, const int bits, + const int rs, const int strb, + const int d0, const int d1, const int d2, const int d3, const int d4, + const int d5, const int d6, const int d7) ; + +#ifdef __cplusplus +} +#endif diff --git a/thirdparty/includes/WiringPi/mcp23008.h b/thirdparty/includes/WiringPi/mcp23008.h new file mode 100644 index 00000000..e9299a8c --- /dev/null +++ b/thirdparty/includes/WiringPi/mcp23008.h @@ -0,0 +1,33 @@ +/* + * 23008.h: + * Extend wiringPi with the MCP 23008 I2C GPIO expander chip + * Copyright (c) 2013 Gordon Henderson + *********************************************************************** + * This file is part of wiringPi: + * https://projects.drogon.net/raspberry-pi/wiringpi/ + * + * wiringPi is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * wiringPi is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with wiringPi. + * If not, see . + *********************************************************************** + */ + +#ifdef __cplusplus +extern "C" { +#endif + +extern int mcp23008Setup (const int pinBase, const int i2cAddress) ; + +#ifdef __cplusplus +} +#endif diff --git a/thirdparty/includes/WiringPi/mcp23016.h b/thirdparty/includes/WiringPi/mcp23016.h new file mode 100644 index 00000000..f9b5cc54 --- /dev/null +++ b/thirdparty/includes/WiringPi/mcp23016.h @@ -0,0 +1,33 @@ +/* + * mcp23016.h: + * Extend wiringPi with the MCP 23016 I2C GPIO expander chip + * Copyright (c) 2013 Gordon Henderson + *********************************************************************** + * This file is part of wiringPi: + * https://projects.drogon.net/raspberry-pi/wiringpi/ + * + * wiringPi is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * wiringPi is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with wiringPi. + * If not, see . + *********************************************************************** + */ + +#ifdef __cplusplus +extern "C" { +#endif + +extern int mcp23016Setup (const int pinBase, const int i2cAddress) ; + +#ifdef __cplusplus +} +#endif diff --git a/thirdparty/includes/WiringPi/mcp23017.h b/thirdparty/includes/WiringPi/mcp23017.h new file mode 100644 index 00000000..79b4d7b3 --- /dev/null +++ b/thirdparty/includes/WiringPi/mcp23017.h @@ -0,0 +1,33 @@ +/* + * 23017.h: + * Extend wiringPi with the MCP 23017 I2C GPIO expander chip + * Copyright (c) 2013 Gordon Henderson + *********************************************************************** + * This file is part of wiringPi: + * https://projects.drogon.net/raspberry-pi/wiringpi/ + * + * wiringPi is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * wiringPi is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with wiringPi. + * If not, see . + *********************************************************************** + */ + +#ifdef __cplusplus +extern "C" { +#endif + +extern int mcp23017Setup (const int pinBase, const int i2cAddress) ; + +#ifdef __cplusplus +} +#endif diff --git a/thirdparty/includes/WiringPi/mcp23s08.h b/thirdparty/includes/WiringPi/mcp23s08.h new file mode 100644 index 00000000..ebf93d19 --- /dev/null +++ b/thirdparty/includes/WiringPi/mcp23s08.h @@ -0,0 +1,33 @@ +/* + * 23s08.h: + * Extend wiringPi with the MCP 23s08 SPI GPIO expander chip + * Copyright (c) 2013 Gordon Henderson + *********************************************************************** + * This file is part of wiringPi: + * https://projects.drogon.net/raspberry-pi/wiringpi/ + * + * wiringPi is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * wiringPi is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with wiringPi. + * If not, see . + *********************************************************************** + */ + +#ifdef __cplusplus +extern "C" { +#endif + +extern int mcp23s08Setup (const int pinBase, const int spiPort, const int devId) ; + +#ifdef __cplusplus +} +#endif diff --git a/thirdparty/includes/WiringPi/mcp23s17.h b/thirdparty/includes/WiringPi/mcp23s17.h new file mode 100644 index 00000000..3b2a8088 --- /dev/null +++ b/thirdparty/includes/WiringPi/mcp23s17.h @@ -0,0 +1,33 @@ +/* + * 23s17.h: + * Extend wiringPi with the MCP 23s17 SPI GPIO expander chip + * Copyright (c) 2013 Gordon Henderson + *********************************************************************** + * This file is part of wiringPi: + * https://projects.drogon.net/raspberry-pi/wiringpi/ + * + * wiringPi is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * wiringPi is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with wiringPi. + * If not, see . + *********************************************************************** + */ + +#ifdef __cplusplus +extern "C" { +#endif + +extern int mcp23s17Setup (int pinBase, int spiPort, int devId) ; + +#ifdef __cplusplus +} +#endif diff --git a/thirdparty/includes/WiringPi/pcf8574.h b/thirdparty/includes/WiringPi/pcf8574.h new file mode 100644 index 00000000..8e2d8181 --- /dev/null +++ b/thirdparty/includes/WiringPi/pcf8574.h @@ -0,0 +1,33 @@ +/* + * pcf8574.h: + * Extend wiringPi with the PCF8574 I2C GPIO expander chip + * Copyright (c) 2013 Gordon Henderson + *********************************************************************** + * This file is part of wiringPi: + * https://projects.drogon.net/raspberry-pi/wiringpi/ + * + * wiringPi is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * wiringPi is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with wiringPi. + * If not, see . + *********************************************************************** + */ + +#ifdef __cplusplus +extern "C" { +#endif + +extern int pcf8574Setup (const int pinBase, const int i2cAddress) ; + +#ifdef __cplusplus +} +#endif diff --git a/thirdparty/includes/WiringPi/pcf8591.h b/thirdparty/includes/WiringPi/pcf8591.h new file mode 100644 index 00000000..6b44ccf9 --- /dev/null +++ b/thirdparty/includes/WiringPi/pcf8591.h @@ -0,0 +1,33 @@ +/* + * pcf8591.h: + * Extend wiringPi with the PCF8591 I2C GPIO Analog expander chip + * Copyright (c) 2013 Gordon Henderson + *********************************************************************** + * This file is part of wiringPi: + * https://projects.drogon.net/raspberry-pi/wiringpi/ + * + * wiringPi is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * wiringPi is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with wiringPi. + * If not, see . + *********************************************************************** + */ + +#ifdef __cplusplus +extern "C" { +#endif + +extern int pcf8591Setup (const int pinBase, const int i2cAddress) ; + +#ifdef __cplusplus +} +#endif diff --git a/thirdparty/includes/WiringPi/piGlow.h b/thirdparty/includes/WiringPi/piGlow.h new file mode 100644 index 00000000..500ad92f --- /dev/null +++ b/thirdparty/includes/WiringPi/piGlow.h @@ -0,0 +1,45 @@ +/* + * piglow.h: + * Easy access to the Pimoroni PiGlow board. + * + * Copyright (c) 2013 Gordon Henderson. + *********************************************************************** + * This file is part of wiringPi: + * https://projects.drogon.net/raspberry-pi/wiringpi/ + * + * wiringPi is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * wiringPi is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with wiringPi. If not, see . + *********************************************************************** + */ + + +#define PIGLOW_RED 0 +#define PIGLOW_ORANGE 1 +#define PIGLOW_YELLOW 2 +#define PIGLOW_GREEN 3 +#define PIGLOW_BLUE 4 +#define PIGLOW_WHITE 5 + + +#ifdef __cplusplus +extern "C" { +#endif + +extern void piGlow1 (const int leg, const int ring, const int intensity) ; +extern void piGlowLeg (const int leg, const int intensity) ; +extern void piGlowRing (const int ring, const int intensity) ; +extern void piGlowSetup (int clear) ; + +#ifdef __cplusplus +} +#endif diff --git a/thirdparty/includes/WiringPi/sn3218.h b/thirdparty/includes/WiringPi/sn3218.h new file mode 100644 index 00000000..580d5f96 --- /dev/null +++ b/thirdparty/includes/WiringPi/sn3218.h @@ -0,0 +1,33 @@ +/* + * sn3218.c: + * Extend wiringPi with the SN3218 I2C LED driver board. + * Copyright (c) 2012-2013 Gordon Henderson + *********************************************************************** + * This file is part of wiringPi: + * https://projects.drogon.net/raspberry-pi/wiringpi/ + * + * wiringPi is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * wiringPi is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with wiringPi. + * If not, see . + *********************************************************************** + */ + +#ifdef __cplusplus +extern "C" { +#endif + +extern int sn3218Setup (int pinBase) ; + +#ifdef __cplusplus +} +#endif diff --git a/thirdparty/includes/WiringPi/softPwm.h b/thirdparty/includes/WiringPi/softPwm.h new file mode 100644 index 00000000..0351da5d --- /dev/null +++ b/thirdparty/includes/WiringPi/softPwm.h @@ -0,0 +1,35 @@ +/* + * softPwm.h: + * Provide 2 channels of software driven PWM. + * Copyright (c) 2012 Gordon Henderson + *********************************************************************** + * This file is part of wiringPi: + * https://projects.drogon.net/raspberry-pi/wiringpi/ + * + * wiringPi is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * wiringPi is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with wiringPi. + * If not, see . + *********************************************************************** + */ + +#ifdef __cplusplus +extern "C" { +#endif + +extern int softPwmCreate (int pin, int value, int range) ; +extern void softPwmWrite (int pin, int value) ; +extern void softPwmStop (int pin) ; + +#ifdef __cplusplus +} +#endif diff --git a/thirdparty/includes/WiringPi/softTone.h b/thirdparty/includes/WiringPi/softTone.h new file mode 100644 index 00000000..a93c5af3 --- /dev/null +++ b/thirdparty/includes/WiringPi/softTone.h @@ -0,0 +1,39 @@ +/* + * softTone.c: + * For that authentic retro sound... + * Er... A little experiment to produce tones out of a Pi using + * one (or 2) GPIO pins and a piezeo "speaker" element. + * (Or a high impedance speaker, but don'y blame me if you blow-up + * the GPIO pins!) + * Copyright (c) 2012 Gordon Henderson + *********************************************************************** + * This file is part of wiringPi: + * https://projects.drogon.net/raspberry-pi/wiringpi/ + * + * wiringPi is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * wiringPi is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with wiringPi. + * If not, see . + *********************************************************************** + */ + +#ifdef __cplusplus +extern "C" { +#endif + +extern int softToneCreate (int pin) ; +extern void softToneStop (int pin) ; +extern void softToneWrite (int pin, int freq) ; + +#ifdef __cplusplus +} +#endif diff --git a/thirdparty/includes/WiringPi/sr595.h b/thirdparty/includes/WiringPi/sr595.h new file mode 100644 index 00000000..4a26dc7c --- /dev/null +++ b/thirdparty/includes/WiringPi/sr595.h @@ -0,0 +1,34 @@ +/* + * sr595.h: + * Extend wiringPi with the 74x595 shift registers. + * Copyright (c) 2013 Gordon Henderson + *********************************************************************** + * This file is part of wiringPi: + * https://projects.drogon.net/raspberry-pi/wiringpi/ + * + * wiringPi is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * wiringPi is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with wiringPi. + * If not, see . + *********************************************************************** + */ + +#ifdef __cplusplus +extern "C" { +#endif + +extern int sr595Setup (const int pinBase, const int numPins, + const int dataPin, const int clockPin, const int latchPin) ; + +#ifdef __cplusplus +} +#endif diff --git a/thirdparty/includes/WiringPi/wiringPiI2C.h b/thirdparty/includes/WiringPi/wiringPiI2C.h new file mode 100644 index 00000000..6db8c688 --- /dev/null +++ b/thirdparty/includes/WiringPi/wiringPiI2C.h @@ -0,0 +1,42 @@ +/* + * wiringPiI2C.h: + * Simplified I2C access routines + * Copyright (c) 2013 Gordon Henderson + *********************************************************************** + * This file is part of wiringPi: + * https://projects.drogon.net/raspberry-pi/wiringpi/ + * + * wiringPi is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * wiringPi is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with wiringPi. + * If not, see . + *********************************************************************** + */ + +#ifdef __cplusplus +extern "C" { +#endif + +extern int wiringPiI2CRead (int fd) ; +extern int wiringPiI2CReadReg8 (int fd, int reg) ; +extern int wiringPiI2CReadReg16 (int fd, int reg) ; + +extern int wiringPiI2CWrite (int fd, int data) ; +extern int wiringPiI2CWriteReg8 (int fd, int reg, int data) ; +extern int wiringPiI2CWriteReg16 (int fd, int reg, int data) ; + +extern int wiringPiI2CSetupInterface (const char *device, int devId) ; +extern int wiringPiI2CSetup (const int devId) ; + +#ifdef __cplusplus +} +#endif diff --git a/thirdparty/includes/WiringPi/wiringShift.h b/thirdparty/includes/WiringPi/wiringShift.h new file mode 100644 index 00000000..419ade41 --- /dev/null +++ b/thirdparty/includes/WiringPi/wiringShift.h @@ -0,0 +1,41 @@ +/* + * wiringShift.h: + * Emulate some of the Arduino wiring functionality. + * + * Copyright (c) 2009-2012 Gordon Henderson. + *********************************************************************** + * This file is part of wiringPi: + * https://projects.drogon.net/raspberry-pi/wiringpi/ + * + * wiringPi is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * wiringPi is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with wiringPi. If not, see . + *********************************************************************** + */ + +#define LSBFIRST 0 +#define MSBFIRST 1 + +#ifndef _STDINT_H +# include +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +extern uint8_t shiftIn (uint8_t dPin, uint8_t cPin, uint8_t order) ; +extern void shiftOut (uint8_t dPin, uint8_t cPin, uint8_t order, uint8_t val) ; + +#ifdef __cplusplus +} +#endif diff --git a/thirdparty/lib/raspberrypi/libcblas.a b/thirdparty/lib/raspberrypi/libcblas.a index 7a460be9..719376dd 100644 Binary files a/thirdparty/lib/raspberrypi/libcblas.a and b/thirdparty/lib/raspberrypi/libcblas.a differ diff --git a/thirdparty/lib/raspberrypi/liblapack.a b/thirdparty/lib/raspberrypi/liblapack.a index 726f2b99..9af700fc 100644 Binary files a/thirdparty/lib/raspberrypi/liblapack.a and b/thirdparty/lib/raspberrypi/liblapack.a differ diff --git a/thirdparty/lib/raspberrypi/librefblas.a b/thirdparty/lib/raspberrypi/librefblas.a index 300a0db5..0307f908 100644 Binary files a/thirdparty/lib/raspberrypi/librefblas.a and b/thirdparty/lib/raspberrypi/librefblas.a differ diff --git a/thirdparty/lib/raspberrypi/libwiringPi.a b/thirdparty/lib/raspberrypi/libwiringPi.a new file mode 100644 index 00000000..c83d3b57 Binary files /dev/null and b/thirdparty/lib/raspberrypi/libwiringPi.a differ diff --git a/thirdparty/lib/raspberrypi/libwiringPiDev.a b/thirdparty/lib/raspberrypi/libwiringPiDev.a new file mode 100644 index 00000000..7b4db14f Binary files /dev/null and b/thirdparty/lib/raspberrypi/libwiringPiDev.a differ diff --git a/thirdparty/lib/raspberrypi/libwiringPiDev.so b/thirdparty/lib/raspberrypi/libwiringPiDev.so new file mode 100644 index 00000000..b52f791e Binary files /dev/null and b/thirdparty/lib/raspberrypi/libwiringPiDev.so differ diff --git a/unloader.sce b/unloader.sce index e4ec09c7..a8bf1673 100644 --- a/unloader.sce +++ b/unloader.sce @@ -1,31 +1,14 @@ // This file is released under the 3-clause BSD license. See COPYING-BSD. // Generated by builder.sce: Please, do not edit this file -oldmode = mode(); mode(-1); -oldlines = lines()(2); lines(0); try - // Unregister the library of macros. This does not unregister its macros - clear scilab2clib - // Del help chapter - if or(getscilabmode() == ["NW";"STD"]) then - mprintf("\tRemove help chapter\n"); - del_help_chapter("scilab2c", %F); - end - // Remove Preferences GUI - if getscilabmode() == "STD" then - removeModulePreferences(get_absolute_file_path("unloader.sce")) - end - // TODO: detect and unlink related gateways + getversion("scilab"); catch - [errmsg, tmp, nline, func] = lasterror() - msg = "%s: error on line #%d: ""%s""\n" - msg = msprintf(msg, func, nline, errmsg) - lines(oldlines) - mode(oldmode); - clear oldlines oldmode tmp nline func - error(msg); + error("Scilab 5.4 or more is required."); +end; + +fileQuit = get_absolute_file_path("unloader.sce") + "etc/" + "scilab2c.quit"; +if isfile(fileQuit) then + exec(fileQuit); end -lines(oldlines); -mode(oldmode); -clear oldlines oldmode; -- cgit