Driverlib UNICOMM API
Module: Driverlib (AM13E230X) APIs
Structures
Name |
|
|---|---|
struct |
DL_UNICOMM_Inst_Regs |
Types
Name |
|
|---|---|
enum |
DL_UNICOMM_IP_MODE_SEL { DL_UNICOMM_UART = UNICOMM_IPMODE_SELECT_UART, DL_UNICOMM_SPI = UNICOMM_IPMODE_SELECT_SPI, DL_UNICOMM_I2C_CONTROLLER = UNICOMM_IPMODE_SELECT_I2C_CONTROLLER, DL_UNICOMM_I2C_TARGET = UNICOMM_IPMODE_SELECT_I2C_PERIPHERAL} |
Functions
Name |
|
|---|---|
__STATIC_INLINE void |
DL_UNICOMM_enablePower(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE void |
DL_UNICOMM_disablePower(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE bool |
DL_UNICOMM_isPowerEnabled(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE void |
DL_UNICOMM_reset(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE bool |
DL_UNICOMM_isReset(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE void |
DL_UNICOMM_setIPMode(DL_UNICOMM_Inst_Regs * unicomm, DL_UNICOMM_IP_MODE_SEL ipMode) |
__STATIC_INLINE DL_UNICOMM_IP_MODE_SEL |
DL_UNICOMM_getIPMode(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE bool |
DL_UNICOMM_isAdvanceFeaturesEnabled(DL_UNICOMM_Inst_Regs * unicomm) |
Attributes
Name |
|
|---|---|
const DL_UNICOMM_Inst_Regs |
UC0_Inst |
const DL_UNICOMM_Inst_Regs |
UC1_Inst |
const DL_UNICOMM_Inst_Regs |
UC2_Inst |
const DL_UNICOMM_Inst_Regs |
UC3_Inst |
const DL_UNICOMM_Inst_Regs |
UC4_Inst |
const DL_UNICOMM_Inst_Regs |
UC5_Inst |
Defines
Name |
|
|---|---|
DL_UNICOMM_COMMON_DELAY_CYCLES |
Types Documentation
enum DL_UNICOMM_IP_MODE_SEL
Enumerator |
Value |
Description |
|---|---|---|
DL_UNICOMM_UART |
UNICOMM_IPMODE_SELECT_UART |
Select UART functionality |
DL_UNICOMM_SPI |
UNICOMM_IPMODE_SELECT_SPI |
Select SPI functionality |
DL_UNICOMM_I2C_CONTROLLER |
UNICOMM_IPMODE_SELECT_I2C_CONTROLLER |
Select I2C functionality in controller mode |
DL_UNICOMM_I2C_TARGET |
UNICOMM_IPMODE_SELECT_I2C_PERIPHERAL |
Select I2C functionality in target mode |
Functions Documentation
function DL_UNICOMM_enablePower
__STATIC_INLINE void DL_UNICOMM_enablePower(
DL_UNICOMM_Inst_Regs * unicomm
)
Enables power on unicomm module.
Parameters:
unicomm Pointer to the register overlay for the peripheral
function DL_UNICOMM_disablePower
__STATIC_INLINE void DL_UNICOMM_disablePower(
DL_UNICOMM_Inst_Regs * unicomm
)
Disables power on unicomm module.
Parameters:
unicomm Pointer to the register overlay for the peripheral
function DL_UNICOMM_isPowerEnabled
__STATIC_INLINE bool DL_UNICOMM_isPowerEnabled(
DL_UNICOMM_Inst_Regs * unicomm
)
Returns if power on unicomm module.
Parameters:
unicomm Pointer to the register overlay for the peripheral
Return:
true if power is enabled
false if power is disabled
function DL_UNICOMM_reset
__STATIC_INLINE void DL_UNICOMM_reset(
DL_UNICOMM_Inst_Regs * unicomm
)
Resets unicomm peripheral.
Parameters:
unicomm Pointer to the register overlay for the UNICOMM peripheral
function DL_UNICOMM_isReset
__STATIC_INLINE bool DL_UNICOMM_isReset(
DL_UNICOMM_Inst_Regs * unicomm
)
Returns if unicomm peripheral was reset.
Parameters:
unicomm Pointer to the register overlay for the UNICOMM peripheral
Return:
true if peripheral was reset
false if peripheral wasn’t reset
function DL_UNICOMM_setIPMode
__STATIC_INLINE void DL_UNICOMM_setIPMode(
DL_UNICOMM_Inst_Regs * unicomm,
DL_UNICOMM_IP_MODE_SEL ipMode
)
Configure the unicomm peripheral for specified ip mode.
Parameters:
unicomm Pointer to the register overlay for the UNICOMM peripheral
ipMode Specifies IP mode functionality. One of DL_UNICOMM_IP_MODE_SEL
function DL_UNICOMM_getIPMode
__STATIC_INLINE DL_UNICOMM_IP_MODE_SEL DL_UNICOMM_getIPMode(
DL_UNICOMM_Inst_Regs * unicomm
)
Returns ip mode the unicomm peripheral is configured to.
Parameters:
unicomm Pointer to the register overlay for the UNICOMM peripheral
Returns:
One of DL_UNICOMM_IP_MODE_SEL
Return: Configured IP mode selection
function DL_UNICOMM_isAdvanceFeaturesEnabled
__STATIC_INLINE bool DL_UNICOMM_isAdvanceFeaturesEnabled(
DL_UNICOMM_Inst_Regs * unicomm
)
Returns whether the IP is advanced IP or not.
Parameters:
unicomm Pointer to the register overlay for the UNICOMM peripheral
Returns:
bool
Return: IP advanced capable or not
Attributes Documentation
variable UC0_Inst
const DL_UNICOMM_Inst_Regs UC0_Inst;
Configuration struct for Unicomm0 Registers.
variable UC1_Inst
const DL_UNICOMM_Inst_Regs UC1_Inst;
Configuration struct for Unicomm1 Registers.
variable UC2_Inst
const DL_UNICOMM_Inst_Regs UC2_Inst;
Configuration struct for Unicomm2 Registers.
variable UC3_Inst
const DL_UNICOMM_Inst_Regs UC3_Inst;
Configuration struct for Unicomm3 Registers.
variable UC4_Inst
const DL_UNICOMM_Inst_Regs UC4_Inst;
Configuration struct for Unicomm4 Registers.
variable UC5_Inst
const DL_UNICOMM_Inst_Regs UC5_Inst;
Configuration struct for Unicomm5 Registers.
variable UC0_INST_PTR
static DL_UNICOMM_Inst_Regs * UC0_INST_PTR = (DL_UNICOMM_Inst_Regs *)&UC0_Inst;
variable UC1_INST_PTR
static DL_UNICOMM_Inst_Regs * UC1_INST_PTR = (DL_UNICOMM_Inst_Regs *)&UC1_Inst;
variable UC2_INST_PTR
static DL_UNICOMM_Inst_Regs * UC2_INST_PTR = (DL_UNICOMM_Inst_Regs *)&UC2_Inst;
variable UC3_INST_PTR
static DL_UNICOMM_Inst_Regs * UC3_INST_PTR = (DL_UNICOMM_Inst_Regs *)&UC3_Inst;
variable UC4_INST_PTR
static DL_UNICOMM_Inst_Regs * UC4_INST_PTR = (DL_UNICOMM_Inst_Regs *)&UC4_Inst;
variable UC5_INST_PTR
static DL_UNICOMM_Inst_Regs * UC5_INST_PTR = (DL_UNICOMM_Inst_Regs *)&UC5_Inst;
Macros Documentation
define DL_UNICOMM_COMMON_DELAY_CYCLES
#define DL_UNICOMM_COMMON_DELAY_CYCLES (20U)
DL_UNICOMM_COMMON_DELAY_CYCLES.