Skip to content

Commit 66b60e0

Browse files
committed
pushed more to the main base class api wise so that a implementation only needs to implement a single read and single write method at the minimum; normalized the API - overloaded methods and data sized methods that follow stndint data typeing (UInt8, UInt16, UInt32); cleared out the methods no needed in the ArdI2C and ArdSPI drivers - kept the SPI drivers that use transfer16() method -- whre applicable
1 parent 922cd8b commit 66b60e0

File tree

6 files changed

+281
-438
lines changed

6 files changed

+281
-438
lines changed

src/sfTk/sfTkError.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/**
22
* @file sfTkError.h
33
* @brief Header file for the SparkFun Toolkit - Base Error Code defines.
44
*
@@ -11,7 +11,6 @@
1111
* SPDX-License-Identifier: MIT
1212
*/
1313

14-
1514
#pragma once
1615

1716
#include <stdint.h>
@@ -46,6 +45,11 @@ const sfTkError_t ksfTkErrFail = -1; // general fail
4645
*/
4746
const sfTkError_t ksfTkErrOk = 0; // success
4847

48+
/**
49+
* @brief Invalid parameter error
50+
*/
51+
const sfTkError_t ksfTkErrInvalidParam = -2; // invalid parameter error
52+
4953
/**
5054
* @brief A base value for bus errors. All bus errors are greater than this value, in the 1000 range
5155
*/

0 commit comments

Comments
 (0)