logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

mesa_pktgyro_test - PktUART simple test with Microstrain 3DM-GX3-15 gyro

Author

       Boris Skegin

Description

       This  component  is written in order to test the PktUART driver for Mesa. It resembles partly Andy Pugh's
       mesa_uart.comp .

       This module uses the names= mode of loadrt declaration to specify which PktUART instances  to  enable.  A
       check  is included to ensure that the count= option is not used instead.  For simplicity we test only one
       PktUART instance, therefore load the component like this:

        loadrtmesa_uartnames=hm2_5i25.0.pktuart.0

       The PktUART instance names are printed to the dmesg buffer during the Hostmot2 setup  sequence,  one  for
       each  PktUART  instance  included  in the bitfile loaded to each installed card during the Hostmot2 setup
       sequence. Type "dmesg" at the terminal prompt to view the output.  If you want to work with more than one
       PktUART instance, consult Andy Pugh's mesa_uart.comp

       In order to compile and install do:
        halcompile--installsrc/hal/drivers/mesa_pktgyro_test.comp

       The component exports only one function, namely receive, which needs to be added to  a  realtime  thread.
       To test this component  set DEBUG=5 before and execute this HAL script:
        loadrthostmot2loadrthm2_pciloadrtmesa_pktgyro_testnames=hm2_5i25.0.pktuart.0loadrtthreadsname1=test1period1=10000000addfhm2_5i25.0.pktuart.0.receivetest1start

       Check linuxcnc.log for debug output.

Functions

mesa-pktgyro-test.N.receive (requires a floating-point thread)

License

       GPL

LinuxCNC Documentation                             2025-06-19                               MESA_PKTGYRO_TEST(9)

Name

       mesa_pktgyro_test - PktUART simple test with Microstrain 3DM-GX3-15 gyro

Pins

mesa-pktgyro-test.N.rxbytes s32 out
              Number of Bytes received or negative Error code

Synopsis

loadrtmesa_pktgyro_test[count=N|names=name1[,name2...]]

See Also