This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <iio.h> | |
#define URI "ip:192.168.2.1" | |
int main() { | |
unsigned int major; | |
unsigned int minor; | |
char git_tag[8]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
project(iio_apps) | |
add_executable(hello hello.c) | |
target_link_libraries(hello iio) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <iio.h> | |
int main() { | |
unsigned int major; | |
unsigned int minor; | |
char git_tag[8]; | |
iio_library_get_version(&major, &minor, git_tag); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main() { | |
printf("Hello Analog Devices students\n"); | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def compute_zero_crossing(array): | |
prev = array[0] | |
cnt = 0 | |
last_sign = get_sign(prev) | |
for i in array[1:]: | |
sign = get_sign(i - prev) | |
prev = i | |
if(sign != last_sign): | |
cnt+=1 | |
last_sign = sign |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
analog@analog:~ $ gcc sleep_benchmark.cpp -o test -lstdc++ && ./test | |
i: 1000 deltat: 1123.07 | |
i: 2000 deltat: 2066.56 | |
i: 3000 deltat: 3066.14 | |
i: 4000 deltat: 4065.88 | |
i: 5000 deltat: 5074.94 | |
i: 6000 deltat: 6083.12 | |
i: 7000 deltat: 7078.48 | |
i: 8000 deltat: 8085.41 | |
i: 9000 deltat: 9074.52 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <thread> | |
#include <iostream> | |
void sleep(int micro) { | |
std::this_thread::sleep_for(std::chrono::microseconds(micro)); | |
} | |
int main(){ | |
for(int i=1;i<100;i++) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Library version: 0.23 (git tag: 87699e7) | |
Compiled with backends: local xml ip usb | |
IIO context created with network backend. | |
Backend version: 0.23 (git tag: 87699e7) | |
Backend description string: 192.168.0.102 Linux analog 5.4.83-v7l+ #3 SMP Wed Jul 28 19:37:02 UTC 2021 armv7l | |
IIO context has 3 attributes: | |
local,kernel: 5.4.83-v7l+ | |
uri: ip:192.168.0.102 | |
ip,ip-addr: 192.168.0.102 | |
IIO context has 6 devices: |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adi@adi-home:~/src/scopy-android-deps/gnuradio-android$ ./build_dependencies.sh | |
ANDROID_SDK=/home/adi/Android/Sdk | |
CMAKE=/home/adi/Qt/Tools/CMake/bin/cmake | |
QT_INSTALL_PREFIX=/home/adi/Qt/5.15.2/android | |
JDK=/home/adi/jdk-14 | |
NDK_VERSION=21.3.6528147 | |
JOBS=9 | |
BUILD_ROOT=/home/adi/src/scopy-android-deps/gnuradio-android | |
aarch64-linux-android28 | |
/home/adi/src/scopy-android-deps/gnuradio-android /home/adi/Android/Sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/linux-x86_64/bin:/home/adi/jdk-14/bin:/home/adi/jdk-14/bin:/home/adi/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin /home/adi/src/scopy-android-deps/gnuradio-android/deps_build_aarch64-linux-android/out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adi@adi-home:~$ sudo pip install -vvv --index-url https://test.pypi.org/simple/ libm2k==0.5.0.dev2 | |
Non-user install because site-packages writeable | |
Created temporary directory: /tmp/pip-ephem-wheel-cache-m7alu9x7 | |
Created temporary directory: /tmp/pip-req-tracker-npw_xls2 | |
Initialized build tracking at /tmp/pip-req-tracker-npw_xls2 | |
Created build tracker: /tmp/pip-req-tracker-npw_xls2 | |
Entered build tracker: /tmp/pip-req-tracker-npw_xls2 | |
Created temporary directory: /tmp/pip-install-uumfu15w | |
Looking in indexes: https://test.pypi.org/simple/ | |
1 location(s) to search for versions of libm2k: |
NewerOlder