AaeonIo.dll .Net 4.6.1 Wrapper

Jason
Jason New Member Posts: 8
Hi All,

Has anyone implemented a C# wrapper for the AaeonIo.dll I/O libraries?

Regards,
Jason Craig

Comments

  • Bastian
    Bastian New Member Posts: 5
    I'm also interested in this.. but I think it doesn't exist...
  • Martin Mayr
    Martin Mayr New Member Posts: 54
    We use the boards IO under C# .NET ... it works fine ... but there is no ADC, no I2C and no SPI available for the moment ...

    If you need help for this you can contact me here .

    Best regards

    Martin
  • Bastian
    Bastian New Member Posts: 5
    Thanks for your reply.. can you Upload a example Project. Ich didn't get it
  • Martin Mayr
    Martin Mayr New Member Posts: 54
    Contact me per email tomorrow mmayr(at)mmm-it(dot)com ... then I can arrange some help for you ...
  • Jason
    Jason New Member Posts: 8
    Is this a limitation due to Windows 10 or is it just not implemented?
  • Martin Mayr
    Martin Mayr New Member Posts: 54
    We have a huge application in which the AAeonIO.dll is integrated but we modified so many things according to our special application, that it won't help anybody to get the sources because e.g. all vaales used in the interface are passed through special variablelinks for dynamic programming of the HMI interface from within the application itself ... and we won't give out our source code from our application because its to much technology inside. But as I said we can offer support for this, but its not a free support, its support in form of consulting or in form of programming on demand ...
    Best regards
    Martin
  • Jason
    Jason New Member Posts: 8
    When do you think Analog I/O's and SPI will be available for Windows 10 Pro?
  • Martin Mayr
    Martin Mayr New Member Posts: 54
    Hello,

    this is not a question for the wrapper, this is a question for the drivers being not yet available and without our influence ....

    Best regards

    Martin
  • Jack
    Jack AAEON Posts: 16 mod
    Please try to download AAEON Hi-Safe utility from below FTP for testing.
    ftp://ae:aaeonae@dataex.aaeon.com.tw
    File name:Hi-Safe_v2_20170608.zip
  • Jason
    Jason New Member Posts: 8
    It looks like the EApiGPIOSetLevel & EApiGPIOGetLevel methods use unsigned 32 bit values; will this be a scaled 0 to 3.3V value?

    I also seen the EApiSPIReadTransfer & EApiSPIWriteTransfer methods, has anyone used these?
  • Jack
    Jack AAEON Posts: 16 mod
    The value in EApiGPIOSetLevel and EApiGPIOGetLevel use 0 as low, 1 as High.
    There’re no EApiSPIReadTransfer & EApiSPIWriteTransfer APIs, where do you see these?
  • Jason
    Jason New Member Posts: 8
    In the header you will find:

    /*
    * EApiGPIOGetLevel
    *
    * Condition | Return Values
    *
    +
    * Library Uninitialized | EAPI_STATUS_NOT_INITIALIZED
    * Bitmask==0 | EAPI_STATUS_INVALID_PARAMETER
    * Unsupported Id | EAPI_STATUS_UNSUPPORTED
    * (Bitmask&~(pInputs|pOutputs)) | EAPI_STATUS_INVALID_BITMASK
    * Common Error | Common Error Code
    * Else | EAPI_STATUS_SUCCESS
    */
    /**
    * @param Id: GPIO Id: EAPI_GPIO_GPIO_ID(GPIO_NUM)
    * @param Bitmask: Bit mask of Affected Bits: 0xFFFFFFFF
    * @retval *pLevel: Current Level
    * @return EAPI_STATUS_NOT_INITIALIZED: Library Uninitialized
    * @return EAPI_STATUS_INVALID_PARAMETER: Bitmask==0
    * @return EAPI_STATUS_UNSUPPORTED: Unsupported Id
    * @return EAPI_STATUS_INVALID_BITMASK: (Bitmask&~(pInputs|pOutputs))

    * @return EAPI_STATUS_SUCCESS: Else
    */
    EApiStatus_t
    EAPI_CALLTYPE
    EApiGPIOGetLevel(
    __IN EApiId_t Id, /* GPIO Id */
    __IN uint32_t Bitmask, /* Bit mask of Affected Bits */
    __OUT uint32_t *pLevel /* Current Level */
    );
    /*
    * EApiGPIOSetLevel
    *
    * Condition | Return Values
    *
    +
    * Library Uninitialized | EAPI_STATUS_NOT_INITIALIZED
    * Bitmask==0 | EAPI_STATUS_INVALID_PARAMETER
    * Unsupported Id | EAPI_STATUS_UNSUPPORTED
    * Common Error | Common Error Code
    * Else | EAPI_STATUS_SUCCESS
    */
    /**
    * @param Id: GPIO Id: EAPI_GPIO_GPIO_ID(GPIO_NUM)
    * @param Bitmask: Bit mask of Affected Bits: 0xFFFFFFFF
    * @param Level: Level
    * @return EAPI_STATUS_NOT_INITIALIZED: Library Uninitialized
    * @return EAPI_STATUS_INVALID_PARAMETER: Bitmask==0
    * @return EAPI_STATUS_UNSUPPORTED: Unsupported Id

    * @return EAPI_STATUS_SUCCESS: Else
    */
    EApiStatus_t
    EAPI_CALLTYPE
    EApiGPIOSetLevel(
    __IN EApiId_t Id, /* GPIO Id */
    __IN uint32_t Bitmask, /* Bit mask of Affected Bits */
    __IN uint32_t Level /* Level */
    );

    and this:

    EApiStatus_t
    EAPI_CALLTYPE
    EApiSPIReadTransfer(
    __IN uint32_t bCrtlStatus, /* SPI Control/Status */
    __IN uint32_t *bConfig, /* SPI Configuration Register1-3 */
    __OUT uint32_t *bData /* Transfer Data pBuffer */
    );


    EApiStatus_t
    EAPI_CALLTYPE
    EApiSPIWriteTransfer(
    __IN uint32_t bCrtlStatus, /* SPI Control/Status */
    __IN uint32_t *bConfig, /* SPI Configuration Register1-3 */
    __IN uint32_t *bData /* Transfer Data pBuffer */
    );
  • Jack
    Jack AAEON Posts: 16 mod
    EApiSPIReadTransfer & EApiSPIWriteTransfer did not be implemented yet.
    Currently, it only supports I2C and DIO function.
  • m_kramar
    m_kramar New Member Posts: 8

    Any support for SPI on Windows yet?

  • aivision
    aivision New Member Posts: 12

    I need also SPI control. Any update and example please?

  • ApeiChen
    ApeiChen New Member, Moderator, AAEON Posts: 23 admin

    Hi,

    Please refer to attached SPI beta package.
    We will implement it into our SDK officially in near future.

    Configuration
    OS: Windows 10 1709 above
    BIOS: UPC1DM15 above
    Set OS IMAGE ID to “Windows 10 IoT Core” in the BIOS boot menu
    Install visual c++ redistributable (Visual Studio 2015) for execute SpiTestTool.exe
    https://www.microsoft.com/zh-TW/download/details.aspx?id=48145

    The tool has two modes that we will use, SPI setup and SPI control.

    For SPI setup:
    The “-h” option use to view a list of examples of parameter usage. Type the following command at shell prompt >>SpiTestTool.exe –h

    For SPI control:
    Type “SpiTestTool.exe” into Command Prompt. This command will allow you to run a program from the selected file path.
    Type “help” into Command Prompt, to view a list of SPI commands.

    Thanks.