rename, add comment for autopoll

This commit is contained in:
din 2025-09-07 12:33:48 -05:00
parent 56d37a8407
commit c9548daf8c
3 changed files with 26 additions and 4 deletions

View File

@ -12,8 +12,30 @@
bool aciodrv_mdxf_init(struct aciodrv_device_ctx *device, uint8_t node_id)
{
log_assert(device);
return true;
/*
struct ac_io_message msg = {0};
log_info("starting autopoll mdxf node %d", node_id);
msg.addr = node_id + 1;
msg.cmd.code = ac_io_u16(AC_IO_CMD_MDXF_AUTO_GET_START);
msg.cmd.nbytes = 2;
msg.cmd.raw[0] = 0x80;
msg.cmd.raw[1] = 0x02;
if (aciodrv_send_and_recv(
device,
&msg,
offsetof(struct ac_io_message, cmd.raw) + msg.cmd.nbytes + 1)) {
return true;
}
return false;
*/
}
bool aciodrv_mdxf_poll(

View File

@ -70,7 +70,7 @@ bool prev_top = false;
bool prev_bottom = false;
p4io_lights_t light_buff = {0};
p4io_coin_lights_t coin_buff = {0};
p4io_coinstock_t coin_buff = {0};
uint32_t jamma[4] = {0};
void ddr_io_set_loggers(

View File

@ -42,9 +42,9 @@ typedef union {
bool coin3_7 : 1;
} ddr;
uint8_t raw[4];
} p4io_coin_lights_t;
} p4io_coinstock_t;
_Static_assert(
sizeof(p4io_coin_lights_t) == 4, "p4io_coin_lights_t is the wrong size");
sizeof(p4io_coinstock_t) == 4, "p4io_coinstock_t is the wrong size");
typedef union {
struct {