drivers: sensor: passing multiple values using struct sensor_value #77944
              
                Unanswered
              
          
                  
                    
                      cyberjupiter
                    
                  
                
                  asked this question in
                General
              
            Replies: 2 comments
-
| 
         Hi @cyberjupiter! We appreciate you submitting your first issue for our open-source project. 🌟 Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            -
        
 pass an array of   | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, I am using vl513x - ToF sensor. There is an attribute to set some config (ROI for example) of which the application needs to pass two(2) values. The actual implementation actually needs four(4) values but the author of the code managed to encode those in
struct sensor_valuewhich is fine.But lets say I have to set some other attributes that needs like 10 values. How do I do this?
I have tried to search for any sensor that needs this feature but I can't seem to find one.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions