1. 24 5月, 2019 1 次提交
  2. 07 5月, 2019 1 次提交
  3. 03 5月, 2019 1 次提交
  4. 18 4月, 2019 1 次提交
  5. 27 3月, 2019 1 次提交
    • M
      Add a Method to select default GPIO bank (#346) · 74c0ee8e
      Matheus Castello 提交于
      * Native: Libgpiod: Add GetNumberOfChips method
      
      Some SoCs have more than one GPIO bank. For these we gave more than one entry in /dev/:
      /dev/gpiochip0, /dev/gpiochip1 ... /dev/gpiochipX
      
      This patch add a method to return how many GPIO banks the hardware have.
      Signed-off-by: NMatheus Castello <matheus@castello.eng.br>
      
      * System.Device.Gpio: GpioController: Add SetDefaultGpioChip
      
      Some SoCs have more than one GPIO bank. For these we gave more than one entry in /dev/:
      /dev/gpiochip0, /dev/gpiochip1 ... /dev/gpiochipX
      
      This patch add a method to select the default GPIO bank to be used on the GpioController.
      If the hardware has only one GPIO bank (/dev/gpiochip0 like the rpi) it will be automatically set in
      the GpioController constructor. But if the hardware has more than one GPIO bank the bank to be used
      for GpioController operations should be defined.
      
      Ex: Access GPIO bank 3 (/dev/gpiochip3) line 17:
      
      GpioController gpioCtrl = new GpioController();
      gpioCtrl.SetDefaultGpioChip(3);
      gpioCtrl.OpenPin(17, PinMode.Output);
      Signed-off-by: NMatheus Castello <matheus@castello.eng.br>
      
      * System.Device.Gpio: LibGpioDriver: Implement SetDefaultGpioChip
      
      Some SoCs have more than one GPIO bank. For these we gave more than one entry in /dev/:
      /dev/gpiochip0, /dev/gpiochip1 ... /dev/gpiochipX
      
      This patch implement a method to select the default GPIO bank to be used on the GpioController.
      If the hardware has only one GPIO bank (/dev/gpiochip0 like the rpi) it will be automatically set in
      the GpioController constructor. But if the hardware has more than one GPIO bank the bank to be used
      for GpioController operations should be defined.
      
      Ex: Access GPIO bank 3 (/dev/gpiochip3) line 17:
      
      GpioController gpioCtrl = new GpioController();
      gpioCtrl.SetDefaultGpioChip(3);
      gpioCtrl.OpenPin(17, PinMode.Output);
      Signed-off-by: NMatheus Castello <matheus@castello.eng.br>
      
      * PR #346: Review: Fix Code Style indentation
      
      .net developers use four spaces (no tabs!)
      Signed-off-by: NMatheus Castello <matheus.castello@toradex.com>
      
      * PR #346: Review: Fix some typos and names
      Signed-off-by: NMatheus Castello <matheus.castello@toradex.com>
      
      * PR #346: Review: Get gpioChip handle by number
      
      Use gpiod_chip_open_by_number instead the iterator way
      Signed-off-by: NMatheus Castello <matheus@castello.eng.br>
      
      * PR #346: Review: Use driver constructor instead SetDefaultGpioChip
      Signed-off-by: NMatheus Castello <matheus@castello.eng.br>
      
      * PR #346: Review: Fix build remove _gpioChipIsSet
      Signed-off-by: NMatheus Castello <matheus@castello.eng.br>
      
      * PR #346: Review: Remove GetNumberOfChips
      Signed-off-by: NMatheus Castello <matheus@castello.eng.br>
      74c0ee8e
  6. 17 3月, 2019 1 次提交
  7. 15 3月, 2019 1 次提交
  8. 12 3月, 2019 1 次提交
  9. 07 3月, 2019 1 次提交
  10. 28 2月, 2019 3 次提交
  11. 27 2月, 2019 2 次提交
  12. 23 2月, 2019 2 次提交
  13. 20 2月, 2019 1 次提交
  14. 14 2月, 2019 2 次提交
    • J
      Add more Mcp23xxx tests. (#222) · 353df03b
      Jeremy Kuhne 提交于
      * Add more Mcp23xxx tests.
      
      - Align Mcp address validation with datasheets
      - Allow passing in IGpioController for master controller
      - Add basic tests for reset functionality
      - Fix reset caching issues
      - Add validation for disabled state and tests
      - Remove dead code
      - Add deconstructor and bit mask helper for PinValuePair
      
      * Fix casing to work on Unix.
      
      * Remove tuple from the public interface.
      
      Tuples aren't allowed in our public APIs. After some discussion creating a couple of PinVector structs to allow using bit vectors with pin/values. The 32 bit values can be used with BitVector32 if people care to. The framework currently doesn't have a 64 bit BitVector.
      
      These vectors can potentially be expanded with additional API as we find common patterns.
      
      Address some other feedback.
      
      * Move PinVector to Common while #230 settles out
      
      * Ugh, forgot the deletes.
      353df03b
    • B
      Libgpiod pinvoke driver Read/Write implementation (#219) · 6c1b26f6
      buyaa-n 提交于
      6c1b26f6
  15. 12 2月, 2019 1 次提交
    • J
      Add IGpioController. (#212) · 8d92bda7
      Jeremy Kuhne 提交于
      * Add IGpioController.
      
      This allows compositing gpio extenders/multiplexers or any other providers with device drivers.
      
      * Hack to get command line build working
      
      * Address feedback, fix the rest of the projects
      
      * Add a few tests, tweak the projects to play nicer with VS
      
      * Rejigger the abstraction in Mcp23xxx
      
      Change the abstraction some and update the tests to map closer to the implementations. Fix a bug in setting single pin values.
      8d92bda7
  16. 09 2月, 2019 1 次提交
    • J
      Change PinValue to struct (#211) · f56cbdaf
      Jeremy Kuhne 提交于
      * Change PinValue to struct
      
      Allows easier interop with raw data and enables us to extend with additional functionality. This will avoid having to add additional APIs for convenience and repeated typing of `PinValue == PinValue.High ? 1 :  0`.
      
      Doesn't impact existing enum usage.
      
      Sample usage:
      
      ``` C#
          class Program
          {
              static void Main(string[] args)
              {
                  PinValue value = true;
                  Console.WriteLine($"True is {value}");
                  TestApi(0);
                  Console.WriteLine($"Equality is {PinValue.High == true}");
              }
      
              public static void TestApi(PinValue value)
              {
                  Console.WriteLine($"PinValue is {value}");
              }
          }
      ```
      
      * Ok, so you can't switch a struct. :) Bonus now that you don't have to. There is no such thing as an invalid PinValue anymore.
      f56cbdaf
  17. 30 1月, 2019 1 次提交
  18. 23 1月, 2019 1 次提交
    • G
      Cleanup for GPIO drivers (#148) · d594ce9f
      Greg Ingram 提交于
      * Added editconfig file
      
      * Beginning of cleaning
      
      * Added summaries and sorted
      
      * Added callback summaries
      
      * Fixed ordering and switch/case based on feedback
      d594ce9f
  19. 16 1月, 2019 1 次提交
  20. 15 1月, 2019 1 次提交
    • G
      Cleanup for I2C drivers (#143) · f45fda09
      Greg Ingram 提交于
      * Added editconfig file
      
      * Cleanup for I2C drivers
      
      * Cleanup for I2C drivers
      
      * Updated wording
      
      * Updated for feedback
      f45fda09
  21. 12 1月, 2019 1 次提交
  22. 09 1月, 2019 2 次提交
    • G
      Added missing GPIOs 0 and 1 · 217752c6
      Greg Ingram 提交于
      217752c6
    • G
      Random GPIO cleaning (#138) · d4e7b67a
      Greg Ingram 提交于
      * Basic cleanup in GPIO files
      
      * Basic comment cleanup in GPIO files
      
      * Removed othing lingering words
      
      * Another round of GPIO cleaning
      
      * Removed a couple more words
      
      * Added readonly and updated casing
      
      * Better method grouping and synced constructor summaries
      d4e7b67a
  23. 08 1月, 2019 1 次提交
  24. 06 1月, 2019 2 次提交
  25. 21 12月, 2018 1 次提交
  26. 19 12月, 2018 1 次提交
  27. 14 12月, 2018 2 次提交
  28. 11 12月, 2018 1 次提交
    • G
      Updated PinValue summaries (#85) · 5d86b8fd
      Greg Ingram 提交于
      There was a typo, but also both states can have current depending on hardware configuration.  A Low has ability to sink current.
      5d86b8fd
  29. 05 12月, 2018 2 次提交
  30. 04 12月, 2018 2 次提交