MATLAB EMBEDDED IDE LINK 4 - FOR USE WITH TEXAS INSTRUMENTS CODE COMPOSER STUDIO Podręcznik Użytkownika Strona 306

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 575
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 305
list
Also, list may report incorrect information when you make changes
to variables from MATLAB software. To report variable information,
list uses the CCS API, which only knows about variables in CCS. Your
changes from MATLAB software, such as changing the data type of a
variable, do not appear through the API and
list. For example, the
following operations return incorrect or old data information from
list.
Suppose your original prototype is
unsigned short tgtFunction7(signed short signedShortArray1[]);
After creating the function obje ct fcnObj,performadeclare operation
with this string to change the declaration:
unsigned short tgtFunction7(unsigned short signedShortArray1[]);
Now try using list to return information about signedShortArray1.
list(fcnObj,'signedShortArray1')
address: [3442 1]
location: [1x66 char]
size: 1
type: 'short *'
bitsize: 16
reftype: 'short'
referent: [1x1 struct]
member_pts_to_same_struct: 0
name: 'signedShortArray1'
The type eld reports the original data type short.
You get this is because
list uses the CCS API to query information
about any particular variable. As far as the API is concerned, the rst
input variable is a
short*. Changing the declaration does not change
anything.
7-84
Przeglądanie stron 305
1 2 ... 301 302 303 304 305 306 307 308 309 310 311 ... 574 575

Komentarze do niniejszej Instrukcji

Brak uwag