EZR32 Wonder Gecko Software Documentation  ezr32wg-doc-4.2.1
bsp.h File Reference

Board support package API definitions. More...

#include <stdbool.h>
#include "bspconfig.h"
#include "em_usart.h"

Go to the source code of this file.

Macros

#define BSP_STATUS_OK   0
 
#define BSP_STATUS_ILLEGAL_PARAM   (-1)
 
#define BSP_STATUS_NOT_IMPLEMENTED   (-2)
 
#define BSP_STATUS_UNSUPPORTED_MODE   (-3)
 
#define BSP_INIT_DK_SPI   0x01
 
#define BSP_INIT_DK_EBI   0x02
 
#define BSP_INIT_BCC   0x04
 

Enumerations

enum  BSP_Display_TypeDef {
  BSP_Display_EBI,
  BSP_Display_SPI,
  BSP_Display_BC,
  BSP_Display_PowerEnable,
  BSP_Display_PowerDisable,
  BSP_Display_ResetAssert,
  BSP_Display_ResetRelease,
  BSP_Display_Mode8080,
  BSP_Display_ModeGeneric
}
 
enum  BSP_BusControl_TypeDef {
  BSP_BusControl_Undefined =0,
  BSP_BusControl_OFF,
  BSP_BusControl_DIRECT,
  BSP_BusControl_SPI,
  BSP_BusControl_EBI
}
 

Functions

int BSP_Disable (void)
 
int BSP_Init (uint32_t flags)
 
int BSP_LedClear (int ledNo)
 
int BSP_LedGet (int ledNo)
 
int BSP_LedSet (int ledNo)
 
uint32_t BSP_LedsGet (void)
 
int BSP_LedsInit (void)
 
int BSP_LedsSet (uint32_t leds)
 
int BSP_LedToggle (int ledNo)
 
BSP_BusControl_TypeDef BSP_BusControlModeGet (void)
 
int BSP_BusControlModeSet (BSP_BusControl_TypeDef mode)
 
uint32_t BSP_DipSwitchGet (void)
 
int BSP_DisplayControl (BSP_Display_TypeDef option)
 
int BSP_EbiExtendedAddressRange (bool enable)
 
int BSP_EnergyModeSet (uint16_t energyMode)
 
int BSP_InterruptDisable (uint16_t flags)
 
int BSP_InterruptEnable (uint16_t flags)
 
int BSP_InterruptFlagsClear (uint16_t flags)
 
int BSP_InterruptFlagsSet (uint16_t flags)
 
uint16_t BSP_InterruptFlagsGet (void)
 
uint16_t BSP_JoystickGet (void)
 
int BSP_McuBoard_DeInit (void)
 Disable MCU plugin board peripherals. More...
 
int BSP_McuBoard_Init (void)
 Enable MCU plugin board peripherals. More...
 
int BSP_McuBoard_UsbStatusLedEnable (bool enable)
 Set state of MCU plugin board USB status LED. More...
 
bool BSP_McuBoard_UsbVbusOcFlagGet (void)
 Get state MCU plugin board VBUS overcurrent flag. More...
 
int BSP_McuBoard_UsbVbusPowerEnable (bool enable)
 Enable MCU plugin board VBUS power switch. More...
 
int BSP_PeripheralAccess (BSP_Peripheral_TypeDef perf, bool enable)
 
uint16_t BSP_PushButtonsGet (void)
 
uint16_t BSP_RegisterRead (volatile uint16_t *addr)
 
int BSP_RegisterWrite (volatile uint16_t *addr, uint16_t data)
 
int BSP_BccDeInit (void)
 Deinitialize board controller communication support (BCC) functionality. Reverse actions performed by BSP_BccInit(). More...
 
int BSP_BccInit (void)
 Initialize board controller communication support (BCC) functionality. More...
 
bool BSP_BccPacketReceive (BCP_Packet *pkt)
 Get a packet from the board controller. More...
 
int BSP_BccPacketSend (BCP_Packet *pkt)
 Send a packet to the board controller. More...
 
void BSP_BccPinsEnable (bool enable)
 Enable GPIO pins for the USART/LEUART used for board communication. More...
 
float BSP_CurrentGet (void)
 Request AEM (Advanced Energy Monitoring) current from board controller. More...
 
int BSP_EbiDeInit (void)
 Deinitialize the EBI interface for accessing the onboard nandflash. More...
 
int BSP_EbiInit (void)
 Initialize the EBI interface for accessing the onboard nandflash. More...
 
float BSP_VoltageGet (void)
 Request AEM (Advanced Energy Monitoring) voltage from board controller. More...
 

Detailed Description

Version
4.2.1

License

(C) Copyright 2014 Silicon Labs, http://www.silabs.com

This file is licensed under the Silabs License Agreement. See the file "Silabs_License_Agreement.txt" for details. Before using this software for any purpose, you must agree to the terms of that agreement.

Definition in file bsp.h.