Created
February 16, 2011 07:27
-
-
Save bzztbomb/828992 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef _ML_CONFIG_H_ | |
#define _ML_CONFIG_H_ | |
#include "witypes.h" | |
#include "g2100.h" | |
#define CURR_CONFIG_VERSION 2 | |
typedef struct MissingLinkConfig | |
{ | |
// 0xFF = unprogrammed/invalid, 0x00 = valid data | |
unsigned char version; // Offset: 0 | |
// | |
// Wireless config | |
// | |
// 1 = infrastructure, 2 = adhoc | |
unsigned char wireless_mode; // Offset 1 | |
char ssid[ZG_MAX_SSID_LENGTH]; // Offset: 2 | |
// Wireless security config: open; 1 - WEP; 2 - WPA; 3 - WPA2 | |
unsigned char security_type; // Offset: 34 | |
// WEP keys (4, 13) | |
unsigned char wep_keys[ZG_MAX_ENCRYPTION_KEYS][ZG_MAX_ENCRYPTION_KEY_SIZE]; // Offset: 35 | |
// WPA/WPA2 passpharse | |
const prog_char security_passphrase[ZG_MAX_WPA_PASSPHRASE_LEN]; // Offset: 87 | |
// | |
// TCP/IP | |
// | |
unsigned char local_ip[4]; // Offset: 151 | |
unsigned char gateway_ip[4]; // Offset: 155 | |
unsigned char subnet_mask[4]; // Offset: 159 | |
// | |
// MIDI signal routing | |
// bit 0 = toMIDI | |
// bit 1 = toUSBMidi | |
// bit 2 = toOSC | |
// | |
unsigned char fromMIDI; // Offst: 163 | |
unsigned char fromUSBMIDI; // Offset: 164 | |
unsigned char fromOSC; // Offst: 165 | |
// Where to send OSC messages | |
unsigned char oscTargetIp[4]; // 166 | |
unsigned char oscTargetPort; // 167 | |
} MissingLinkConfig; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment