47 #include "mxc_config.h" 83 #define READ_ROM_COMMAND 0x33 84 #define MATCH_ROM_COMMAND 0x55 85 #define SEARCH_ROM_COMMAND 0xF0 86 #define SKIP_ROM_COMMAND 0xCC 87 #define OD_SKIP_ROM_COMMAND 0x3C 88 #define OD_MATCH_ROM_COMMAND 0x69 89 #define RESUME_COMMAND 0xA5 179 int OWM_Read(uint8_t* data,
int len);
unsigned OWM_GetFlags(void)
Get interrupt flags.
Pullup pin is not used for an external pullup.
Definition: owm.h:69
Pullup pin is active low when enabled.
Definition: owm.h:68
int OWM_WriteByte(uint8_t data)
Write one byte of data.
int OWM_SearchROM(int newSearch, uint8_t *ROMCode)
Starts 1-Wire communication with Search ROM command.
void OWM_SetExtPullup(int enable)
Enables/Disables the External pullup.
Structure type for 1-Wire Master configuration.
Definition: owm.h:75
int OWM_MatchROM(uint8_t *ROMCode)
Starts 1-Wire communication with Match ROM command.
void OWM_ClearFlags(uint32_t mask)
Clear interrupt flags.
int OWM_Write(uint8_t *data, int len)
Write multiple bytes of data.
int OWM_Resume(void)
Starts 1-Wire communication with Resume command.
int OWM_SkipROM(void)
Starts 1-Wire communication with Skip ROM command.
uint8_t long_line_mode
1 = long line mode enable.
Definition: owm.h:78
int OWM_ReadROM(uint8_t *ROMCode)
Starts 1-Wire communication with Read ROM command.
int OWM_ODMatchROM(uint8_t *ROMCode)
Starts 1-Wire communication with Overdrive Match ROM command.
int OWM_TouchBit(uint8_t bit)
Send and receive one bit of data.
int OWM_Read(uint8_t *data, int len)
Read multiple bytes of data.
void OWM_Shutdown(void)
Shutdown OWM module.
Pullup pin is active high when enabled.
Definition: owm.h:67
owm_ext_pu_t
Enumeration type for specifying options for 1-Wire external pullup mode.
Definition: owm.h:66
void OWM_SetOverdrive(int enable)
Enables/Disables Overdrive speed.
uint8_t int_pu_en
1 = internal pullup on.
Definition: owm.h:76
int OWM_Init(const owm_cfg_t *cfg, const sys_cfg_owm_t *sys_cfg)
Initialize and enable OWM module.
owm_ext_pu_t ext_pu_mode
See owm_ext_pu_t.
Definition: owm.h:77
int OWM_TouchByte(uint8_t data)
Send and receive one byte of data.
int OWM_Reset(void)
Send 1-Wire reset pulse.
int OWM_ReadByte(void)
Read one byte of data.
int OWM_ReadBit(void)
Read one bit of data.
int OWM_ODSkipROM(void)
Starts 1-Wire communication with Overdrive Skip ROM command.
int OWM_WriteBit(uint8_t bit)
Write one bit of data.