Bit Banging USB writing codes with MATLAB
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I am a beginner in MATLAB Coder. I would like to know is it possible to make c code for bit banging usb through GPIO pins using matlab coder. If anyone has experience please help me.
0 comentarios
Respuestas (1)
Walter Roberson
el 16 de Ag. de 2016
That is not a functionality that a block has already been written for, so you would need to write the C code yourself, and at best would be able to call into it.
Remember, C itself provides very limited I/O, with no device access, no access to absolute memory locations, no access to PORT assembly language instructions, and no bit-level I/O operations. Those things can be written using extensions to C such as #asm blocks or type-punning a long int to a pointer (C specifies the behavior of that to be undefined unless the integer is 0.)
0 comentarios
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!