SWRA659A March 2020 – June 2020 CC3100 , CC3100MOD , CC3200 , CC3200MOD
The power measurement application enables to switch between the various use cases and to configure the device settings through several global variables declared at the top of the main file. The table below describes how to use them. For your convenience, some defines were already created for all possible values. Note that if the user works in interactive mode the use case and socket type are set interactively, while the other (advanced setting) still needs to be defined in source code.
Variable Name | Value | Remarks |
---|---|---|
g_ActiveUseCase | HIBERNATE_MEASURE | Hibernate Current measurement mode |
SLEEP_MEASURE | Sleep current measurement mode | |
TRANSCEIVER MODE | ||
ALWAYS CONNECTED USE CASE | ||
INTERMEDIATELY CONNECTED | ||
g_SocketType | UDP SOCKET | |
TCP SOCKET | ||
SEC_TCP_SOCKET | Note: For secure socket there are default values for cipher & method variables. | |
g_IpV4Option | STATIC_IP | The Address value is defined in the "MY_IP_ADDRESS" define statement. |
DHCP | Obtain IP address through DHCP process. | |
g_CcaBypass | 0 | This variable is relevant only on Transceiver mode, the default value is 1, aka bypass the CCA |
1 | Example |