#include <stdio.h>
#include "mscbemb.h"
#include "Devices/Time.h"
#include "Protocols/SmaRTC.h"
Go to the source code of this file.
Defines | |
#define | ALL_RESET 0xF |
Functions | |
unsigned char | user_func (unsigned char *data_in, unsigned char *data_out) |
unsigned char | user_read (unsigned char index) |
void | user_write (unsigned char index) reentrant |
void | PulseReset (unsigned char ch) |
void | user_init (unsigned char init) |
void | user_loop (void) |
Variables | |
unsigned char idata | _n_sub_addr = 1 |
char code | node_name [] = "P0DPS" |
char idata | svn_rev_code [] = "$Rev: 959 $" |
struct { | |
unsigned char error | |
unsigned char control | |
unsigned char status | |
unsigned char active | |
unsigned char v5mon | |
unsigned char v15mon | |
unsigned long mytime | |
char date [24] | |
} | user_data |
MSCB_INFO_VAR code | vars [] |
MSCB_INFO_VAR * | variables = vars |
sbit | RESET_1 = P1 ^ 0 |
sbit | RESET_2 = P1 ^ 1 |
sbit | RESET_3 = P1 ^ 2 |
sbit | RESET_4 = P1 ^ 3 |
sbit | V5MON_1 = P1 ^ 4 |
sbit | V5MON_2 = P1 ^ 5 |
sbit | V5MON_3 = P1 ^ 6 |
sbit | V5MON_4 = P1 ^ 7 |
sbit | V15MON_1 = P2 ^ 0 |
sbit | V15MON_2 = P2 ^ 1 |
sbit | V15MON_3 = P2 ^ 2 |
sbit | V15MON_4 = P2 ^ 3 |
sbit | ACTIVE_1 = P2 ^ 4 |
sbit | ACTIVE_2 = P2 ^ 5 |
sbit | ACTIVE_3 = P2 ^ 6 |
sbit | ACTIVE_4 = P2 ^ 7 |
sbit | DATA_OEn = P0 ^ 3 |
sbit | CNTRL_OEn = P0 ^ 0 |
SYS_INFO | sys_info |
#define ALL_RESET 0xF |
Definition at line 27 of file generic-p0d.c.
void PulseReset | ( | unsigned char | ch | ) |
Definition at line 91 of file generic-p0d.c.
unsigned char user_func | ( | unsigned char * | data_in, | |
unsigned char * | data_out | |||
) |
Definition at line 192 of file generic-p0d.c.
void user_init | ( | unsigned char | init | ) |
Definition at line 108 of file generic-p0d.c.
void user_loop | ( | void | ) |
Definition at line 201 of file generic-p0d.c.
unsigned char user_read | ( | unsigned char | index | ) |
Definition at line 185 of file generic-p0d.c.
void user_write | ( | unsigned char | index | ) |
Definition at line 167 of file generic-p0d.c.
unsigned char idata _n_sub_addr = 1 |
Definition at line 21 of file generic-p0d.c.
unsigned char active |
Definition at line 34 of file generic-p0d.c.
sbit ACTIVE_1 = P2 ^ 4 |
Definition at line 71 of file generic-p0d.c.
sbit ACTIVE_2 = P2 ^ 5 |
Definition at line 72 of file generic-p0d.c.
sbit ACTIVE_3 = P2 ^ 6 |
Definition at line 73 of file generic-p0d.c.
sbit ACTIVE_4 = P2 ^ 7 |
Definition at line 74 of file generic-p0d.c.
sbit CNTRL_OEn = P0 ^ 0 |
Definition at line 77 of file generic-p0d.c.
unsigned char control |
Definition at line 32 of file generic-p0d.c.
sbit DATA_OEn = P0 ^ 3 |
Definition at line 76 of file generic-p0d.c.
char date[24] |
Definition at line 38 of file generic-p0d.c.
unsigned char error |
Definition at line 31 of file generic-p0d.c.
unsigned long mytime |
Definition at line 37 of file generic-p0d.c.
char code node_name[] = "P0DPS" |
Definition at line 24 of file generic-p0d.c.
sbit RESET_1 = P1 ^ 0 |
Definition at line 56 of file generic-p0d.c.
sbit RESET_2 = P1 ^ 1 |
Definition at line 57 of file generic-p0d.c.
sbit RESET_3 = P1 ^ 2 |
Definition at line 58 of file generic-p0d.c.
sbit RESET_4 = P1 ^ 3 |
Definition at line 59 of file generic-p0d.c.
unsigned char status |
Definition at line 33 of file generic-p0d.c.
char idata svn_rev_code[] = "$Rev: 959 $" |
Definition at line 25 of file generic-p0d.c.
SYS_INFO sys_info |
struct { ... } user_data |
unsigned char v15mon |
Definition at line 36 of file generic-p0d.c.
sbit V15MON_1 = P2 ^ 0 |
Definition at line 66 of file generic-p0d.c.
sbit V15MON_2 = P2 ^ 1 |
Definition at line 67 of file generic-p0d.c.
sbit V15MON_3 = P2 ^ 2 |
Definition at line 68 of file generic-p0d.c.
sbit V15MON_4 = P2 ^ 3 |
Definition at line 69 of file generic-p0d.c.
unsigned char v5mon |
Definition at line 35 of file generic-p0d.c.
sbit V5MON_1 = P1 ^ 4 |
Definition at line 61 of file generic-p0d.c.
sbit V5MON_2 = P1 ^ 5 |
Definition at line 62 of file generic-p0d.c.
sbit V5MON_3 = P1 ^ 6 |
Definition at line 63 of file generic-p0d.c.
sbit V5MON_4 = P1 ^ 7 |
Definition at line 64 of file generic-p0d.c.
Definition at line 54 of file generic-p0d.c.
MSCB_INFO_VAR code vars[] |
{ 1, UNIT_BYTE, 0, 0, 0, "Error", &user_data.error, 1, UNIT_BYTE, 0, 0, 0, "Control", &user_data.control, 1, UNIT_BYTE, 0, 0, 0, "Status", &user_data.status, 1, UNIT_BYTE, 0, 0, 0, "Active", &user_data.active, 1, UNIT_BYTE, 0, 0, 0, "V5_Mon", &user_data.v5mon, 1, UNIT_BYTE, 0, 0, 0, "V15_Mon", &user_data.v15mon, 4, UNIT_BYTE, 0, 0, MSCBF_HIDDEN, "BinDate", &user_data.mytime, 24, UNIT_STRING, 0, 0, MSCBF_HIDDEN, "Date", &user_data.date[0], 0 }
Definition at line 41 of file generic-p0d.c.