B4R Question How to access inline-C array in B4R

Discussion in 'B4R Questions' started by jinyistudio, Apr 15, 2019.

  1. jinyistudio

    jinyistudio Active Member Licensed User

    Hi

    I have two array define in incline-C. How could i access(read/write) them in B4R function ? :oops:

    Code:
    Sub Process_Globals
       
    'These global variables will be declared once when the application starts.
       'Public variables can be accessed from all modules.
       Public Serial1 As Serial
    End Sub

    Private Sub AppStart    
       Serial1.Initialize(
    115200)
       
    Log("AppStart")
        
       AddLooper(
    "EtherCAT_Loop")
    End Sub

    Sub EtherCAT_Loop
       RunNative(
    "Loop2",Null)
    End Sub

    #if C
      uint8_t  ByteIn [32];
      uint8_t  ByteOut [32];
    #End if
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    jinyistudio likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice