We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5da0f52 commit 7ff9233Copy full SHA for 7ff9233
coco/src/fn_fuji/fuji_set_directory_position.c
@@ -6,6 +6,22 @@
6
7
bool fuji_set_directory_position(uint16_t pos)
8
{
9
- /* TODO, implement */
10
- return false;
11
-}
+ struct _sdp
+ {
+ uint8_t opcode;
12
+ uint8_t cmd;
13
+ uint16_t pos;
14
+ } sdp;
15
+
16
+ sdp.opcode = OP_FUJI;
17
+ sdp.cmd = FUJICMD_SET_DIRECTORY_POSITION;
18
+ sdp.pos = pos;
19
20
+ bus_ready();
21
22
+ dwwrite((uint8_t *)&sdp, sizeof(sdp));
23
+ if (fuji_get_error())
24
+ return false;
25
26
+ return true;
27
+}
fujinet-fuji.h
@@ -7,6 +7,7 @@
#ifdef _CMOC_VERSION_
#include <cmoc.h>
+ #include <coco.h>
#ifndef bool
#define bool _FNBool
0 commit comments