Skip to content

Jumperr-labs/ad7798

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jumper Virtual Lab Peripheral Model - AD7798

This repo contains AD7798 peripheral to use with Jumper Virtual Lab.

For more information, visit the docs.

Prerequisites

Usage

  • Fork this repository on GitHub and clone the new repository onto your Linux machine.

  • Make sure you have the build prerequisites by running the following:

    cd /PATH/TO/AD7798/REPO
    make
  • If everything worked as expected, you should now have a "_build/AD7798.so" file.

  • Copy the .so file from the "_build/" directory to your Jumper Virtual Lab working directory (same one as the "board.json" file).

  • Add the component to your "board.json" file:

    {
      "name": "AD7798",
      "id": 2,
      "type": "Peripheral",
      "file": "AD7798.so",
      "config": {
          "pins": {
              "cs": 29,
              "sck": 3,
              "si": 4,
              "so": 28
          },
          "generators": {
              "conversion": 1
          }
       }
    }
  • Use this "scenario.json" file for example (you can use data generator id 1 or 2):

    {
      "DataGenerators": [
          {
              "id": 1,
              "type": "Constant",
              "config": {
                  "value": 5412
              }
          },
          {
              "id": 2,
              "type": "File",
              "config": {
                  "path": "ad7798_input"
                  
              }
          }
      ]
    }

License

Licensed under the Apache License, Version 2.0. See the LICENSE file for more information

About

Jumper Virtual Lab Peripheral Model - AD7798

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published