12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- /*
- * PD Buddy Firmware Library - USB Power Delivery for everyone
- * Copyright 2017-2018 Clayton G. Hobbs
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
- #ifndef PDB_PROTOCOL_TX_H
- #define PDB_PROTOCOL_TX_H
-
- #include <stdint.h>
-
- #include <ch.h>
-
- #include <pdb.h>
-
-
- /* Events for the Protocol TX thread */
- #define PDB_EVT_PRLTX_RESET EVENT_MASK(0)
- #define PDB_EVT_PRLTX_I_TXSENT EVENT_MASK(1)
- #define PDB_EVT_PRLTX_I_RETRYFAIL EVENT_MASK(2)
- #define PDB_EVT_PRLTX_DISCARD EVENT_MASK(3)
- #define PDB_EVT_PRLTX_MSG_TX EVENT_MASK(4)
- #define PDB_EVT_PRLTX_START_AMS EVENT_MASK(5)
-
-
- /*
- * Start the Protocol TX thread
- */
- void pdb_prltx_run(struct pdb_config *cfg);
-
-
- #endif /* PDB_PROTOCOL_TX_H */
|