oda in lua?

This commit is contained in:
2025-12-27 11:41:26 +01:00
parent b39a0e78ed
commit 3a6c701157
10 changed files with 203 additions and 137 deletions
+1 -18
View File
@@ -1,7 +1,6 @@
#pragma once
#include "common.h"
#define LUA_USER_DATA 1280
#define ODAS 32
#define LUA_USER_DATA 1152
/* The RDS error-detection code generator polynomial is
* x^10 + x^8 + x^7 + x^5 + x^4 + x^3 + x^0
@@ -108,20 +107,6 @@ typedef struct {
uint8_t af_state : 6;
} RDSEONState;
typedef struct {
uint8_t group : 4;
uint8_t group_version : 1;
uint16_t id;
uint16_t id_data;
int lua_handler;
} RDSODA;
typedef struct {
uint8_t oda_len;
uint8_t oda_pointer;
uint8_t oda_runner_pointer;
RDSODA odas[ODAS];
} RDSODAState;
typedef struct {
uint8_t ps_update : 1;
uint8_t tps_update : 1;
@@ -179,8 +164,6 @@ typedef struct {
uint16_t last_stream0_group[3];
uint8_t last_stream0_group_type_b : 1;
RDSODAState user_oda;
} RDSState;
typedef struct {