Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Return values from native functions
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
GilRoss  
View profile  
 More options Oct 31 2012, 12:17 pm
From: GilRoss <gilbert.r...@gmail.com>
Date: Wed, 31 Oct 2012 09:17:01 -0700 (PDT)
Local: Wed, Oct 31 2012 12:17 pm
Subject: Return values from native functions

I would like to return an integer from a native funcion:

myValue = ReadAdc( freq, oversamples )

Where ReadAdc is a native function. Are there examples of returning values
from C code?

Gil


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
piranna@gmail.com  
View profile  
 More options Oct 31 2012, 12:21 pm
From: "pira...@gmail.com" <pira...@gmail.com>
Date: Wed, 31 Oct 2012 17:21:40 +0100
Local: Wed, Oct 31 2012 12:21 pm
Subject: Re: [python-on-a-chip] Return values from native functions

Yes, there are examples on __bi.py, basically you have to create a Python
object with the returned data and store it on the Python stack using the
TOS macros :-)

Sent from my Android cell phone, please forgive the lack of format on the
text, and my fat thumbs :-P
El 31/10/2012 17:17, "GilRoss" <gilbert.r...@gmail.com> escribió:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic