| usart.c | ||
|---|---|---|
| 19 | #define BAUD_RATE 2400 //bps.
| |
| 75 | SPBRG = (20000000 / BAUD_RATE)/64 - 1; // Set Baud Rate
| |
| canfunctions.h | ||
|---|---|---|
| 14 | #ifndef CANFUNCTIONS_H
| |
| 15 | #define CANFUNCTIONS_H
| |
| canfunctions.h | ||
|---|---|---|
| 384 | * Macro: BOOL CANIsRxReady()
| |
| 399 | #define CANIsRxReady() (RXB0CON_RXFUL | RXB1CON_RXFUL)
| |
| canfunctions.h | ||
|---|---|---|
| 418 | #define CANIsTx0Ready() (!TXB0CON_TXREQ)
| |
| canfunctions.h | ||
|---|---|---|
| 419 | #define CANIsTx1Ready() (!TXB1CON_TXREQ)
| |
| canfunctions.h | ||
|---|---|---|
| 420 | #define CANIsTx2Ready() (!TXB2CON_TXREQ)
| |
| canfunctions.h | ||
|---|---|---|
| 402 | * Macro: BOOL CANIsTxReady()
| |
| 414 | #define CANIsTxReady() (!TXB0CON_TXREQ || \
| |
| canfunctions.h | ||
|---|---|---|
| 294 | CAN_CONFIG_ALL_MSG = 0b11111111, // X11XXXXX
| |
| canfunctions.h | ||
|---|---|---|
| 297 | CAN_CONFIG_ALL_VALID_MSG = 0b10011111 // X00XXXXX
| |
| canfunctions.c | ||
|---|---|---|
| 205 | if (config & CAN_CONFIG_DBL_BUFFER_BIT)
| |
| 26 | if (config & CAN_CONFIG_DBL_BUFFER_BIT)
| |
| canfunctions.h | ||
| 289 | CAN_CONFIG_DBL_BUFFER_BIT = 0b00010000,
| |
| canfunctions.h | ||
|---|---|---|
| 291 | CAN_CONFIG_DBL_BUFFER_OFF = 0b11101111, // XXX0XXXX
| |
| RB.c | ||
|---|---|---|
| 488 | CANInitialize(1,2,6,6,7,CAN_CONFIG_VALID_STD_MSG & CAN_CONFIG_DBL_BUFFER_ON); //works for 250kbps for 20Mhz
| |
| canfunctions.h | ||
| 290 | CAN_CONFIG_DBL_BUFFER_ON = 0b11111111, // XXX1XXXX
| |
| canfunctions.h | ||
|---|---|---|
| 271 | CAN_CONFIG_DEFAULT = 0b11111111, // 11111111
| |
| canfunctions.c | ||
|---|---|---|
| 114 | //if ( flags & CAN_CONFIG_LINE_FILTER_BIT )
| |
| canfunctions.h | ||
| 277 | CAN_CONFIG_LINE_FILTER_BIT = 0b00000010,
| |
| canfunctions.h | ||
|---|---|---|
| 279 | CAN_CONFIG_LINE_FILTER_OFF = 0b11111101, // XXXXXX0X
| |
| canfunctions.h | ||
|---|---|---|
| 278 | CAN_CONFIG_LINE_FILTER_ON = 0b11111111, // XXXXXX1X
| |
| canfunctions.c | ||
|---|---|---|
| 204 | *RXB0CON = config & CAN_CONFIG_MSG_BITS; //dgi changed
| |
| 224 | switch( (config & CAN_CONFIG_MSG_BITS) | ~CAN_CONFIG_MSG_BITS )
| |
| canfunctions.h | ||
| 293 | CAN_CONFIG_MSG_BITS = 0b01100000,
| |
| canfunctions.h | ||
|---|---|---|
| 285 | CAN_CONFIG_MSG_TYPE_BIT = 0b00001000,
| |
| canfunctions.c | ||
|---|---|---|
| 109 | if ( flags & CAN_CONFIG_PHSEG2_PRG_BIT )
| |
| canfunctions.h | ||
| 273 | CAN_CONFIG_PHSEG2_PRG_BIT = 0b00000001,
| |
| canfunctions.h | ||
|---|---|---|
| 275 | CAN_CONFIG_PHSEG2_PRG_OFF = 0b11111110, // XXXXXXX0
| |
| canfunctions.h | ||
|---|---|---|
| 274 | CAN_CONFIG_PHSEG2_PRG_ON = 0b11111111, // XXXXXXX1
| |
| canfunctions.c | ||
|---|---|---|
| 106 | if ( !(flags & CAN_CONFIG_SAMPLE_BIT) )
| |
| canfunctions.h | ||
| 281 | CAN_CONFIG_SAMPLE_BIT = 0b00000100,
| |
| canfunctions.h | ||
|---|---|---|
| 282 | CAN_CONFIG_SAMPLE_ONCE = 0b11111111, // XXXXX1XX
| |
| canfunctions.h | ||
|---|---|---|
| 283 | CAN_CONFIG_SAMPLE_THRICE = 0b11111011, // XXXXX0XX
| |
| RB.c | ||
|---|---|---|
| 488 | CANInitialize(1,2,6,6,7,CAN_CONFIG_VALID_STD_MSG & CAN_CONFIG_DBL_BUFFER_ON); //works for 250kbps for 20Mhz
| |
| canfunctions.c | ||
| 231 | case CAN_CONFIG_VALID_STD_MSG:
| |
| canfunctions.h | ||
| 296 | CAN_CONFIG_VALID_STD_MSG = 0b10111111, // X01XXXXX
| |
| canfunctions.c | ||
|---|---|---|
| 176 | * If (config & CAN_CONFIG_VALID_XTD_MSG)
| |
| 226 | case CAN_CONFIG_VALID_XTD_MSG:
| |
| canfunctions.h | ||
| 295 | CAN_CONFIG_VALID_XTD_MSG = 0b11011111, // X10XXXXX
| |
| RB.c | ||
|---|---|---|
| 510 | CANSetFilter(CAN_FILTER_B1_F1, RB_DICT_REQ + RB_NODEID, CAN_CONFIG_STD_MSG); // allow SDO messages for own node
| |
| canfunctions.c | ||
| 243 | CANSetFilter(CAN_FILTER_B1_F1, 0, FilterConfig1);
| |
| 587 | case CAN_FILTER_B1_F1:
| |
| canfunctions.h | ||
| 329 | CAN_FILTER_B1_F1,
| |
| RB.c | ||
|---|---|---|
| 511 | CANSetFilter(CAN_FILTER_B1_F2, RB_NMT, CAN_CONFIG_STD_MSG); // also allow NMT msg with NodeID 0 (master node).
| |
| canfunctions.c | ||
| 244 | CANSetFilter(CAN_FILTER_B1_F2, 0, FilterConfig1);
| |
| 591 | case CAN_FILTER_B1_F2:
| |
| canfunctions.h | ||
| 330 | CAN_FILTER_B1_F2,
| |
| RB.c | ||
|---|---|---|
| 528 | CANSetFilter(CAN_FILTER_B2_F1,RB_RXCONFIG_0, CAN_CONFIG_STD_MSG);
| |
| canfunctions.c | ||
| 245 | CANSetFilter(CAN_FILTER_B2_F1, 0, FilterConfig2);
| |
| 595 | case CAN_FILTER_B2_F1:
| |
| canfunctions.h | ||
| 331 | CAN_FILTER_B2_F1,
| |
| RB.c | ||
|---|---|---|
| 529 | CANSetFilter(CAN_FILTER_B2_F2,RB_RXCONFIG_1, CAN_CONFIG_STD_MSG);
| |
| canfunctions.c | ||
| 246 | CANSetFilter(CAN_FILTER_B2_F2, 0, FilterConfig2);
| |
| 599 | case CAN_FILTER_B2_F2:
| |
| canfunctions.h | ||
| 332 | CAN_FILTER_B2_F2,
| |
| RB.c | ||
|---|---|---|
| 530 | CANSetFilter(CAN_FILTER_B2_F3,RB_RXCONFIG_2, CAN_CONFIG_STD_MSG);
| |
| canfunctions.c | ||
| 247 | CANSetFilter(CAN_FILTER_B2_F3, 0, FilterConfig2);
| |
| 603 | case CAN_FILTER_B2_F3:
| |
| canfunctions.h | ||
| 333 | CAN_FILTER_B2_F3,
| |
| RB.c | ||
|---|---|---|
| 531 | CANSetFilter(CAN_FILTER_B2_F4,RB_RXCONFIG_3, CAN_CONFIG_STD_MSG);
| |
| canfunctions.c | ||
| 248 | CANSetFilter(CAN_FILTER_B2_F4, 0, FilterConfig2);
| |
| canfunctions.h | ||
| 334 | CAN_FILTER_B2_F4
| |
| RB.c | ||
|---|---|---|
| 509 | CANSetMask(CAN_MASK_B1,CAN_MASK_ELEVEN_BITS , CAN_CONFIG_STD_MSG); // screen on the basis of all CAN-ID bits
| |
| canfunctions.c | ||
| 221 | CANSetMask(CAN_MASK_B1, 0x00000000, CAN_CONFIG_STD_MSG);
| |
| 551 | if ( code == CAN_MASK_B1 )
| |
| canfunctions.h | ||
| 313 | CAN_MASK_B1,
| |
| RB.c | ||
|---|---|---|
| 514 | CANSetMask(CAN_MASK_B2, CAN_MASK_ELEVEN_BITS, CAN_CONFIG_STD_MSG); // screen on the basis of all 11 bits
| |
| canfunctions.c | ||
| 222 | CANSetMask(CAN_MASK_B2, 0x00000000, CAN_CONFIG_STD_MSG);
| |
| canfunctions.h | ||
| 314 | CAN_MASK_B2
| |
| RB.h | ||
|---|---|---|
| 188 | #define CAN_MASK_RB_MESG 0x0700
| |
| canfunctions.c | ||
|---|---|---|
| 143 | while( (CANSTAT & CAN_OP_MODE_BITS) != mode );
| |
| canfunctions.h | ||
| 250 | CAN_OP_MODE_BITS = 0b11100000, // Use this to access opmode
| |
| RB.c | ||
|---|---|---|
| 506 | CANSetOperationMode(CAN_OP_MODE_CONFIG); // must be in config mode to change masks/filters
| |
| canfunctions.c | ||
| 199 | CANSetOperationMode(CAN_OP_MODE_CONFIG);
| |
| canfunctions.h | ||
| 256 | CAN_OP_MODE_CONFIG = 0b10000000
| |
| canfunctions.h | ||
|---|---|---|
| 255 | CAN_OP_MODE_LISTEN = 0b01100000,
| |
| canfunctions.h | ||
|---|---|---|
| 254 | CAN_OP_MODE_LOOP = 0b01000000,
| |
| canfunctions.h | ||
|---|---|---|
| 253 | CAN_OP_MODE_SLEEP = 0b00100000,
| |
| canfunctions.c | ||
|---|---|---|
| 725 | *MsgFlags |= CAN_RX_DBL_BUFFERED;
| |
| canfunctions.h | ||
| 379 | CAN_RX_DBL_BUFFERED = 0b10000000 // Set if this message was
| |
| canfunctions.h | ||
|---|---|---|
| 360 | CAN_RX_FILTER_1 = 0b00000000,
| |
| canfunctions.h | ||
|---|---|---|
| 361 | CAN_RX_FILTER_2 = 0b00000001,
| |
| canfunctions.h | ||
|---|---|---|
| 362 | CAN_RX_FILTER_3 = 0b00000010,
| |
| canfunctions.h | ||
|---|---|---|
| 363 | CAN_RX_FILTER_4 = 0b00000011,
| |
| canfunctions.h | ||
|---|---|---|
| 364 | CAN_RX_FILTER_5 = 0b00000100,
| |
| canfunctions.h | ||
|---|---|---|
| 365 | CAN_RX_FILTER_6 = 0b00000101,
| |
| canfunctions.c | ||
|---|---|---|
| 670 | *MsgFlags |= RXB0CON & CAN_RX_FILTER_BITS;
| |
| 723 | *MsgFlags |= RXB1CON & CAN_RX_FILTER_BITS;
| |
| canfunctions.h | ||
| 358 | CAN_RX_FILTER_BITS = 0b00000111, // Use this to access filter
| |
| canfunctions.c | ||
|---|---|---|
| 701 | *MsgFlags |= CAN_RX_INVALID_MSG;
| |
| 755 | *MsgFlags |= CAN_RX_INVALID_MSG;
| |
| canfunctions.h | ||
| 370 | CAN_RX_INVALID_MSG = 0b00010000, // Set if invalid else
| |
| canfunctions.c | ||
|---|---|---|
| 294 | if ( !(MsgFlags & CAN_TX_FRAME_BIT) )
| |
| 320 | if ( !(MsgFlags & CAN_TX_FRAME_BIT) )
| |
| 344 | if ( !(MsgFlags & CAN_TX_FRAME_BIT) )
| |
| canfunctions.h | ||
| 229 | CAN_TX_FRAME_BIT = 0b00001000,
| |
| canfunctions.h | ||
|---|---|---|
| 225 | CAN_TX_PRIORITY_1 = 0b11111101, // XXXXXX01
| |
| canfunctions.h | ||
|---|---|---|
| 226 | CAN_TX_PRIORITY_2 = 0b11111110, // XXXXXX10
| |
| canfunctions.h | ||
|---|---|---|
| 227 | CAN_TX_PRIORITY_3 = 0b11111111, // XXXXXX11
| |
| canfunctions.c | ||
|---|---|---|
| 290 | TXB0CON |= MsgFlags & CAN_TX_PRIORITY_BITS;
| |
| 316 | TXB1CON |= MsgFlags & CAN_TX_PRIORITY_BITS;
| |
| 340 | TXB2CON |= MsgFlags & CAN_TX_PRIORITY_BITS;
| |
| 451 | TXB0CON |= localMsgFlags & CAN_TX_PRIORITY_BITS;
| |
| canfunctions.h | ||
| 223 | CAN_TX_PRIORITY_BITS= 0b00000011,
| |
| canfunctions.c | ||
|---|---|---|
| 301 | if ( !(MsgFlags & CAN_TX_RTR_BIT) )
| |
| 327 | if ( !(MsgFlags & CAN_TX_RTR_BIT) )
| |
| 351 | if ( !(MsgFlags & CAN_TX_RTR_BIT) )
| |
| 463 | if ( !(localMsgFlags & CAN_TX_RTR_BIT) )
| |
| canfunctions.h | ||
| 233 | CAN_TX_RTR_BIT = 0b01000000,
| |
| canfunctions.h | ||
|---|---|---|
| 235 | CAN_TX_RTR_FRAME = 0b10111111 // X0XXXXXX
| |
| canfunctions.h | ||
|---|---|---|
| 231 | CAN_TX_XTD_FRAME = 0b11110111, // XXXXX0XX
| |
| RCservo.c | ||
|---|---|---|
| 74 | static sint16 CAngle = 0; //Callibration Target Position -9000 -- 9000
| |
| 85 | if (CAngle!=servoPosCommand)
| |
| 86 | {CAngle=servoPosCommand;
| |
| hsr_serial.c | ||
|---|---|---|
| 138 | uint8 HSR_ReadEPPROM(uint8 addr)
| |
| hsr_serial.h | ||
| 102 | uint8 HSR_ReadEPPROM(uint8 addr); //Read a Specific EPPROM location
| |
| hsr_serial.c | ||
|---|---|---|
| 156 | void HSR_ReadEPPROM_v2(uint8 addr)
| |
| hsr_serial.h | ||
| 103 | void HSR_ReadEPPROM_v2(uint8 addr); //Read a Specific EPPROM location
| |
| RCservo.c | ||
|---|---|---|
| 33 | PL=HSR_ReadMemory(_HSR_MEM_P1L);
| |
| 34 | PH=HSR_ReadMemory(_HSR_MEM_P1H);
| |
| 36 | D=HSR_ReadMemory(_HSR_MEM_P1D);
| |
| hsr_serial.c | ||
| 201 | uint8 HSR_ReadMemory(uint8 addr)
| |
| hsr_serial.h | ||
| 106 | uint8 HSR_ReadMemory(uint8 addr); //Read a specific memory location
| |
| hsr_serial.c | ||
|---|---|---|
| 219 | void HSR_ReadMemory_v2(uint8 addr)
| |
| hsr_serial.h | ||
| 107 | void HSR_ReadMemory_v2(uint8 addr); //Read a specific memory location
| |
| hsr_serial.c | ||
|---|---|---|
| 341 | void HSR_ReadPWM(void)
| |
| hsr_serial.h | ||
| 115 | void HSR_ReadPWM(void); // Read pulsewidth and voltage
| |
| hsr_serial.c | ||
|---|---|---|
| 365 | void HSR_ReadPWM_v2(void)
| |
| hsr_serial.h | ||
| 116 | void HSR_ReadPWM_v2(void); // Read pulsewidth and voltage
| |
| RCservo.c | ||
|---|---|---|
| 100 | { raw_adc = HSR_ReadPosition();
| |
| hsr_serial.c | ||
| 498 | CurServoPos = HSR_ReadPosition();
| |
| 534 | CurServoPos = HSR_ReadPosition();
| |
| 572 | CurServoPos = HSR_ReadPosition();
| |
| 80 | uint16 HSR_ReadPosition(void)
| |
| hsr_serial.h | ||
| 98 | uint16 HSR_ReadPosition(void); // Read Servo Position
| |
| main.c | ||
| 81 | raw_adc = HSR_ReadPosition();
| |
| hsr_serial.c | ||
|---|---|---|
| 102 | void HSR_ReadPosition_v2(void)
| |
| 296 | HSR_ReadPosition_v2();//Read Current Position
| |
| hsr_serial.h | ||
| 99 | void HSR_ReadPosition_v2(void); // Read Servo Position
| |
| hsr_serial.c | ||
|---|---|---|
| 305 | void HSR_ReadVerID(void)
| |
| hsr_serial.h | ||
| 113 | void HSR_ReadVerID(void); // Read servo version and id
| |
| hsr_serial.c | ||
|---|---|---|
| 328 | void HSR_ReadVerID_v2(void)
| |
| hsr_serial.h | ||
| 114 | void HSR_ReadVerID_v2(void); // Read servo version and id
| |
| hsr_serial.c | ||
|---|---|---|
| 49 | void HSR_Release(void)
| |
| hsr_serial.h | ||
| 96 | void HSR_Release(void); // Release Servo
| |
| RCservo.c | ||
|---|---|---|
| 110 | HSR_Release_v2(); //Go Limp
| |
| hsr_serial.c | ||
| 68 | void HSR_Release_v2(void)
| |
| hsr_serial.h | ||
| 97 | void HSR_Release_v2(void); // Release Servo
| |
| RCservo.c | ||
|---|---|---|
| 42 | HSR_SelectControl(1);
| |
| 46 | HSR_SelectControl(3);}
| |
| 51 | HSR_SelectControl(1);
| |
| 55 | HSR_SelectControl(3);}
| |
| hsr_serial.c | ||
| 417 | void HSR_SelectControl(uint8 ControlSet)
| |
| hsr_serial.h | ||
| 119 | void HSR_SelectControl(uint8 ControlSet); // Select control parameter set
| |
| hsr_serial.c | ||
|---|---|---|
| 440 | void HSR_SelectControl_v2(uint8 ControlSet)
| |
| hsr_serial.h | ||
| 120 | void HSR_SelectControl_v2(uint8 ControlSet); // Select control parameter set
| |
| hsr_serial.c | ||
|---|---|---|
| 490 | void HSR_SetAction(sint16 TargetAngle, uint16 ActionTime)
| |
| hsr_serial.h | ||
| 123 | void HSR_SetAction(sint16 TargetAngle, uint16 ActionTime); //Set Action
| |
| hsr_serial.c | ||
|---|---|---|
| 526 | void HSR_SetAction_v2(sint16 TargetAngle, uint16 ActionTime)
| |
| hsr_serial.h | ||
| 124 | void HSR_SetAction_v2(sint16 TargetAngle, uint16 ActionTime); //Set Action
| |
| hsr_serial.c | ||
|---|---|---|
| 563 | uint32 HSR_SetAction_v3(sint16 TargetAngle, uint16 ActionTime)
| |
| hsr_serial.h | ||
| 125 | uint32 HSR_SetAction_v3(sint16 TargetAngle, uint16 ActionTime);//Set Action and estimaate time of motion | |
| hsr_serial.c | ||
|---|---|---|
| 455 | void HSR_SetGoStop(uint8 GoStop)
| |
| hsr_serial.h | ||
| 121 | void HSR_SetGoStop(uint8 GoStop); // Set Go/Stop
| |
| hsr_serial.c | ||
|---|---|---|
| 477 | void HSR_SetGoStop_v2(uint8 GoStop)
| |
| hsr_serial.h | ||
| 122 | void HSR_SetGoStop_v2(uint8 GoStop); // Set Go/Stop
| |
| hsr_serial.c | ||
|---|---|---|
| 293 | void HSR_SetInitialPosition(uint8 PosH, uint8 PosL)
| |
| hsr_serial.h | ||
| 112 | void HSR_SetInitialPosition(uint8 PosH, uint8 PosL); // Smooth Startup
| |
| hsr_serial.c | ||
|---|---|---|
| 171 | void HSR_WriteEPPROM(uint8 addr, uint8 data)
| |
| hsr_serial.h | ||
| 104 | void HSR_WriteEPPROM(uint8 addr, uint8 data); //Write one byte data to the EPPROM
| |
| hsr_serial.c | ||
|---|---|---|
| 189 | void HSR_WriteEPPROM_v2(uint8 addr, uint8 data)
| |
| hsr_serial.h | ||
| 105 | void HSR_WriteEPPROM_v2(uint8 addr, uint8 data); //Write one byte data to the EPPROM
| |
| hsr_serial.c | ||
|---|---|---|
| 116 | short IsRxDataReady(void)
| |
| hsr_serial.h | ||
| 100 | short IsRxDataReady(void); // Is incoming data ready
| |
| RB.h | ||
|---|---|---|
| 202 | #define NUM_FILTER 6
| |
| RB.h | ||
|---|---|---|
| 201 | #define NUM_MASK 2
| |
| ODaccess.c | ||
|---|---|---|
| 109 | int OD_read_data(char* dest, int num, uint8 type)
| |
| RB.c | ||
| 346 | OD_read_data(&URBTxSDO.buf[4],entry_num,type);
| |
| 370 | OD_read_data(&URBTxSDO.buf[4],entry_num,type);
| |
| ODaccess.c | ||
|---|---|---|
| 138 | int OD_write_data(char* source, int num, int type)
| |
| RB.c | ||
| 367 | OD_write_data(&data[4],entry_num,type);
| |
| RB.h | ||
|---|---|---|
| 199 | #define RB_ALL 0x0700
| |
| RB.c | ||
|---|---|---|
| 47 | // Initialize. called by RB_App_ResetApp from main().
| |
| 600 | RB_App_ResetApp();
| |
| RB.h | ||
| 183 | void RB_App_ResetApp(void);
| |
| main.c | ||
| 63 | void RB_App_ResetApp()
| |
| 91 | RB_App_ResetApp();
| |
| RB.c | ||
|---|---|---|
| 473 | RB_App_SetFactoryDefaults();
| |
| RB.h | ||
| 184 | void RB_App_SetFactoryDefaults(void);
| |
| main.c | ||
| 37 | // RB_App_SetFactoryDefaults is a callback, and is called only once,
| |
| 40 | void RB_App_SetFactoryDefaults()
| |
| RB.c | ||
|---|---|---|
| 519 | RB_RXCONFIG_0 = RB_NODEID + RB_COMMAND;
| |
| RB.h | ||
| 191 | #define RB_COMMAND 0x0100
| |
| RBapp.h | ||
| 93 | CONST UINT16 RB_RXMAPPING_0_DEFAULT = RB_COMMAND + RB_NODEID_DEFAULT;
| |
| RB.c | ||
|---|---|---|
| 292 | URBTxSDO.ID = RB_DICT_RESP + RB_NODEID;
| |
| RB.h | ||
| 195 | #define RB_DICT_RESP 0x0500
| |
| RB.h | ||
|---|---|---|
| 112 | #define RB_END_OF_DICTIONARY {0x0000,0,0,0,0}
| |
| RBapp.h | ||
| 160 | RB_END_OF_DICTIONARY // end of dictionary marker
| |
| ODaccess.c | ||
|---|---|---|
| 282 | char* RB_Get_Rx_Map_Address(uint8 bufNum, uint8 mapCount)
| |
| RB.c | ||
| 458 | memcpy(RB_Get_Rx_Map_Address(myBuf,mapCount), &data[bufCount], URB_Sizeof(type));
| |
| ODaccess.c | ||
|---|---|---|
| 218 | uint16 RB_Get_Rx_Map_Index(uint8 bufNum, uint8 mapCount)
| |
| RB.c | ||
| 201 | tmpIndex = RB_Get_Rx_Map_Index(myBufNum, subindex-2);
| |
| ODaccess.c | ||
|---|---|---|
| 250 | uint8 RB_Get_Rx_Map_Type(uint8 bufNum, uint8 mapCount)
| |
| RB.c | ||
| 457 | type = RB_Get_Rx_Map_Type(myBuf,mapCount);
| |
| ODaccess.c | ||
|---|---|---|
| 166 | uint8 RB_Get_Rx_Mapping_Length(uint8 myBuf)
| |
| RB.c | ||
| 196 | tmpIndex = RB_Get_Rx_Mapping_Length(myBufNum);
| |
| 451 | numMappings = RB_Get_Rx_Mapping_Length(myBuf);
| |
| ODaccess.c | ||
|---|---|---|
| 266 | char* RB_Get_Tx_Map_Address(uint8 bufNum, uint8 mapCount)
| |
| RB.c | ||
| 145 | memcpy(&RBtPM[myBufNum].buf[RBtPM[myBufNum].len], RB_Get_Tx_Map_Address(myBufNum,mapCount), URB_Sizeof(type));
| |
| ODaccess.c | ||
|---|---|---|
| 202 | uint16 RB_Get_Tx_Map_Index(uint8 bufNum, uint8 mapCount)
| |
| RB.c | ||
| 216 | tmpIndex = RB_Get_Tx_Map_Index(myBufNum, subindex-2);
| |
| ODaccess.c | ||
|---|---|---|
| 234 | uint8 RB_Get_Tx_Map_Type(uint8 bufNum, uint8 mapCount)
| |
| RB.c | ||
| 144 | type = RB_Get_Tx_Map_Type(myBufNum,mapCount);
| |
| ODaccess.c | ||
|---|---|---|
| 184 | uint8 RB_Get_Tx_Mapping_Length(uint8 myBuf)
| |
| RB.c | ||
| 139 | numMappings = RB_Get_Tx_Mapping_Length(myBufNum);
| |
| 211 | tmpIndex = RB_Get_Tx_Mapping_Length(myBufNum);
| |
| RB.c | ||
|---|---|---|
| 478 | URBhb.ID = RB_HEARTBEAT + (int16) RB_NODEID;
| |
| RB.h | ||
| 197 | #define RB_HEARTBEAT 0x0700
| |
| RB.c | ||
|---|---|---|
| 181 | void RB_Handle_Mapping_Request(int16 index, int8 subindex)
| |
| 326 | RB_Handle_Mapping_Request(index,subindex);
| |
| RB.h | ||
| 177 | void RB_Handle_Mapping_Request(int16 index, int8 subindex);
| |
| RB.c | ||
|---|---|---|
| 51 | void RB_Initialize() {
| |
| main.c | ||
| 38 | // by RB_Initialize, on first power up after wiping the ROM.
| |
| 69 | RB_Initialize();
| |
| RB.c | ||
|---|---|---|
| 298 | if (cmd == RB_MSG_DICT_READ)
| |
| RB.h | ||
| 75 | #define RB_MSG_DICT_READ 0x40
| |
| RB.c | ||
|---|---|---|
| 358 | else if (cmd == RB_MSG_DICT_WRITE)
| |
| RB.h | ||
| 76 | #define RB_MSG_DICT_WRITE 0x20
| |
| RB.h | ||
|---|---|---|
| 194 | #define RB_NEIGHBOR 0x0400
| |
| RB.c | ||
|---|---|---|
| 511 | CANSetFilter(CAN_FILTER_B1_F2, RB_NMT, CAN_CONFIG_STD_MSG); // also allow NMT msg with NodeID 0 (master node).
| |
| RB.h | ||
| 190 | #define RB_NMT 0x0000
| |
| RB.c | ||
|---|---|---|
| 599 | case RB_NODE_RESET:
| |
| RB.h | ||
| 200 | #define RB_NODE_RESET 129
| |
| RB.c | ||
|---|---|---|
| 314 | URBTxSDO.buf[4] = (permissions & RB_PERM_BITS);
| |
| RB.h | ||
| 91 | #define RB_PERM_BITS 0b00000011
| |
| RB.c | ||
|---|---|---|
| 344 | else if ((subindex == 1) && (permissions & RB_PERM_READ_BIT))
| |
| RB.h | ||
| 92 | #define RB_PERM_READ_BIT 0b00000001
| |
| RB.h | ||
|---|---|---|
| 96 | #define RB_PERM_WRITEONLY 0b00000010
| |
| RB.c | ||
|---|---|---|
| 361 | if ((permissions & RB_PERM_WRITE_BIT) && (subindex == 1))
| |
| RB.h | ||
| 95 | #define RB_PERM_WRITE_BIT 0b00000010
| |
| RB.c | ||
|---|---|---|
| 472 | RB_PM_SetDefaults(); // set identifiers on Process Messages
| |
| 75 | void RB_PM_SetDefaults(void) {
| |
| RB.h | ||
| 176 | void RB_PM_SetDefaults(void);
| |
| RB.c | ||
|---|---|---|
| 48 | // Also may be called by the main loop (RB_ProcessStack).
| |
| 569 | byte RB_ProcessStack() {
| |
| main.c | ||
| 36 | // it can be called at any time by RB_ProcessStack();
| |
| 99 | RB_ProcessStack();
| |
| RB.c | ||
|---|---|---|
| 422 | bool RB_Process_Outgoing_PM() {
| |
| 638 | ret_val |= RB_Process_Outgoing_PM();
| |
| RB.c | ||
|---|---|---|
| 521 | RB_RXCONFIG_2 = RB_NULL;
| |
| 526 | RBrPM[2].ID = RB_RXCONFIG_2;
| |
| 530 | CANSetFilter(CAN_FILTER_B2_F3,RB_RXCONFIG_2, CAN_CONFIG_STD_MSG);
| |
| 97 | RB_RXCONFIG_2 = tmpIdent;
| |
| RB.h | ||
| 206 | uint16 RB_RXCONFIG_2;
| |
| RB.c | ||
|---|---|---|
| 103 | RB_RXCONFIG_3 = tmpIdent;
| |
| 522 | RB_RXCONFIG_3 = RB_NULL;
| |
| 527 | RBrPM[3].ID = RB_RXCONFIG_3;
| |
| 531 | CANSetFilter(CAN_FILTER_B2_F4,RB_RXCONFIG_3, CAN_CONFIG_STD_MSG);
| |
| RB.h | ||
| 207 | uint16 RB_RXCONFIG_3;
| |
| RB.c | ||
|---|---|---|
| 82 | tmpIdent = RB_RXMAPPING_0_DEFAULT;
| |
| RBapp.h | ||
| 93 | CONST UINT16 RB_RXMAPPING_0_DEFAULT = RB_COMMAND + RB_NODEID_DEFAULT;
| |
| ODaccess.c | ||
|---|---|---|
| 170 | case (0): tmp = RB_RXMAPPING_0_LENGTH;
| |
| RBapp.h | ||
| 92 | CONST UINT8 RB_RXMAPPING_0_LENGTH = 1;
| |
| RB.c | ||
|---|---|---|
| 88 | tmpIdent = RB_RXMAPPING_1_DEFAULT;
| |
| RBapp.h | ||
| 101 | CONST UINT16 RB_RXMAPPING_1_DEFAULT = RB_NULL;
| |
| ODaccess.c | ||
|---|---|---|
| 172 | case (1): tmp = RB_RXMAPPING_1_LENGTH;
| |
| RBapp.h | ||
| 100 | CONST UINT8 RB_RXMAPPING_1_LENGTH = 0;
| |
| RB.c | ||
|---|---|---|
| 94 | tmpIdent = RB_RXMAPPING_2_DEFAULT;
| |
| RBapp.h | ||
| 105 | CONST UINT16 RB_RXMAPPING_2_DEFAULT = RB_NULL;
| |
| ODaccess.c | ||
|---|---|---|
| 174 | case (2): tmp = RB_RXMAPPING_2_LENGTH;
| |
| RBapp.h | ||
| 104 | CONST UINT8 RB_RXMAPPING_2_LENGTH = 0;
| |
| RB.c | ||
|---|---|---|
| 100 | tmpIdent = RB_RXMAPPING_3_DEFAULT;
| |
| RBapp.h | ||
| 109 | CONST UINT16 RB_RXMAPPING_3_DEFAULT = RB_NULL;
| |
| ODaccess.c | ||
|---|---|---|
| 176 | case (3): tmp = RB_RXMAPPING_3_LENGTH;
| |
| RBapp.h | ||
| 108 | CONST UINT8 RB_RXMAPPING_3_LENGTH = 0;
| |
| RB.c | ||
|---|---|---|
| 534 | RB_TXCONFIG_0 = RB_NODEID + RB_SENSOR;
| |
| RB.h | ||
| 192 | #define RB_SENSOR 0x0200
| |
| RBapp.h | ||
| 113 | CONST UINT16 RB_TXMAPPING_0_DEFAULT = RB_SENSOR + RB_NODEID_DEFAULT;
| |
| RB.c | ||
|---|---|---|
| 133 | void RB_Send_PM(byte myBufNum)
| |
| 167 | } // end of RB_Send_PM()
| |
| main.c | ||
| 84 | RB_Send_PM(0);
| |
| RB.c | ||
|---|---|---|
| 117 | RB_TXCONFIG_1 = tmpIdent;
| |
| 535 | RB_TXCONFIG_1 = 0;
| |
| 539 | RBtPM[1].ID = RB_TXCONFIG_1;
| |
| RB.h | ||
| 209 | uint16 RB_TXCONFIG_1;
| |
| RB.c | ||
|---|---|---|
| 123 | RB_TXCONFIG_2 = tmpIdent;
| |
| 536 | RB_TXCONFIG_2 = 0;
| |
| 540 | RBtPM[2].ID = RB_TXCONFIG_2;
| |
| RB.h | ||
| 210 | uint16 RB_TXCONFIG_2;
| |
| RB.c | ||
|---|---|---|
| 129 | RB_TXCONFIG_3 = tmpIdent;
| |
| 537 | RB_TXCONFIG_3 = 0;
| |
| 541 | RBtPM[3].ID = RB_TXCONFIG_3;
| |
| RB.h | ||
| 211 | uint16 RB_TXCONFIG_3;
| |
| RB.c | ||
|---|---|---|
| 108 | tmpIdent = RB_TXMAPPING_0_DEFAULT;
| |
| RBapp.h | ||
| 113 | CONST UINT16 RB_TXMAPPING_0_DEFAULT = RB_SENSOR + RB_NODEID_DEFAULT;
| |
| ODaccess.c | ||
|---|---|---|
| 188 | case (0): tmp = RB_TXMAPPING_0_LENGTH;
| |
| RBapp.h | ||
| 112 | CONST UINT8 RB_TXMAPPING_0_LENGTH = 1;
| |
| RB.c | ||
|---|---|---|
| 114 | tmpIdent = RB_TXMAPPING_1_DEFAULT;
| |
| RBapp.h | ||
| 120 | CONST UINT16 RB_TXMAPPING_1_DEFAULT = RB_NULL;
| |
| ODaccess.c | ||
|---|---|---|
| 190 | case (1): tmp = RB_TXMAPPING_1_LENGTH;
| |
| RBapp.h | ||
| 119 | CONST UINT8 RB_TXMAPPING_1_LENGTH = 0;
| |
| RB.c | ||
|---|---|---|
| 120 | tmpIdent = RB_TXMAPPING_2_DEFAULT;
| |
| RBapp.h | ||
| 124 | CONST UINT16 RB_TXMAPPING_2_DEFAULT = RB_NULL;
| |
| ODaccess.c | ||
|---|---|---|
| 192 | case (2): tmp = RB_TXMAPPING_2_LENGTH;
| |
| RBapp.h | ||
| 123 | CONST UINT8 RB_TXMAPPING_2_LENGTH = 0;
| |
| RB.c | ||
|---|---|---|
| 126 | tmpIdent = RB_TXMAPPING_3_DEFAULT;
| |
| RBapp.h | ||
| 128 | CONST UINT16 RB_TXMAPPING_3_DEFAULT = RB_NULL;
| |
| ODaccess.c | ||
|---|---|---|
| 194 | case (3): tmp = RB_TXMAPPING_3_LENGTH;
| |
| RBapp.h | ||
| 127 | CONST UINT8 RB_TXMAPPING_3_LENGTH = 0;
| |
| RBTypes.h | ||
|---|---|---|
| 1 | #ifndef RB_TYPES
| |
| 2 | #define RB_TYPES
| |
| ODaccess.c | ||
|---|---|---|
| 45 | case RB_TYPE_BOOLEAN: return 1; break;
| |
| RB.h | ||
| 99 | #define RB_TYPE_BOOLEAN 0x41
| |
| RBapp.h | ||
| 153 | { 0x1060, RB_MEDIA_RAM | RB_PERM_READWRITE, RB_TYPE_BOOLEAN, &calMode, "calMode"},
| |
| ODaccess.c | ||
|---|---|---|
| 48 | case RB_TYPE_SINT32: return 4; break; // etc.
| |
| RB.h | ||
| 102 | #define RB_TYPE_SINT32 0x44
| |
| ODaccess.c | ||
|---|---|---|
| 46 | case RB_TYPE_SINT8: return 1; break; // one byte long,
| |
| RB.h | ||
| 100 | #define RB_TYPE_SINT8 0x42
| |
| ODaccess.c | ||
|---|---|---|
| 51 | case RB_TYPE_UINT32: return 4; break;
| |
| RB.h | ||
| 105 | #define RB_TYPE_UINT32 0x47
| |
| RB.c | ||
|---|---|---|
| 520 | RB_RXCONFIG_1 = RB_NODEID + RB_USART;
| |
| RB.h | ||
| 193 | #define RB_USART 0x0300
| |
| RB.c | ||
|---|---|---|
| 483 | void RB_setup_CAN()
| |
| 63 | RB_setup_CAN();
| |
| RB.h | ||
| 214 | void RB_setup_CAN(void);
| |
| RCservo.c | ||
|---|---|---|
| 28 | void RCservo_init() {
| |
| main.c | ||
| 70 | RCservo_init(); // sets up servo default values
| |
| canfunctions.c | ||
|---|---|---|
| 204 | *RXB0CON = config & CAN_CONFIG_MSG_BITS; //dgi changed
| |
| 208 | *RXB1CON = *RXB0CON;
| |
| 670 | *MsgFlags |= RXB0CON & CAN_RX_FILTER_BITS;
| |
| canfunctions.h | ||
| 117 | #define RXB0CON 0xF60
| |
| canfunctions.c | ||
|---|---|---|
| 694 | Data[i] = *(RXB0D0+i);
| |
| canfunctions.h | ||
| 179 | #define RXB0D0 0xF66
| |
| canfunctions.h | ||
|---|---|---|
| 180 | #define RXB0D1 0xF67
| |
| canfunctions.h | ||
|---|---|---|
| 181 | #define RXB0D2 0xF68
| |
| canfunctions.h | ||
|---|---|---|
| 182 | #define RXB0D3 0xF69
| |
| canfunctions.h | ||
|---|---|---|
| 183 | #define RXB0D4 0xF6A
| |
| canfunctions.h | ||
|---|---|---|
| 184 | #define RXB0D5 0xF6B
| |
| canfunctions.h | ||
|---|---|---|
| 185 | #define RXB0D6 0xF6C
| |
| canfunctions.h | ||
|---|---|---|
| 186 | #define RXB0D7 0xF6D
| |
| canfunctions.c | ||
|---|---|---|
| 676 | *DataLen = *RXB0DLC & 0b00001111;
| |
| canfunctions.h | ||
| 128 | #define RXB0DLC 0xF65
| |
| canfunctions.h | ||
|---|---|---|
| 175 | #define RXB0EIDH 0xF63
| |
| canfunctions.h | ||
|---|---|---|
| 176 | #define RXB0EIDL 0xF64
| |
| canfunctions.c | ||
|---|---|---|
| 689 | *id =((int32)(*RXB0SIDH)) * 8;
| |
| canfunctions.h | ||
| 173 | #define RXB0SIDH 0xF61
| |
| canfunctions.c | ||
|---|---|---|
| 690 | *id |= (int32)(((*RXB0SIDL) & 0xE0)>>5);
| |
| canfunctions.h | ||
| 174 | #define RXB0SIDL 0xF62
| |
| canfunctions.c | ||
|---|---|---|
| 208 | *RXB1CON = *RXB0CON;
| |
| 723 | *MsgFlags |= RXB1CON & CAN_RX_FILTER_BITS;
| |
| canfunctions.h | ||
| 122 | #define RXB1CON 0xF50
| |
| canfunctions.c | ||
|---|---|---|
| 745 | //ptr = RXB1D0;
| |
| 747 | Data[i] = *(RXB1D0+i);
| |
| canfunctions.h | ||
| 199 | #define RXB1D0 0xF56
| |
| canfunctions.h | ||
|---|---|---|
| 200 | #define RXB1D1 0xF57
| |
| canfunctions.h | ||
|---|---|---|
| 201 | #define RXB1D2 0xF58
| |
| canfunctions.h | ||
|---|---|---|
| 202 | #define RXB1D3 0xF59
| |
| canfunctions.h | ||
|---|---|---|
| 203 | #define RXB1D4 0xF5A
| |
| canfunctions.h | ||
|---|---|---|
| 204 | #define RXB1D5 0xF5B
| |
| canfunctions.h | ||
|---|---|---|
| 205 | #define RXB1D6 0xF5C
| |
| canfunctions.h | ||
|---|---|---|
| 206 | #define RXB1D7 0xF5D
| |
| canfunctions.c | ||
|---|---|---|
| 729 | *DataLen = *RXB1DLC & 0b00001111;
| |
| canfunctions.h | ||
| 189 | #define RXB1DLC 0xF55
| |
| canfunctions.h | ||
|---|---|---|
| 196 | #define RXB1EIDH 0xF53
| |
| canfunctions.h | ||
|---|---|---|
| 197 | #define RXB1EIDL 0xF54
| |
| canfunctions.c | ||
|---|---|---|
| 740 | *id =((int32)(*RXB1SIDH)) * 8;
| |
| canfunctions.h | ||
| 195 | #define RXB1SIDH 0xF51
| |
| canfunctions.c | ||
|---|---|---|
| 741 | *id |= (int32)(((*RXB1SIDL) & 0xE0)>>5);
| |
| canfunctions.h | ||
| 192 | #define RXB1SIDL 0xF52
| |
| canfunctions.h | ||
|---|---|---|
| 144 | #define RXF0EIDH 0xF02
| |
| canfunctions.h | ||
|---|---|---|
| 145 | #define RXF0EIDL 0xF03
| |
| canfunctions.c | ||
|---|---|---|
| 588 | ptr = RXF0SIDH;
| |
| canfunctions.h | ||
| 142 | #define RXF0SIDH 0xF00
| |
| canfunctions.h | ||
|---|---|---|
| 143 | #define RXF0SIDL 0xF01
| |
| canfunctions.h | ||
|---|---|---|
| 149 | #define RXF1EIDH 0xF06
| |
| canfunctions.h | ||
|---|---|---|
| 150 | #define RXF1EIDL 0xF07
| |
| canfunctions.c | ||
|---|---|---|
| 592 | ptr = RXF1SIDH;
| |
| canfunctions.h | ||
| 147 | #define RXF1SIDH 0xF04
| |
| canfunctions.h | ||
|---|---|---|
| 148 | #define RXF1SIDL 0xF05
| |
| canfunctions.h | ||
|---|---|---|
| 154 | #define RXF2EIDH 0xF0A
| |
| canfunctions.h | ||
|---|---|---|
| 155 | #define RXF2EIDL 0xF0B
| |
| canfunctions.c | ||
|---|---|---|
| 596 | ptr = RXF2SIDH;
| |
| canfunctions.h | ||
| 152 | #define RXF2SIDH 0xF08
| |
| canfunctions.h | ||
|---|---|---|
| 153 | #define RXF2SIDL 0xF09
| |
| canfunctions.h | ||
|---|---|---|
| 159 | #define RXF3EIDH 0xF0E
| |
| canfunctions.h | ||
|---|---|---|
| 160 | #define RXF3EIDL 0xF0F
| |
| canfunctions.c | ||
|---|---|---|
| 600 | ptr = RXF3SIDH;
| |
| canfunctions.h | ||
| 157 | #define RXF3SIDH 0xF0C
| |
| canfunctions.h | ||
|---|---|---|
| 158 | #define RXF3SIDL 0xF0D
| |
| canfunctions.h | ||
|---|---|---|
| 164 | #define RXF4EIDH 0xF12
| |
| canfunctions.h | ||
|---|---|---|
| 165 | #define RXF4EIDL 0xF13
| |
| canfunctions.c | ||
|---|---|---|
| 604 | ptr = RXF4SIDH;
| |
| canfunctions.h | ||
| 162 | #define RXF4SIDH 0xF10
| |
| canfunctions.h | ||
|---|---|---|
| 163 | #define RXF4SIDL 0xF11
| |
| canfunctions.h | ||
|---|---|---|
| 169 | #define RXF5EIDH 0xF16
| |
| canfunctions.h | ||
|---|---|---|
| 170 | #define RXF5EIDL 0xF17
| |
| canfunctions.c | ||
|---|---|---|
| 608 | ptr = RXF5SIDH;
| |
| canfunctions.h | ||
| 167 | #define RXF5SIDH 0xF14
| |
| canfunctions.h | ||
|---|---|---|
| 168 | #define RXF5SIDL 0xF15
| |
| canfunctions.h | ||
|---|---|---|
| 133 | #define RXM0EIDH 0xF1A
| |
| canfunctions.h | ||
|---|---|---|
| 134 | #define RXM0EIDL 0xF1B
| |
| canfunctions.c | ||
|---|---|---|
| 552 | ptr = RXM0SIDH;
| |
| canfunctions.h | ||
| 131 | #define RXM0SIDH 0xF18
| |
| canfunctions.h | ||
|---|---|---|
| 132 | #define RXM0SIDL 0xF19
| |
| canfunctions.h | ||
|---|---|---|
| 138 | #define RXM1EIDH 0xF1E
| |
| canfunctions.h | ||
|---|---|---|
| 139 | #define RXM1EIDL 0xF1F
| |
| canfunctions.c | ||
|---|---|---|
| 554 | ptr = RXM1SIDH;
| |
| canfunctions.h | ||
| 136 | #define RXM1SIDH 0xF1C
| |
| canfunctions.h | ||
|---|---|---|
| 137 | #define RXM1SIDL 0xF1D
| |
| main.c | ||
|---|---|---|
| 79 | void ReadPos()
| |
| 96 | ReadPos();
| |
| RCservo.c | ||
|---|---|---|
| 107 | if (TAngle!=servoPosCommand)
| |
| 108 | {TAngle=servoPosCommand;
| |
| 73 | static sint16 TAngle = 0; //Target Position -9000 -- 9000
| |
| canfunctions.c | ||
|---|---|---|
| 16 | on the ptr=TXB0D0; assignment. Appears that CCS does not accept
| |
| 18 | this: *(TXB0D0+i) = Data[i];
| |
| 306 | *(TXB0D0+i) = Data[i];
| |
| 468 | *(TXB0D0+i) = Data[i];
| |
| canfunctions.h | ||
| 52 | #define TXB0D0 0xF46
| |
| canfunctions.h | ||
|---|---|---|
| 53 | #define TXB0D1 0xF47
| |
| canfunctions.h | ||
|---|---|---|
| 54 | #define TXB0D2 0xF48
| |
| canfunctions.h | ||
|---|---|---|
| 55 | #define TXB0D3 0xF49
| |
| canfunctions.h | ||
|---|---|---|
| 56 | #define TXB0D4 0xF4A
| |
| canfunctions.h | ||
|---|---|---|
| 57 | #define TXB0D5 0xF4B
| |
| canfunctions.h | ||
|---|---|---|
| 58 | #define TXB0D6 0xF4C
| |
| canfunctions.h | ||
|---|---|---|
| 59 | #define TXB0D7 0xF4D
| |
| canfunctions.c | ||
|---|---|---|
| 331 | *(TXB1D0+i) = Data[i];
| |
| canfunctions.h | ||
| 61 | #define TXB1D0 0xF36
| |
| canfunctions.h | ||
|---|---|---|
| 62 | #define TXB1D1 0xF37
| |
| canfunctions.h | ||
|---|---|---|
| 63 | #define TXB1D2 0xF38
| |
| canfunctions.h | ||
|---|---|---|
| 64 | #define TXB1D3 0xF39
| |
| canfunctions.h | ||
|---|---|---|
| 65 | #define TXB1D4 0xF3A
| |
| canfunctions.h | ||
|---|---|---|
| 66 | #define TXB1D5 0xF3B
| |
| canfunctions.h | ||
|---|---|---|
| 67 | #define TXB1D6 0xF3C
| |
| canfunctions.h | ||
|---|---|---|
| 68 | #define TXB1D7 0xF3D
| |
| canfunctions.c | ||
|---|---|---|
| 353 | //ptr=TXB2D0;
| |
| 356 | *(TXB2D0+i) = Data[i];
| |
| canfunctions.h | ||
| 70 | #define TXB2D0 0xF26
| |
| canfunctions.h | ||
|---|---|---|
| 71 | #define TXB2D1 0xF27
| |
| canfunctions.h | ||
|---|---|---|
| 72 | #define TXB2D2 0xF28
| |
| canfunctions.h | ||
|---|---|---|
| 73 | #define TXB2D3 0xF29
| |
| canfunctions.h | ||
|---|---|---|
| 74 | #define TXB2D4 0xF2A
| |
| canfunctions.h | ||
|---|---|---|
| 75 | #define TXB2D5 0xF2B
| |
| canfunctions.h | ||
|---|---|---|
| 76 | #define TXB2D6 0xF2C
| |
| canfunctions.h | ||
|---|---|---|
| 77 | #define TXB2D7 0xF2D
| |
| RCservo.c | ||
|---|---|---|
| 79 | uint16 Timer_100 = ((int)URB_HEARTBEAT_INTERVAL)/100; // Timer count for 60 Hz
| |
| 99 | if(get_timer0() >= Timer_100*feed_mult)
| |
| RB.c | ||
|---|---|---|
| 400 | bool URBMaintainHeartbeat() {
| |
| 635 | ret_val |= URBMaintainHeartbeat();
| |
| RB.c | ||
|---|---|---|
| 549 | URBRecvCounter = 0;
| |
| 577 | URBRecvCounter++;
| |
| RB.h | ||
| 159 | byte URBRecvCounter;
| |
| RB.c | ||
|---|---|---|
| 550 | URBRecvOverflowCounter = 0;
| |
| 583 | URBRecvOverflowCounter++;
| |
| RB.h | ||
| 158 | byte URBRecvOverflowCounter;
| |
| RB.c | ||
|---|---|---|
| 321 | URBErrorCode = URB_ERROR_MAPPING_IN_PROCESS;
| |
| RB.h | ||
| 71 | #define URB_ERROR_MAPPING_IN_PROCESS 0xD1
| |
| RB.c | ||
|---|---|---|
| 590 | //if (URBStackRcv.len != 2) URBErrorCode = URB_ERROR_NMT_INVALID_LENGTH; else
| |
| RB.h | ||
| 68 | #define URB_ERROR_NMT_INVALID_LENGTH 0xCE
| |
| RB.c | ||
|---|---|---|
| 607 | else URBErrorCode = URB_ERROR_NMT_NOT_ADDRESSED;
| |
| RB.h | ||
| 67 | #define URB_ERROR_NMT_NOT_ADDRESSED 0xCD
| |
| RB.c | ||
|---|---|---|
| 603 | URBErrorCode = URB_ERROR_NMT_UNKNOWN_COMMAND;
| |
| RB.h | ||
| 66 | #define URB_ERROR_NMT_UNKNOWN_COMMAND 0xCC
| |
| RB.h | ||
|---|---|---|
| 70 | #define URB_ERROR_PM_NO_MAP 0xD0
| |
| RB.c | ||
|---|---|---|
| 300 | URBErrorCode = URB_ERROR_READ_IN_PROCESS;
| |
| RB.h | ||
| 72 | #define URB_ERROR_READ_IN_PROCESS 0xD2
| |
| RB.h | ||
|---|---|---|
| 50 | #define URB_ERROR_RX_INVALID_MSG 0x10
| |
| RB.h | ||
|---|---|---|
| 52 | #define URB_ERROR_RX_RTR_FRAME 0x40
| |
| RB.h | ||
|---|---|---|
| 51 | #define URB_ERROR_RX_XTD_FRAME 0x20
| |
| RB.c | ||
|---|---|---|
| 266 | URBErrorCode = URB_ERROR_SDO_IN_PROCESS;
| |
| RB.h | ||
| 57 | #define URB_ERROR_SDO_IN_PROCESS 0x33
| |
| RB.c | ||
|---|---|---|
| 615 | URBErrorCode = URB_ERROR_SDO_MALFORMED;
| |
| RB.h | ||
| 58 | #define URB_ERROR_SDO_MALFORMED 0xA9
| |
| RB.c | ||
|---|---|---|
| 394 | URBErrorCode = URB_ERROR_SDO_NOT_FOUND; // index not found in object dictionary
| |
| RB.h | ||
| 60 | #define URB_ERROR_SDO_NOT_FOUND 0xAB
| |
| RB.c | ||
|---|---|---|
| 355 | URBErrorCode = URB_ERROR_SDO_PERMISSIONS;
| |
| 380 | URBErrorCode = URB_ERROR_SDO_PERMISSIONS;
| |
| RB.h | ||
| 64 | #define URB_ERROR_SDO_PERMISSIONS 0xAF
| |
| RB.h | ||
|---|---|---|
| 56 | #define URB_ERROR_SDO_REPLY_SENT 0x22
| |
| RB.h | ||
|---|---|---|
| 61 | #define URB_ERROR_SDO_TYPE_MISMATCH 0xAC
| |
| RB.c | ||
|---|---|---|
| 385 | URBErrorCode = URB_ERROR_SDO_UNKNOWN_COMMAND;
| |
| RB.h | ||
| 63 | #define URB_ERROR_SDO_UNKNOWN_COMMAND 0xAE
| |
| ODaccess.c | ||
|---|---|---|
| 56 | default: URBErrorCode = URB_ERROR_SDO_UNKNOWN_TYPE;
| |
| RB.h | ||
| 59 | #define URB_ERROR_SDO_UNKNOWN_TYPE 0xAA
| |
| RB.c | ||
|---|---|---|
| 175 | URBErrorCode = URB_ERROR_WAITING_FOR_TXBUF;
| |
| RB.h | ||
| 62 | #define URB_ERROR_WAITING_FOR_TXBUF 0xAD
| |
| RB.c | ||
|---|---|---|
| 45 | #define URBOperational() (URBhb.buf[0] == URB_HEARTBEAT_NORMAL)
| |
| 480 | URBhb.buf[0] = URB_HEARTBEAT_NORMAL;
| |
| 593 | URBhb.buf[0] = URB_HEARTBEAT_NORMAL;
| |
| RB.h | ||
| 42 | #define URB_HEARTBEAT_NORMAL 0x05
| |
| RB.c | ||
|---|---|---|
| 596 | URBhb.buf[0] = URB_HEARTBEAT_STOPPED;
| |
| RB.h | ||
| 43 | #define URB_HEARTBEAT_STOPPED 0x04
| |
| RB.c | ||
|---|---|---|
| 259 | void URB_Handle_SDO_Request(byte *data)
| |
| 613 | URB_Handle_SDO_Request(URBStackRcv.buf);
| |
| RB.c | ||
|---|---|---|
| 586 | URBErrorCode = URB_RX_IN_PROCESS;
| |
| RB.h | ||
| 54 | #define URB_RX_IN_PROCESS 0x34
| |
| RB.c | ||
|---|---|---|
| 170 | void URB_Send_SDO_Reply()
| |
| 224 | URB_Send_SDO_Reply();
| |
| 308 | URB_Send_SDO_Reply();
| |
| 316 | URB_Send_SDO_Reply();
| |
| 341 | URB_Send_SDO_Reply();
| |
| 349 | URB_Send_SDO_Reply();
| |
| 374 | URB_Send_SDO_Reply();
| |
| ODaccess.c | ||
|---|---|---|
| 146 | URB_translate_ieee_to_microchip(source);
| |
| 89 | void URB_translate_ieee_to_microchip(int *Value)
| |
| RB.c | ||
| 459 | if (type == RB_TYPE_FLOAT) URB_translate_ieee_to_microchip(&data[bufCount]);
| |
| usart.c | ||
|---|---|---|
| 115 | while(USART_search_active)
| |
| 26 | uint8 USART_search_active = 0;
| |
| 34 | USART_search_active = 1;
| |
| 85 | while(USART_search_active) //Try each rx mux port 8 times
| |
| usart.c | ||
|---|---|---|
| 27 | uint8 USART_timer = 0;
| |
| 35 | USART_timer = 0;
| |
| hsr_serial.h | ||
|---|---|---|
| 51 | #define _HSR_EPPROM_DZ1 0x02 // Dead zone for parameter set 1
| |
| hsr_serial.h | ||
|---|---|---|
| 55 | #define _HSR_EPPROM_DZ2 0x21 // Dead zone for parameter set 1
| |
| hsr_serial.h | ||
|---|---|---|
| 59 | #define _HSR_EPPROM_DZ3 0x26 // Dead zone for parameter set 1
| |
| hsr_serial.h | ||
|---|---|---|
| 62 | #define _HSR_EPPROM_ID 0x29 // Servo ID
| |
| hsr_serial.h | ||
|---|---|---|
| 65 | #define _HSR_EPPROM_MaxPosH 0x0B // High byte of maximum servo position
| |
| hsr_serial.h | ||
|---|---|---|
| 66 | #define _HSR_EPPROM_MaxPosL 0x0C // Low byte of maximum servo positon
| |
| hsr_serial.h | ||
|---|---|---|
| 67 | #define _HSR_EPPROM_MidPosH 0x11 // High byte of center servo position
| |
| hsr_serial.h | ||
|---|---|---|
| 68 | #define _HSR_EPPROM_MidPosL 0x12 // Low byte of center servo positon
| |
| hsr_serial.h | ||
|---|---|---|
| 63 | #define _HSR_EPPROM_MinPosH 0x09 // High byte of minimum servo position
| |
| hsr_serial.h | ||
|---|---|---|
| 64 | #define _HSR_EPPROM_MinPosL 0x0A // Low byte of minimum servo positon
| |
| hsr_serial.h | ||
|---|---|---|
| 52 | #define _HSR_EPPROM_P1D 0x03 // Derivative gain for parameter set 1
| |
| hsr_serial.h | ||
|---|---|---|
| 49 | #define _HSR_EPPROM_P1H 0x00 // High byte of Proportional gain for parameter set 1
| |
| hsr_serial.h | ||
|---|---|---|
| 50 | #define _HSR_EPPROM_P1L 0x01 // Low byte of Proportional gain for parameter set 1
| |
| hsr_serial.h | ||
|---|---|---|
| 56 | #define _HSR_EPPROM_P2D 0x22 // Derivative gain for parameter set 1
| |
| hsr_serial.h | ||
|---|---|---|
| 53 | #define _HSR_EPPROM_P2H 0x1F // High byte of Proportional gain for parameter set 1
| |
| hsr_serial.h | ||
|---|---|---|
| 54 | #define _HSR_EPPROM_P2L 0x20 // Low byte of Proportional gain for parameter set 1
| |
| hsr_serial.h | ||
|---|---|---|
| 60 | #define _HSR_EPPROM_P3D 0x27 // Derivative gain for parameter set 1
| |
| hsr_serial.h | ||
|---|---|---|
| 57 | #define _HSR_EPPROM_P3H 0x24 // High byte of Proportional gain for parameter set 1
| |
| hsr_serial.h | ||
|---|---|---|
| 58 | #define _HSR_EPPROM_P3L 0x25 // Low byte of Proportional gain for parameter set 1
| |
| hsr_serial.h | ||
|---|---|---|
| 61 | #define _HSR_EPPROM_Speed 0x06 // EEPROM address for speed
| |
| hsr_serial.h | ||
|---|---|---|
| 76 | #define _HSR_MEM_ActualPosH 0xA7 // High byte of actual position
| |
| hsr_serial.h | ||
|---|---|---|
| 77 | #define _HSR_MEM_ActualPosL 0xA8 // Low byte of actual position
| |
| hsr_serial.c | ||
|---|---|---|
| 299 | HSR_WriteMemory(_HSR_MEM_CurTargetPosH, _ServoPosH);
| |
| hsr_serial.h | ||
| 73 | #define _HSR_MEM_CurTargetPosH 0x07 // High byte of current target set position
| |
| hsr_serial.c | ||
|---|---|---|
| 298 | HSR_WriteMemory(_HSR_MEM_CurTargetPosL, _ServoPosL);
| |
| hsr_serial.h | ||
| 72 | #define _HSR_MEM_CurTargetPosL 0x06 // Low byte of current target set position
| |
| hsr_serial.h | ||
|---|---|---|
| 83 | #define _HSR_MEM_DZ1 0x82 // Dead zone for parameter set 1
| |
| hsr_serial.h | ||
|---|---|---|
| 80 | #define _HSR_MEM_GoStop 0xC9 // Go/Stop
| |
| hsr_serial.h | ||
|---|---|---|
| 89 | #define _HSR_MEM_MaxPosH 0x8B // High byte of maximum servo position
| |
| hsr_serial.h | ||
|---|---|---|
| 90 | #define _HSR_MEM_MaxPosL 0x8C // Low byte of maximum servo positon
| |
| hsr_serial.h | ||
|---|---|---|
| 91 | #define _HSR_MEM_MidPosH 0x91 // High byte of center servo position
| |
| hsr_serial.h | ||
|---|---|---|
| 92 | #define _HSR_MEM_MidPosL 0x92 // Low byte of center servo positon
| |
| hsr_serial.h | ||
|---|---|---|
| 87 | #define _HSR_MEM_MinPosH 0x89 // High byte of minimum servo position
| |
| hsr_serial.h | ||
|---|---|---|
| 88 | #define _HSR_MEM_MinPosL 0x8A // Low byte of minimum servo positon
| |
| RCservo.c | ||
|---|---|---|
| 36 | D=HSR_ReadMemory(_HSR_MEM_P1D);
| |
| 50 | {HSR_WriteMemory(_HSR_MEM_P1D,make8(tmp,0));
| |
| hsr_serial.h | ||
| 84 | #define _HSR_MEM_P1D 0x83 // Derivative gain for parameter set 1
| |
| RCservo.c | ||
|---|---|---|
| 34 | PH=HSR_ReadMemory(_HSR_MEM_P1H);
| |
| 40 | {HSR_WriteMemory(_HSR_MEM_P1H,make8(tmp,1));
| |
| hsr_serial.h | ||
| 81 | #define _HSR_MEM_P1H 0x80 // High byte of Proportional gain for parameter set 1
| |
| RCservo.c | ||
|---|---|---|
| 33 | PL=HSR_ReadMemory(_HSR_MEM_P1L);
| |
| 41 | HSR_WriteMemory(_HSR_MEM_P1L,make8(tmp,0));
| |
| hsr_serial.h | ||
| 82 | #define _HSR_MEM_P1L 0x81 // Low byte of Proportional gain for parameter set 1
| |
| hsr_serial.h | ||
|---|---|---|
| 78 | #define _HSR_MEM_PosErrorH 0xA9 // High byte of position error (Target Position - Actual Position)
| |
| hsr_serial.h | ||
|---|---|---|
| 79 | #define _HSR_MEM_PosErrorL 0xAA // Low byte of position error (Target Position - Actual Position)
| |
| hsr_serial.h | ||
|---|---|---|
| 74 | #define _HSR_MEM_TargetPosH 0xA5 // High byte of target position
| |
| hsr_serial.h | ||
|---|---|---|
| 75 | #define _HSR_MEM_TargetPosL 0xA6 // Low byte of target position
| |
| hsr_serial.c | ||
|---|---|---|
| 127 | { if (get_timer0()-_Start_time >_Reset_interval)
| |
| hsr_serial.h | ||
| 46 | uint16 _Reset_interval= URB_HEARTBEAT_INTERVAL/60;
| |
| hsr_serial.c | ||
|---|---|---|
| 356 | _ServoPW = _RxLastData[0];
| |
| hsr_serial.h | ||
| 43 | uint8 _ServoPW; // Pulsewidth of PWM signal
| |
| hsr_serial.c | ||
|---|---|---|
| 298 | HSR_WriteMemory(_HSR_MEM_CurTargetPosL, _ServoPosL);
| |
| 395 | _ServoPosL = _RxLastData[1];
| |
| 94 | _ServoPosL = _RxLastData[1];
| |
| hsr_serial.h | ||
| 26 | uint8 _ServoPosL; // Servo position low
| |
| hsr_serial.c | ||
|---|---|---|
| 321 | _ServoVersion = _RxLastData[1];
| |
| hsr_serial.h | ||
| 24 | uint8 _ServoVersion; // Servo version
| |
| hsr_serial.c | ||
|---|---|---|
| 357 | _ServoVoltage = _RxLastData[1];
| |
| hsr_serial.h | ||
| 44 | uint8 _ServoVoltage; // Voltage of PWM signal
| |
| hsr_serial.c | ||
|---|---|---|
| 125 | _Start_time =get_timer0();
| |
| 127 | { if (get_timer0()-_Start_time >_Reset_interval)
| |
| hsr_serial.h | ||
| 45 | uint16 _Start_time;
| |
| RBapp.h | ||
|---|---|---|
| 153 | { 0x1060, RB_MEDIA_RAM | RB_PERM_READWRITE, RB_TYPE_BOOLEAN, &calMode, "calMode"},
| |
| 78 | bool calMode;
| |
| RCservo.c | ||
| 57 | calMode = 0; // set normal mode
| |
| 83 | if (calMode)
| |
| usart.c | ||
|---|---|---|
| 32 | initUSART();
| |
| 70 | void initUSART(void)
| |
| usart.h | ||
| 43 | void initUSART(void);
| |
| usart.c | ||
|---|---|---|
| 30 | void initiateUSART(uint8 usart_Mode)
| |
| usart.h | ||
| 48 | void initiateUSART(uint8 usart_Mode);
| |
| RCservo.c | ||
|---|---|---|
| 81 | void initiate_pulse() {
| |
| main.c | ||
| 100 | initiate_pulse();
| |
| usart.c | ||
|---|---|---|
| 122 | listen(muxPort);
| |
| 147 | void listen(uint8 port)
| |
| usart.h | ||
| 52 | void listen(int muxPort);
| |
| usart.c | ||
|---|---|---|
| 130 | void nextPort()
| |
| usart.h | ||
| 51 | void nextPort();
| |
| RB.h | ||
|---|---|---|
| 137 | } od_entry;
| |
| 17 | 2005-01-10 DGI: changed the od_entry type to explicitly include a permissions
| |
| RBapp.h | ||
| 135 | CONST od_entry objectDictionary[] =
| |
| usart.c | ||
|---|---|---|
| 102 | void rxSearch(void)
| |
| 50 | rxSearch();
| |
| usart.h | ||
| 45 | void rxSearch(void);
| |
| usart.c | ||
|---|---|---|
| 46 | rxSearchRec();
| |
| 81 | void rxSearchRec(void)
| |
| usart.h | ||
| 47 | void rxSearchRec(void);
| |
| usart.c | ||
|---|---|---|
| 20 | // #define rxtx_time 64000 // previous 55120 to 65535
| |
| 21 | #define rxtx_time 55120
| |
| 41 | set_timer3(rxtx_time);
| |
| usart.c | ||
|---|---|---|
| 121 | selectPort(muxPort);
| |
| 137 | void selectPort(uint8 port)
| |
| 87 | selectPort(muxPort); // choose the next muxPort
| |
| usart.h | ||
| 50 | void selectPort(uint8 myPort);
| |
| hsr_serial.c | ||
|---|---|---|
| 10 | void serial_isr()
| |
| main.c | ||
| 15 | void serial_isr()
| |
| RBapp.h | ||
|---|---|---|
| 77 | uint8 servoSpeed;
| |
| 97 | {0x1052, RB_TYPE_UINT8, &servoSpeed},
| |
| RB.h | ||
|---|---|---|
| 32 | typedef signed int32 sint32;
| |
| RBTypes.h | ||
| 11 | typedef signed int32 sint32;
| |
| project.h | ||
| 9 | typedef signed int32 sint32;
| |
| RB.h | ||
|---|---|---|
| 30 | typedef signed int8 sint8;
| |
| RBTypes.h | ||
| 9 | typedef signed int8 sint8;
| |
| project.h | ||
| 7 | typedef signed int8 sint8;
| |
| RCservo.c | ||
|---|---|---|
| 24 | sint16 commandCenter, tmpAmplitude, tmps;
| |
| 62 | RBReadEEPROM(&tmpAmplitude, SERVO_CAL_CMD_AMPLITUDE, 2);
| |
| 63 | commandScaleFactor = ((float) tmpAmplitude) / ((float) 9000);
| |
| RB.h | ||
|---|---|---|
| 35 | typedef unsigned int32 uint32;
| |
| RBTypes.h | ||
| 14 | typedef unsigned int32 uint32;
| |
| hsr_serial.c | ||
| 532 | uint32 ActionSpeed;
| |
| 563 | uint32 HSR_SetAction_v3(sint16 TargetAngle, uint16 ActionTime)
| |
| 569 | uint32 ActionSpeed;
| |
| 570 | uint32 EstimatedTime;
| |
| hsr_serial.h | ||
| 125 | uint32 HSR_SetAction_v3(sint16 TargetAngle, uint16 ActionTime);//Set Action and estimaate time of motion | |
| project.h | ||
| 12 | typedef unsigned int32 uint32;
| |
| usart.c | ||
|---|---|---|
| 154 | while(usart_rx_flag)
| |
| 166 | usart_rx_flag = 1;
| |
| 28 | uint8 usart_rx_flag = 0;
| |
| 36 | usart_rx_flag = 1;
| |