From 7e3109e4c892e76f5a92e59335cc223169aa1eed Mon Sep 17 00:00:00 2001 From: Daniel Beer Date: Wed, 19 May 2010 11:21:41 +1200 Subject: [PATCH] Added CC430F6137, MSP430F2274 to fet_db. --- fet_db.c | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/fet_db.c b/fet_db.c index 3954975..42e71ec 100644 --- a/fet_db.c +++ b/fet_db.c @@ -283,7 +283,74 @@ static const struct fet_db_record fet_db[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } + }, + { + .name = "CC430F6137", + .msg28_data = { + 0x61, 0x37, 0x10, 0x10, 0x08, 0x0a, 0xff, 0xff, + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, + 0x77, 0x7d + }, + .msg29_params = {0x77, 0x6f, 0x4a}, + .msg29_data = { + 0x00, 0x80, 0xff, 0xff, 0x00, 0x00, 0x00, 0x18, + 0xff, 0x19, 0x80, 0x00, 0x00, 0x1c, 0xff, 0x2b, + 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x02, 0x00, + 0x02, 0x00, 0x07, 0x24, 0x00, 0x00, 0x00, 0x00, + 0x08, 0x07, 0x10, 0x0e, 0xc4, 0x09, 0x70, 0x17, + 0x58, 0x1b, 0x01, 0x00, 0x03, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, + 0xff, 0xff + }, + .msg2b_data = { + 0x00, 0x10, 0xff, 0x17, 0x00, 0x02, 0x01, 0x00, + 0x04, 0x00, 0x40, 0x00, 0x0a, 0x91, 0x8e, 0x00, + 0x00, 0xb0, 0x28, 0x29, 0x2a, 0x2b, 0x80, 0xd8, + 0xa8, 0x60, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00 + } + }, + { + .name = "MSP430F2274", + .msg28_data = { + 0xf2, 0x27, 0x40, 0x40, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x02, 0x01, 0x01, 0x04, 0xb1, 0x62, + 0x80, 0x00 + }, + .msg29_params = {0x00, 0x39, 0x31}, + .msg29_data = { + 0x00, 0x80, 0xff, 0xff, 0x00, 0x00, 0x00, 0x10, + 0xff, 0x10, 0x40, 0x00, 0x00, 0x02, 0xff, 0x05, + 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x01, 0x00, + 0x01, 0x00, 0xd7, 0x60, 0x00, 0x00, 0x00, 0x00, + 0x08, 0x07, 0x10, 0x0e, 0xc4, 0x09, 0x70, 0x17, + 0x58, 0x1b, 0x01, 0x00, 0x03, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x33, 0x0f, 0x1f, 0x0f, + 0xff, 0xff + }, + .msg2b_data = { /* Copied from MSP430F2616 */ + 0x00, 0x0c, 0xff, 0x0f, 0x00, 0x02, 0x02, 0x00, + 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00 + } } + }; const struct fet_db_record *fet_db_find_by_msg28(uint8_t *data, int len)