HPM SDK
HPMicro Software Development Kit
hpm_owr_drv.h File Reference
#include "hpm_common.h"
#include "hpm_owr_regs.h"

Go to the source code of this file.

Data Structures

struct  owr_config_t
 OWR config struct. More...
 

Macros

#define OWR_RPP_TIMEOUT   (50000U)
 
#define OWR_WR_TIMEOUT   (50000U)
 

Enumerations

enum  owr_irq_event_t {
  owr_irq_receive_shift_register_full = OWR_IRQ_STS_RSRF_MASK , owr_irq_receive_buff_full = OWR_IRQ_STS_RBF_MASK , owr_irq_transmit_shift_register_empty = OWR_IRQ_STS_TEMT_MASK , owr_irq_transmit_buffer_empty = OWR_IRQ_STS_TBE_MASK ,
  owr_irq_presence_detected = OWR_IRQ_STS_PST_DET_MASK
}
 OWR IRQ Event Type. More...
 

Functions

hpm_stat_t owr_sw_reset (OWR_Type *ptr)
 Software Reset OWR. More...
 
hpm_stat_t owr_init (OWR_Type *ptr, owr_config_t *config)
 Init OWR. More...
 
hpm_stat_t owr_reset_and_presence_pulses (OWR_Type *ptr)
 Reset and presence pulses. More...
 
hpm_stat_t owr_get_presence_status (OWR_Type *ptr, uint32_t *status)
 Get presence status. More...
 
hpm_stat_t owr_release_bus (OWR_Type *ptr)
 Release bus. More...
 
hpm_stat_t owr_write_data (OWR_Type *ptr, uint8_t data)
 Write one byte data to OWR bus. More...
 
hpm_stat_t owr_read_data (OWR_Type *ptr, uint8_t *data)
 Read one byte data from OWR bus. More...
 
hpm_stat_t owr_clear_irq_status (OWR_Type *ptr, uint32_t mask)
 Clear irq status. More...
 
hpm_stat_t owr_enable_interrupts (OWR_Type *ptr, uint32_t mask)
 Enable interrupts. More...
 
hpm_stat_t owr_disable_interrupts (OWR_Type *ptr, uint32_t mask)
 Disable interrupts. More...
 
hpm_stat_t owr_get_irq_status (OWR_Type *ptr, uint32_t *status)
 Get irq status. More...