HPM SDK
HPMicro Software Development Kit
hpm_mbx_drv.h File Reference
#include "hpm_common.h"
#include "hpm_mbx_regs.h"

Go to the source code of this file.

Macros

#define MBX_CR_ALL_INTERRUPTS_MASK
 

Enumerations

enum  mbx_bus_access_resp_t { no_bus_error_no_wait = 0 , generate_bus_error = 1 }
 
enum  { status_mbx_not_available = ((uint32_t)( status_group_mbx )*1000U + (uint32_t)( 2 )) }
 

Functions

static void mbx_set_bus_access_response (MBX_Type *ptr, mbx_bus_access_resp_t resp)
 Set bus access response. More...
 
static void mbx_enable_intr (MBX_Type *ptr, uint32_t mask)
 Enable interrupt with mask. More...
 
static void mbx_disable_intr (MBX_Type *ptr, uint32_t mask)
 Disable interrupt with mask. More...
 
static void mbx_empty_txfifo (MBX_Type *ptr)
 Empty fifo. More...
 
static void mbx_init (MBX_Type *ptr)
 Initialization. More...
 
static hpm_stat_t mbx_send_message (MBX_Type *ptr, uint32_t msg)
 Send message. More...
 
static hpm_stat_t mbx_retrieve_message (MBX_Type *ptr, uint32_t *msg)
 Retrieve message. More...
 
static hpm_stat_t mbx_send_fifo (MBX_Type *ptr, uint32_t *msg, uint32_t count)
 Send message to fifo. More...
 
static hpm_stat_t mbx_retrieve_fifo (MBX_Type *ptr, uint32_t *msg, uint32_t count)
 Retrieve data from fifo. More...