# Modules

The TWELITE NET libraries are feature selective at compile time. Some of the features are dependencies.

| Definition                                                                                              | Remark                                                                                                                                                                                                                                                                                                                 |
| ------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ToCoNet\_REG\_MOD\_ENERGYSCAN                                                                           | <p>Measures the input level of the channel. At the input, transmission and reception are disabled.<br>Function: ToCoNet\_EnergyScan\_bStart(), Event：E\_EVENT\_TOCONET\_ENERGY\_SCAN\_COMPLETE<strong>NOTE: THIS IS NOT SUPPORTED AT THE LATEST SDK.</strong></p>                                                      |
| <p>ToCoNet\_USE\_MOD\_NBSCAN<br>ToCoNet\_USE\_MOD\_NBSCAN\_SLAVE</p>                                    | Search for radio modules in the vicinity. Function: ToCoNet\_NbScan\_bStart(), ToCoNet\_NbScan\_bStartToFindRole(), ToCoNet\_NbScan\_bStartToFindAddr(), EVENT: E\_EVENT\_TOCONET\_NWK\_SCAN\_COMPLETE                                                                                                                 |
| <p>ToCoNet\_USE\_MOD\_RAND\_XOR\_SHIFT<br></p>                                                          | Register the random number generation algorithm. If not registered, the built-in hardware random number will be used. However, if a continuous 32-bit random number sequence is required, a software random number is used. If an external 32kHz crystal or oscillator is to be connected, XOR\_SHIFT must be defined. |
| ToCoNet\_USE\_MOD\_NWK\_LAYERTREE                                                                       | It uses a layer-tree network layer. Dependent modules: ToCoNet\_USE\_MOD\_NBSCAN, ToCoNet\_USE\_MOD\_NBSCAN\_SLAVE, ToCoNet\_USE\_MOD\_DUPCHK                                                                                                                                                                          |
| ToCoNet\_USE\_MOD\_NWK\_ LAYERTREE\_MININODES                                                           | Power-saving "mini-node" capable of sending data to a layer-tree network dedicated to broadcast transmission. Dependent modules : ToCoNet\_USE\_MOD\_DUCHK                                                                                                                                                             |
| ToCoNet\_USE\_MOD\_DUPCHK                                                                               | Duplicate packet checker. It manages duplicate packets for up to 40 nodes. Mandatory definition module when using layer-tree type "mini-nodes".                                                                                                                                                                        |
| ToCoNet\_REG\_MOD\_NWK \_MESSAGE\_POOL                                                                  | Use the message pool function. Dependent modules:ToCoNet\_USE\_MOD\_NWK\_LAYERTREE                                                                                                                                                                                                                                     |
| ToCoNet\_USE\_MOD\_CHANNEL\_MGR                                                                         | Uses channel agility, i.e. multi-channel driven communication using the channels specified in u32ChMask.                                                                                                                                                                                                               |
| ToCoNet\_USE\_MOD\_TXRXQUEUE\_SMALL　ToCoNet\_USE\_MOD\_TXRXQUEUE\_MID　ToCoNet\_USE\_MOD\_TXRXQUEUE\_BIG | Determines the size of the transmit queue: SMALL allocates 3 queues for transmission, MID allocates 6 queues, and BIG allocates 20 queues. Each queue takes up about 128 bytes of memory, and when undefined, the queue size is MID.                                                                                   |
