CYALKIT-E02 Solar-Powered BLE Sensor Beacon Reference Design Kit Guide, Doc. No. 002-11317 Rev. *C
57
5.2.2 Function List
lists the functions for the example project of the kit firmware.
Table 5-5. Example Project Functions
Function Name
Description
CyDelay
Wait for milliseconds
CyDelayUs
Wait for microseconds
USB_Detect_Read
Reads the current value on the pins (P3.5) of the digital port in right justified
UART_Start
Invokes SCB_Init() and SCB_Enable()
UART_UartPutString
Places a NULL terminated string in the transmit buffer to be sent at the next available bus time
CySoftwareReset
Forces a software reset of the device
CySysClkWriteEcoDiv
Sets the divider for the ECO
CySysClkEcoStart
Starts the ECO
CySysClkEcoStop
Stops the MHz crystal
WDT_Interrupt_StartEx
Initialize WDT interrupt
CySysClkWcoStart
Enables the WCO
CySysClkWcoSetPowerMode
Sets power mode for the 32-kHz WCO
CySysWdtLocked
Reports WDT lock state
CySysClkSetLfclkSource
Sets clock source for the LFCLK clock
CySysWdtEnable
Enables specified WDT counters
CySysWdtLock
Locks out configuration changes to the WDT registers and ILO configuration register
CySysWdtUnlock
Unlocks the watchdog timer configuration register
CySysPmDeepSleep
Puts the part into the deep sleep state
CySysWdtEnable
Enables the specified WDT counters
CySysWdtDisable
Disables the specified WDT counters
ConfigRW_CheckSFlash
Checks whether there is configuration data in user Sflash
cmd_uart_sub
Function for processing UART commands
CyBle_Start
Initializes the BLE stack, which consists of the BLE Stack Manager, BLE Controller, and BLE Host
modules
CyBle_ProcessEvents
Checks the internal task queue in the BLE Stack and pending operation of the BLE Stack
CyBle_EnterLPM
Requests the underlying BLE modules such as BLE Controller, BLE Host Stack, and BLE Stack
Manager to enter into one of the supported low-power modes
CyEnterCriticalSection
No interrupts allowed while entering system low-power modes
CySysPmDeepSleep
Puts the part into the deep sleep state
CySysClkWriteHfclkDirect
Selects the direct source for the HFCLK
CySysClkImoStart
Enables the IMO
CySysClkImoStop
Disables the IMO
CySysPmSleep
Puts the part into the sleep state
ProcessI2Cevents
Handles I
2
C events according to current state and updates the state value
ProcessBeaconEvents
Handles beacon events according to current state and updates the state value
Si7020_Init
Initial temperature and humidity sensor Si7020
Si7020_WriteRead
Sends conversion command and reads temperature and humidity data
Beacon_GappStartAdvertisement
Starts advertisement using the specified interval
CyBle_GappStopAdvertisement
Exits discovery mode