> For the complete documentation index, see [llms.txt](https://sdk.twelite.info/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sdk.twelite.info/twelite-sdk-howto/derekutori.md).

# フォルダ構成

TWELITE SDK は、インストール先のフォルダを基準にして、所定の場所にソースコードなどプロジェクトファイルを格納するように用意されています。

{% hint style="danger" %}
SDKインストールフォルダを含め、フォルダ名・ファイル名は英数文字 \*\*`a-z A-Z 0-9 _ -`\*\*と拡張子を区切る **`.`** ピリオドとし、空白・その他特殊記号や多バイト圏文字列（日本語など）が含まないようにしてください。
{% endhint %}

| フォルダ                    | 内容                    |
| ----------------------- | --------------------- |
| `.../MWSDK`             | TWELITE SDK の最上位フォルダ。 |
| `.../MWSDK/ChipLib`     | 半導体ライブラリ              |
| `.../MWSDK/License`     | モノワイヤレスソフトウェア仕様許諾書    |
| `.../MWSDK/MkFiles`     | makefile ライブラリ        |
| `.../MWSDK/Tools`       | toolchain、書き込みツールなど   |
| `.../MWSDK/TWENET`      | TWELITE NET ライブラリ     |
| `.../????_libTWENET`    | libTWENETUtils ソースコード |
| `.../MWSDL/Wks_TWELITE` | アプリ・サンプルのワークスペース      |

### Wks\_TWELITE ワークスペースについて

{% hint style="danger" %}
ワークスペースを格納するフォルダはMWSDK 直下で、かつ、後述する Makefile の相対フォルダも変更してはいけません。

`.../MWSDK/{ワークススペースフォルダ}/{プロジェクトフォルダ}/{構成フォルダ}/Build/Makefile`
{% endhint %}

プログラムをビルドするためのワークスペースには、複数のプロジェクトが格納されています。Wks\_TWELITE 内に格納されるプロジェクトは各々個別のアプリケーションをビルドするものです。

```
.../MWSDK/Wks_TWELITE/ProjectName1/...
.../MWSDK/Wks_TWELITE/ProjectName2/...
...
```

プロジェクト内は以下のような構成になっています。

```
.../ProjectNameX/
    Variant1/          : 構成１(var1)のビルド
       Source/         : var1 特有のソースコード
       Build/          : 生成バイナリの格納場所
           Makefile    : var1 の生成ルール
           Version.mk  : var1 のバージョン情報
    Variant2/...       : 構成2
    Common/            : 構成間共通のソースなど
```

* 同じプロジェクトでも、構成が一つのみの場合もあれば、親機・子機・中継機と構成が別れたソースコードになる場合もあります。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://sdk.twelite.info/twelite-sdk-howto/derekutori.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
