implement waitToken

This commit is contained in:
soypat
2024-01-14 17:38:20 -03:00
parent 222f368681
commit 66da4422dc
2 changed files with 48 additions and 46 deletions
+8
View File
@@ -468,6 +468,14 @@ const (
_R1_PARAMETER_ERROR = 1 << 6
)
// Tokens that are sent by card during polling.
// https://github.com/arduino-libraries/SD/blob/master/src/utility/SdInfo.h
const (
tokSTART_BLOCK = 0xfe
tokSTOP_TRAN = 0xfd
tokWRITE_MULT = 0xfc
)
type response1 uint8
func (r response1) IsIdle() bool { return r&_R1_IDLE_STATE != 0 }