mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-01-24 17:01:35 +01:00
Add example
This commit is contained in:
16
examples/example_5/src/ProductionCode.h
Normal file
16
examples/example_5/src/ProductionCode.h
Normal file
@@ -0,0 +1,16 @@
|
||||
/* =========================================================================
|
||||
Unity - A Test Framework for C
|
||||
ThrowTheSwitch.org
|
||||
Copyright (c) 2007-25 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||
SPDX-License-Identifier: MIT
|
||||
========================================================================= */
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef void callback_t(int position, int bit_value);
|
||||
typedef enum {
|
||||
BIT_DIRECTION_UP,
|
||||
BIT_DIRECTION_DOWN,
|
||||
} bit_direction_t;
|
||||
|
||||
void BitExtractor(bit_direction_t dir, uint8_t input, callback_t cb);
|
||||
Reference in New Issue
Block a user