Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Max32630_One_Wire_Interface
Diff: OneWire_Masters/GPIO/owgpio.h
- Revision:
- 17:b646b1e3970b
- Parent:
- 15:f6cb0d906fb6
- Child:
- 23:e8e403d61359
--- a/OneWire_Masters/GPIO/owgpio.h Wed Mar 16 19:10:19 2016 +0000
+++ b/OneWire_Masters/GPIO/owgpio.h Fri Mar 18 20:21:05 2016 +0000
@@ -1,16 +1,4 @@
/******************************************************************//**
-* @file owgpio.h
-*
-* @author Justin Jordan
-*
-* @version 0.0.0
-*
-* Started: 31JAN16
-*
-* Updated:
-*
-* @brief Header file for bit-banging a 1-wire master
-***********************************************************************
* Copyright (C) 2016 Maxim Integrated Products, Inc., All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
@@ -126,25 +114,29 @@
//Part of OneWireInterface that should be implemented for each master
//See OneWireInterface.h for documentation
- virtual bool OWInitMaster();
+ virtual OneWireInterface::CmdResult OWInitMaster(void);
- virtual bool OWReset();
+ virtual OneWireInterface::CmdResult OWReset(void);
- virtual uint8_t OWTouchBit(uint8_t sendbit);
+ virtual OneWireInterface::CmdResult OWTouchBit(uint8_t & sendrecvbit);
+
+ virtual OneWireInterface::CmdResult OWWriteByte(uint8_t sendbyte);
- virtual bool OWWriteByte(uint8_t sendbyte);
-
- virtual uint8_t OWReadByte(void);
+ virtual OneWireInterface::CmdResult OWReadByte(uint8_t & recvbyte);
+
+ virtual OneWireInterface::CmdResult OWWriteBlock(const uint8_t *tran_buf, uint8_t tran_len);
- virtual bool OWSearch(void);
+ virtual OneWireInterface::CmdResult OWReadBlock(uint8_t *rx_buf, uint8_t rx_len);
+
+ virtual OneWireInterface::CmdResult OWSearch(RomId & romId);
- virtual uint8_t OWSpeed(OW_SPEED new_speed);
+ virtual OneWireInterface::CmdResult OWSpeed(OW_SPEED new_speed);
- virtual uint8_t OWLevel(OW_LEVEL new_level);
+ virtual OneWireInterface::CmdResult OWLevel(OW_LEVEL new_level);
- virtual bool OWWriteBytePower(uint8_t sendbyte);
+ virtual OneWireInterface::CmdResult OWWriteBytePower(uint8_t sendbyte);
- virtual bool OWReadBitPower(uint8_t applyPowerResponse);
+ virtual OneWireInterface::CmdResult OWReadBitPower(uint8_t applyPowerResponse);
private: