Solvline Eddy DK Ver 2.20 Manuel d'utilisateur Page 59

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 75
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 58
Chapter 6. Library
6-16
Returns 0, 1 GPIO value read
0 : low (3.3V is not present at the port)
1 : high (3.3V is present at the port)
Notice I/O mode (direction) of GPIO port specified in GpioNo has to be in input
mode.
6.8 Debugging Function
Eddy can debug operating condition of each application via Telnet in real time.
The following functions are used to print debug log message to Telnet window when SB_DEBUG of each
application is set ON.
SB_LogDataPrint
Function Print each byte of data in hex or ascii code.
Format void SB_LogDataPrint (char *RTx, char *buff, int data_len);
Parameter *RTx Description message of data
*Buff
Data_len
Buffer address of data to be printed is saved/
Size of data.
Returns None
Notice Prints messages to telnet which logged in first.
The message include Eddy’s tick counter of 1msec unit and printed in
following form.
SB_LogDataPrint (“Send”, “\t12345\n”, 8);
[191020202] Send 8 = 08,1,2,3,4,5,0d,0a
-------------- ------- ------ -----------------------
Tick Counter RTx data_Len buff
Debugging of each application in Eddy can be configured as follows by using
Def command. (Please see def.c)
# def po <1/2/all> debug <on/off>
SB_LogMsgPrint
Function Prints in the same format as Printf.
Format void SB_LogMsgPrint (const char *Format, . . . );
Parameter *Format Format of Printf
Returns None
Notice Prints messages to telnet which logged in first.
The message include Eddy’s tick counter of 1msec unit and printed in
following form.
SB_LogMsgPrint (“%s means Real-Time\n”, “Eddy”);
[191020202] Eddy means Real-Tile
Debugging of each application in Eddy can be configured as follows by using
Vue de la page 58
1 2 ... 54 55 56 57 58 59 60 61 62 63 64 ... 74 75

Commentaires sur ces manuels

Pas de commentaire