Code Preview panel


This panel allows you to confirm the source code in accord with the settings of the Peripheral Functions panel.

Figure A.12

Code Preview Panel

 

The following items are explained here.

[How to open]

-

On the Project Tree panel, double-click [Project name (Project)] >> [Code Generator (Design Tool)] >> [Code Preview] >> Peripheral function node >> Source code node (>> API function node).

-

On the Project Tree panel, select [Project name (Project)] >> [Code Generator (Design Tool)] >> [Code Preview] >> Peripheral function node >> Source code node (>> API function mode), and then press the [Enter] key.

-

From the [View] menu >> [Code Generator 2], select [Code Preview].

Remark

If this panel is already open, double-clicking the source code node (>> API function node) changes the content displayed in the Source code display area to that corresponding to the selected node.

[Description of each area]

(1)

Source code display area

This area allows you to confirm the source code (device driver program) that reflects the information configured in the Peripheral Functions panel.

The following table displays the meaning of the color of the source code text displayed in this area.

Green

Comment

Blue

Reserved word for C compiler

Red

Numeric value

Black

Code section

Gray

File name

Remark 1.

You cannot edit the source code within this panel.

Remark 2.

For some of the API functions, values such as the register value are calculated and finalized when the source code is generated (when the button on the Peripheral Functions panel is pressed). For this reason, the source code displayed in this panel may not be the same as that would actually be generated.

[Context menu]

Copy

Sends the character string or lines selected with range selection to the clipboard.

Select All

Selects all the messages displayed on the Source code display area.