VSF Documented
Typedefs | Enumerations | Functions
__common.h File Reference
#include "hal/vsf_hal_cfg.h"
#include "./vendor/Include/M480.h"
#include "hal/arch/vsf_arch.h"
#include "arm_math.h"

Go to the source code of this file.

Typedefs

typedef enum m480_usbphy_t m480_usbphy_t
 
typedef enum m480_usbphy_role_t m480_usbphy_role_t
 

Enumerations

enum  m480_usbphy_t {
  M480_USBPHY_FS = 0 ,
  M480_USBPHY_HS = 16
}
 
enum  m480_usbphy_role_t {
  M480_USBPHY_DEV = 0 ,
  M480_USBPHY_HOST = 1 ,
  M480_USBPHY_OTG = 2
}
 

Functions

bool m480_reg_unlock (void)
 
void m480_reg_lock (bool islocked)
 
uint_fast32_t m480_bit_field_get (uint_fast16_t bf, uint32_t *ptr)
 
void m480_bit_field_set (uint_fast16_t bf, uint32_t *ptr, uint_fast32_t value)
 
void m480_bit_field_set_atom (uint_fast16_t bf, uint32_t *ptr, uint_fast32_t value)
 
void m480_bit_field_set_wprotect (uint_fast16_t bf, uint32_t *ptr, uint_fast32_t value)
 
void m480_enable_usbphy (m480_usbphy_t phy, m480_usbphy_role_t role)
 
void m480_disable_usbphy (m480_usbphy_t phy)
 

Typedef Documentation

◆ m480_usbphy_t

◆ m480_usbphy_role_t

Enumeration Type Documentation

◆ m480_usbphy_t

Enumerator
M480_USBPHY_FS 
M480_USBPHY_HS 

◆ m480_usbphy_role_t

Enumerator
M480_USBPHY_DEV 
M480_USBPHY_HOST 
M480_USBPHY_OTG 

Function Documentation

◆ m480_reg_unlock()

bool m480_reg_unlock ( void  )
extern

◆ m480_reg_lock()

void m480_reg_lock ( bool  islocked)
extern

◆ m480_bit_field_get()

uint_fast32_t m480_bit_field_get ( uint_fast16_t  bf,
uint32_t ptr 
)
extern

◆ m480_bit_field_set()

void m480_bit_field_set ( uint_fast16_t  bf,
uint32_t ptr,
uint_fast32_t  value 
)
extern

◆ m480_bit_field_set_atom()

void m480_bit_field_set_atom ( uint_fast16_t  bf,
uint32_t ptr,
uint_fast32_t  value 
)
extern

◆ m480_bit_field_set_wprotect()

void m480_bit_field_set_wprotect ( uint_fast16_t  bf,
uint32_t ptr,
uint_fast32_t  value 
)
extern

◆ m480_enable_usbphy()

void m480_enable_usbphy ( m480_usbphy_t  phy,
m480_usbphy_role_t  role 
)
extern

◆ m480_disable_usbphy()

void m480_disable_usbphy ( m480_usbphy_t  phy)
extern